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

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
User avatar
WhiteDragon
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 15, 2025 10:26 am
Contact:

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

Post 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?
Attachments
factorio-previous.log
(46.59 KiB) Downloaded 22 times
Error.jpg
Error.jpg (59.28 KiB) Viewed 402 times
Donion
Factorio Staff
Factorio Staff
Posts: 442
Joined: Sun Aug 22, 2021 9:18 am
Contact:

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

Post 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.
User avatar
WhiteDragon
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 15, 2025 10:26 am
Contact:

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

Post 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.
Donion
Factorio Staff
Factorio Staff
Posts: 442
Joined: Sun Aug 22, 2021 9:18 am
Contact:

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

Post by Donion »

There was at least one other rename. In any case I'll investigate to confirm the crash.
Donion
Factorio Staff
Factorio Staff
Posts: 442
Joined: Sun Aug 22, 2021 9:18 am
Contact:

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

Post 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.
User avatar
WhiteDragon
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 15, 2025 10:26 am
Contact:

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

Post 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.
Donion
Factorio Staff
Factorio Staff
Posts: 442
Joined: Sun Aug 22, 2021 9:18 am
Contact:

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

Post 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.
User avatar
WhiteDragon
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 15, 2025 10:26 am
Contact:

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

Post 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.
User avatar
WhiteDragon
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 15, 2025 10:26 am
Contact:

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

Post 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)
Post Reply

Return to “Technical Help”