MantisBT - Zandronum
View Issue Details
0004339Zandronum[All Projects] Bugpublic2024-06-25 13:292024-07-02 12:53
Evil Operative 
 
immediatecrashalways
newopen 
MicrosoftWindows10
3.1 
 
0004339: Game crashes immediately when running it with headphones powered through a DAC cable
I recently bought a pair of FiiO X Jade Audio JT1 Headphones and it came with a Headphone Zone X ddHiFi Hi-Res DAC or Digital-to-Analog Converter, which supposedly enhances sound quality when the headphone jack is passed through it.

Zandronum starts up and runs just fine when the headphones are connected on their own. But Zandronum straight up refuses to run if the same headphones are connected with the aforementioned DAC. It also prints out a peculiar message in lavender colour which is added in the attachment inside the crash report archive.
Connect any pair of 3.5mm jack Headphones through a DAC, then try to run Zandronum.
I ran the game on version 3.2-alpha-r240414-1910. The current 3.1 release of Zandronum does not even dump a crash report.
No tags attached.
zip CrashReport.zip (42,945) 2024-06-25 13:29
/tracker/file_download.php?file_id=3049&type=bug
Issue History
2024-06-25 13:29Evil OperativeNew Issue
2024-06-25 13:29Evil OperativeFile Added: CrashReport.zip
2024-06-28 08:17unknownnaNote Added: 0023771
2024-06-28 08:17unknownnaStatusnew => feedback
2024-07-02 12:44Evil OperativeNote Added: 0023773
2024-07-02 12:44Evil OperativeStatusfeedback => new
2024-07-02 12:44Evil OperativeNote Edited: 0023773bug_revision_view_page.php?bugnote_id=23773#r14294
2024-07-02 12:51Evil OperativeNote Edited: 0023773bug_revision_view_page.php?bugnote_id=23773#r14295
2024-07-02 12:53Evil OperativeNote Edited: 0023773bug_revision_view_page.php?bugnote_id=23773#r14296

Notes
(0023771)
unknownna   
2024-06-28 08:17   
Does it also crash in GZDoom 1.8.6?
(0023773)
Evil Operative   
2024-07-02 12:44   
(edited on: 2024-07-02 12:53)
After tinkering around a little bit, I have found the cause of the problem.

The default sample rate and bit depth of the headphones without the DAC only go up to "24 bit, 48000 Hz (DVD Quality)"

It seems to be linked directly with cranking up the sample rate and bit depth of the headphones while they're connected with the DAC to "32 bit, 384000 Hz (Studio Quality)" in Control Panel's sound settings, WHILE the Output Format is set as "16-bit" in the Zandronum's sound settings. Naturally then, if the Output Format is set to "32-bit" or "32-bit Float" in Zandronum then the game stops crashing.

When the game is ran using the latter setting, it starts up and runs perfectly fine.

And to answer your question unknownna, GZDoom 1.8.6 prints the lavender colour error message in the log but does not crash the game. It just runs without sound. Again, changing the Sound Settings in-game to match the configurations in the Control Panel seems to fix the problem, and sound is restored again after a restart of the game.

Also 'Directsound' appears to be the culprit as the crashes happen only on that Output System. Setting it to 'Default' probably uses 'Vista WASAPI' instead. 'Directsound' just straight up crashes if the sample rate is set to anything above 48000 Hz in the Control Panel.