Basically if one tries to change the "Preferred output" drop-down after the game had reported "No device found, Audio is disabled", a crash occurs.
Steps to reproduce:
0. BEFORE RUNNING THE GAME
1. Unplug your audio jack
1a. (optional) Check that windows 10's Control Panel → Sound → "Choose your output device" drop-down says "No output devices found"
2. Run the game, see that it reports the "Audio Error" tooltip which says "Couldn't initialize audio. Audio is disabled"
3. Plug your audio jack back
3a. (optional) Check that windows 10's Control Panel → Sound → "Choose your output device" drop-down now says something other instead, like "Default device" on my first PC, "Headphones (integrated audio)" on my second PC
4. Navigate to Sounds menu in Factorio
5. Notice that (weirdly enough) the plugged-back device is present in the "Preferred output" drop-down
6. Try to select / change it
Resulting behaviour:
Game hangs, crashing after a while
Expected behaviour:
Game tries to re-initialize sound devices and if it fails, reports the "Audio Error" message
[2.0.15] Crash in Sounds menu when Audio had been disabled
[2.0.15] Crash in Sounds menu when Audio had been disabled
- Attachments
-
- factorio-previous.log
- (11.42 KiB) Downloaded 12 times
-
- factorio-dump-previous.dmp
- (664.56 KiB) Downloaded 7 times
-
- Step 1a
- no-device.png (11.44 KiB) Viewed 179 times
-
- Step 2
- Audio-error.JPG (10.79 KiB) Viewed 179 times
Re: [2.0.15] Crash in Sounds menu when Audio had been disabled
Thanks for the report. This issue has been fixed in 2.0.16. You can update to it if you enable experimental updates.
Re: [2.0.15] Crash in Sounds menu when Audio had been disabled
I had tested it extensively and can confirm that (experimental branch) game indeed no longer crash out in those circumstances!
Game now correctly handles even multiple unplugging-replugging/attemps to switch devices when there are none.
Thanks and good job!
Game now correctly handles even multiple unplugging-replugging/attemps to switch devices when there are none.
Thanks and good job!