Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Audio crash on exit  (Read 3714 times)

0 Members and 1 Guest are viewing this topic.

Sam42

  • Newbie
  • *
  • Posts: 16
    • View Profile
Audio crash on exit
« on: August 05, 2011, 12:28:41 am »
Using the latest sfml2 snapshot (SFML-732b789) I'm getting a pretty consistent audio crash upon exit, sometimes the program hangs, sometimes it just returns odd values and manages to shutdown.

The callstack upon crash is:

#0 76B64CBC   ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#1 76B64C26   ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#2 76B64D3C   ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#3 76B65446   ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#4 76B65A5B   ole32!CoFileTimeToDosDateTime() (C:\Windows\syswow64\ole32.dll:??)
#5 76B65916   ole32!CoFileTimeToDosDateTime() (C:\Windows\syswow64\ole32.dll:??)
#6 76B65877   ole32!CoFileTimeToDosDateTime() (C:\Windows\syswow64\ole32.dll:??)
#7 76B65830   ole32!CoFileTimeNow() (C:\Windows\syswow64\ole32.dll:??)
#8 74FBE880   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#9 74FBE668   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#10 74FBE43A   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#11 74FC3EA0   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#12 74FBE43A   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#13 74FC35E9   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#14 74FC3A7C   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#15 74FC3646   DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#16 64055006   alcCloseDevice() (D:\My Documents\Repo\Prog\bin\Debug\openal32.dll:??)
#17 00000000   0x07c80048 in ??() (??:??)
#18 00000000   0x00000001 in ??() (??:??)
#19 00000000   0x0028fdbc in ??() (??:??)
#20 00000000   0x003b2f88 in ??() (??:??)
#21 6278181A   ~AudioDevice(this=0x4) (D:\My Documents\Software\SFML2-732b789\src\SFML\Audio\AudioDevice.cpp:85)
#22 00000000   0x00000003 in ??() (??:??)


This is using codeblocks 10.05 with mingw32 4.4.1 on win 7 64 bit. The same problem does not occur when the program is run in linux. I'm using the extlibs/bin/x86 dlls that were supplied with this snapshot.

Any ideas would be appreciated! Is this likely to be something i'm doing wrong, or a possible bug?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Audio crash on exit
« Reply #1 on: August 05, 2011, 08:12:32 am »
It's not crashing on the same function, but I think it's related to this bug:
https://github.com/SFML/SFML/issues/30
Laurent Gomila - SFML developer

Sam42

  • Newbie
  • *
  • Posts: 16
    • View Profile
Audio crash on exit
« Reply #2 on: August 06, 2011, 09:48:43 pm »
Ah, righto. Are there any workarounds to ensure the program closes, or do I need to put up with it until sfml2.x?

Thanks for the swift reply!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Audio crash on exit
« Reply #3 on: August 06, 2011, 10:33:28 pm »
I don't think there's a workaround available. You can try to link SFML statically.
Laurent Gomila - SFML developer

 

anything