Opened 9 years ago

Closed 7 years ago

Last modified 6 years ago

#7031 closed defect (outdated)

WIN32: Crash on Audio Device Disconnection

Reported by: SF/necros2014 Owned by: criezy
Priority: blocker Component: Port: Win32
Version: Keywords: reproducible
Cc: Game:

Description

if bluetooth headphones battery drained for example

Ticket imported from: bugs/7031.

Attachments (1)

Untitled.png (29.5 KB ) - added by SF/necros2014 9 years ago.

Download all attachments as: .zip

Change History (14)

by SF/necros2014, 9 years ago

Attachment: Untitled.png added

comment:1 by lordhoto, 9 years ago

Summary: win64 daily build crashes on aud device disconnection (win10)WIN32: Crash on Audio Device Disconnection

comment:2 by lordhoto, 9 years ago

From the former title: Happened at least on Windows 10.

comment:3 by m-kiewitz, 9 years ago

Component: Engine: AGIPorts
Game: AGI Fanmade

comment:4 by m-kiewitz, 9 years ago

Moving to ports, not an engine specific issue.

comment:5 by csnover, 7 years ago

Priority: normalblocker

Raising all identified crasher, hang, and memory violation bugs which I could not fully triage myself to blocker priority for the next release.

comment:6 by rootfather, 7 years ago

I can reproduce it on Windows 10 17025 by unplugging my USB sound device.

Backtrace attached, but not really helpful without debugging symbols in SDL2.

Thread 6 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2480.0x864]
0x000000006c7df69a in ?? () from C:\msys64\mingw64\bin\SDL2.dll
(gdb) backtrace
#0  0x000000006c7df69a in ?? () from C:\msys64\mingw64\bin\SDL2.dll
#1  0x000000006c743902 in ?? () from C:\msys64\mingw64\bin\SDL2.dll
#2  0x000000006c7934b7 in ?? () from C:\msys64\mingw64\bin\SDL2.dll
#3  0x000000006c7e52da in ?? () from C:\msys64\mingw64\bin\SDL2.dll
#4  0x00007ff93ef9a8a6 in msvcrt!_beginthreadex ()
   from C:\WINDOWS\System32\msvcrt.dll
#5  0x00007ff93ef9a97c in msvcrt!_endthreadex ()
   from C:\WINDOWS\System32\msvcrt.dll
#6  0x00007ff93e5f3f84 in KERNEL32!BaseThreadInitThunk ()
   from C:\WINDOWS\System32\kernel32.dll
#7  0x00007ff9410413b1 in ntdll!RtlUserThreadStart ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#8  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

comment:7 by csnover, 7 years ago

Keywords: reproducible added

comment:8 by csnover, 7 years ago

Please download and use a DLL from the Development Libraries archives at http://libsdl.org/download-2.0.php to get debug symbols.

comment:9 by rootfather, 7 years ago

Strange... I cannot reproduce this issue on the current master codebase on Win 10 17046... Neither forcing a bluetooth device to disconnect (by unplugging the power cable of my bluetooth speaker) nor unplugging a USB sound device leads to a crash. Instead, ScummVM automatically switches to the next audio device.

comment:10 by criezy, 7 years ago

rootfather: which SDL version where you using to testing the audio devie disconnection crash?

SDL 2.0.6 release notes says "The new default audio driver on Windows is WASAPI and supports hot-plugging devices and changing the default audio device". So it is possible that the crash would be fixed when using SDL 2.0.6 or 2.0.7.

comment:11 by rootfather, 7 years ago

I'm using SDL 2.0.7. Good to know that this seems to be fixed by upstream.

comment:12 by criezy, 7 years ago

Owner: set to criezy
Resolution: outdated
Status: newclosed

Considering the ticket was created well before SDL 2.0.7 was released, it was obvious it was using an older version. I will assume that the issue has been fixed upstream in SDL. Feel free to reopen if you can reproduce with a recent SDL version.

comment:13 by digitall, 6 years ago

Component: PortsPort: Win32
Note: See TracTickets for help on using tickets.