Page 1 of 1

[2.0.69] Crash when ambient music changes (QueuedSoundInstanceSDL::queueSample)

Posted: Wed Oct 15, 2025 11:06 am
by WhiteDragon
I downloaded this mod, https://mods.factorio.com/mod/world-wide-music.
But game start crashing when it about to play new track, in a middle of game session.
When crash occur I get crash message window, but game continues to work normally, I can play/save/exit, except music is gone.
I do not know how reliably force game to crash, because what song will play next is random.
I need help in narrowing down what song I have problem with.

Question: How to print in log file what song about to be played/start playing?
Or how can I force game to play exact song name via console command?

Re: [2.0.69] Game crash when ambient music changes.

Posted: Wed Oct 15, 2025 12:47 pm
by Donion
Hello,
according to the mod discussion: https://mods.factorio.com/mod/world-wid ... 1edb2b0bc3
the mod is currently broken on latest version of the game due to some files being renamed.

Use one of the different mods mentioned in the discussion.

I will add more checking so this kind of issue will be detected at load time and clearly communicated, in some future version.

Re: [2.0.69] Game crash when ambient music changes.

Posted: Wed Oct 15, 2025 1:11 pm
by WhiteDragon
The error from discussion I have fixed locally, by reducing sound_variations(spaceAgePath .. "/sound/ambient/aquilo/aquilo-10/aquilo-10-a", 19, 1.0) from 19 to 14.
I will try another mod, thanks.

Re: [2.0.69] Game crash when ambient music changes.

Posted: Wed Oct 15, 2025 1:16 pm
by Donion
There was at least one other rename. In any case I'll investigate to confirm the crash.

Re: [2.0.69] Crash when ambient music changes (QueuedSoundInstanceSDL::queueSample)

Posted: Thu Oct 16, 2025 9:58 am
by Donion
I was actually unable to reproduce the crash as I was expecting yet.
Can you clarify couple of things?
The change from 19 to 14 was done before or after the crash? And did it change anything?
Do/did you have Space Age mod enabled?

Sidenote: while troubleshooting this I've noticed the aquilo-10 track definition has a mistake. It shouldn't crash the game but the track doesn't play as it should one of its layers.

Re: [2.0.69] Crash when ambient music changes (QueuedSoundInstanceSDL::queueSample)

Posted: Fri Oct 17, 2025 11:11 am
by WhiteDragon
I change from 19 to 14 before crash, otherwise game just do not load, due mod error.
Before change I was getting same message as in discussion https://mods.factorio.com/mod/world-wid ... 1edb2b0bc3
I do not have SA enabled, but I bought it on Steam, just like base game.
I will check all music separately, unlit I find exact song I have problem with.

Re: [2.0.69] Crash when ambient music changes (QueuedSoundInstanceSDL::queueSample)

Posted: Fri Oct 17, 2025 5:27 pm
by Donion
Got it, thanks for the details.
You can enable the show-detailed-info debug (press F4) option. There is a line saying which track is currently playing and if the game keeps going after the crash like you mentioned in your first post, maybe you could catch which track caused the crash.

That being said, after looking into it, it's crashing in a place that doesn't make sense to me, it just shouldn't get to such situation and I didn't see anyone else with the same crash in our crash logs. I'll keep looking but currently I don't have the root cause.

Re: [2.0.69] Crash when ambient music changes (QueuedSoundInstanceSDL::queueSample)

Posted: Fri Oct 17, 2025 5:41 pm
by WhiteDragon
I think I found source of my problem, gleba-11-bb-2 and 5.
When I tried to open them with windows media player, I had a message "encoding error".
My guess is when ambient music was updated, it was in July I think, I had error with download and some files got corrupted.
So, I deleted all songs and redownloaded them, "encoding error" is gone and I did not crash yet, but it's hard to be sure, due how random crash was.

Re: [2.0.69] Crash when ambient music changes (QueuedSoundInstanceSDL::queueSample)

Posted: Fri Oct 17, 2025 5:44 pm
by WhiteDragon
Donion wrote: Fri Oct 17, 2025 5:27 pm You can enable the show-detailed-info debug (press F4) option. There is a line saying which track is currently playing and if the game keeps going after the crash like you mentioned in your first post, maybe you could catch which track caused the crash.
I wish I knew that before I did my tests)