Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Error in allegro audio addon

This thread is locked; no one can reply to it. rss feed Print
Error in allegro audio addon
kovarex
Member #14,203
April 2012

There are reports of crashes related to the allegro audio addon. We are currently not able to reproduce it, but it happens to different people in similar situations (lot of sounds probably). Some of the people can reproduce the error quite easily.

It has been only reported by people with windows 8 and windows 10 so far, so it might by system related.

Stack trace:

#SelectExpand
1ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB5DB902CE) 200007FFB5DB902CE (KERNELBASE): (filename not available): UnhandledExceptionFilter 3ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB606C8992) 400007FFB606C8992 (ntdll): (filename not available): memset 5ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB606B3F66) 600007FFB606B3F66 (ntdll): (filename not available): _C_specific_handler 7ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB606C633D) 800007FFB606C633D (ntdll): (filename not available): _chkstk 9ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB60643C00) 1000007FFB60643C00 (ntdll): (filename not available): RtlWalkFrameChain 11ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB606C544A) 1200007FFB606C544A (ntdll): (filename not available): KiUserExceptionDispatcher 13c:\temp\factorio-cb17afe1\libraries\allegro\addons\audio\kcm_mixer_helpers.inc (185): linear_spl32 14c:\temp\factorio-cb17afe1\libraries\allegro\addons\audio\kcm_mixer.c (340): read_to_mixer_linear_float_32 15c:\temp\factorio-cb17afe1\libraries\allegro\addons\audio\kcm_mixer.c (389): _al_kcm_mixer_read 16c:\temp\factorio-cb17afe1\libraries\allegro\addons\audio\kcm_mixer.c (389): _al_kcm_mixer_read 17c:\temp\factorio-cb17afe1\libraries\allegro\addons\audio\dsound.cpp (223): _dsound_update 18c:\temp\factorio-cb17afe1\libraries\allegro\src\threads.c (80): thread_func_trampoline 19c:\temp\factorio-cb17afe1\libraries\allegro\src\win\wxthread.c (38): thread_proc_trampoline 20f:\dd\vctools\crt\crtw32\startup\threadex.c (376): _callthreadstartex 21f:\dd\vctools\crt\crtw32\startup\threadex.c (354): _threadstartex

The bug thread on our forums: http://www.factorioforums.com/forum/viewtopic.php?t=13832

I would be thankful for any hint.

www.factorio.com - a factory building game.

SiegeLord
Member #7,827
October 2006
avatar

Could you paste line 185 from kcm_mixer_helpers.inc from your Allegro copy? Our sources diverged a little bit.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

kovarex
Member #14,203
April 2012

Hello, we finally managed to find out what is the cause of these issues.

The problem is, that we called al_set_sample_instance_position with negative value. It was caused by error in our call, but it went undetected and it just caused these weird problems later on. And on top of that, these problems only crashed the program in specific systems.

I believe that some check that the value is reasonable might help future developers :)

www.factorio.com - a factory building game.

SiegeLord
Member #7,827
October 2006
avatar

There's an assert there for that, looks like. Perhaps it might be worthwhile for your game to compile allegro with the asserts in place and register an assert handler (via al_register_assert_handler) where you can log something in your internal logs.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Go to: