Opened 12 years ago

Closed 12 years ago

#1592 closed defect (fixed)

Game (and Atlas) crashes when selecting an entity.

Reported by: michael Owned by:
Priority: Release Blocker Milestone: Alpha 11
Component: Core engine Keywords:
Cc: stwf Patch:

Description

Much to our regret we must report the program has encountered an error.

Please let us know at http://trac.wildfiregames.com/ and attach the crashlog.txt and crashlog.dmp files.

Details: unhandled exception (Access violation reading 0x00000000)

Location: unknown:0 (?)

Call stack:

(error while dumping stack: No stack frames found) errno = 0 (No error reported here) OS error = 487 (Attempt to access invalid address.)

Also, there's no music in-game.

Attachments (1)

crashlog.zip (29.8 KB ) - added by michael 12 years ago.
This happened when I selected the starting Civ Centre. Also happens when selecting anything else. Dialog pops up and it cannot be clicked through. Game crashes.

Download all attachments as: .zip

Change History (6)

by michael, 12 years ago

Attachment: crashlog.zip added

This happened when I selected the starting Civ Centre. Also happens when selecting anything else. Dialog pops up and it cannot be clicked through. Game crashes.

comment:1 by historic_bruno, 12 years ago

When you get a chance, it would be helpful if you can run DebugView, then run 0 A.D. and go through the usual steps to reproduce the crash. After the game closes, copy and paste the contents of DebugView here. It may reveal some errors in the sound initialization.

For those interested, here's the call stack from the crashlog:

>	pyrogenesis.exe!CSoundGroup::UploadPropertiesAndPlay(theIndex=0, position={...})  Line 170 + 0x6 bytes	C++
 	pyrogenesis.exe!CSoundGroup::PlayNext(position={...})  Line 212 + 0x12 bytes	C++
 	pyrogenesis.exe!CCmpSoundManager::PlaySoundGroup(name=<Bad Ptr>, source=5416)  Line 130	C++
 	pyrogenesis.exe!ScriptInterface_NativeMethodWrapper<void,ICmpAIManager>::call<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,int,void (__thiscall ICmpAIManager::*)(std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,int)>(__formal=0x073b8dc8, __formal=0x073b8dc8, c=0x0c268c08, fptr=0x013fcf20, a0=<Bad Ptr>, a1=5416)  Line 70 + 0x50 bytes	C++
 	pyrogenesis.exe!ScriptInterface::callMethod<void,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,unsigned int,&class_ICmpSoundManager,ICmpSoundManager,&ICmpSoundManager::`vcall'{32}'>(cx=0x073b8dc8, argc=2, vp=0x0c990170)  Line 122 + 0x153 bytes	C++
 	mozjs185-ps-release-1.0.dll!62db0d10() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for mozjs185-ps-release-1.0.dll]	
 	mozjs185-ps-release-1.0.dll!62e8d5bd() 	
 	mozjs185-ps-release-1.0.dll!62e8d735() 	
 	mozjs185-ps-release-1.0.dll!62e80a63() 	
 	mozjs185-ps-release-1.0.dll!62e80bae() 	
 	mozjs185-ps-release-1.0.dll!62da690a() 	
 	mozjs185-ps-release-1.0.dll!62da73b3() 	
 	mozjs185-ps-release-1.0.dll!62da7af1() 	
 	mozjs185-ps-release-1.0.dll!62d6846a() 	
 	pyrogenesis.exe!ScriptInterface::CallFunction_(val=18446462629013928912, name=0x015d0aa4, argc=3, argv=0x0042e9e0, ret=8334824495378524656)  Line 740 + 0x21 bytes	C++
 	pyrogenesis.exe!ScriptInterface::CallFunction<int,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,CScriptVal,CScriptVal>(val=18446462629013928912, name=0x015d0aa4, a0=1, a1=<Bad Ptr>, a2={...}, ret={...})  Line 440	C++
 	pyrogenesis.exe!CComponentTypeScript::Call<CScriptVal,int,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,CScriptVal>(funcname=0x015d0aa4, a0=1, a1=<Bad Ptr>, a2={...})  Line 72 + 0x41 bytes	C++
 	pyrogenesis.exe!CCmpGuiInterfaceScripted::ScriptCall(player=1, cmd=<Bad Ptr>, data={...})  Line 35 + 0x22 bytes	C++
 	pyrogenesis.exe!`anonymous namespace'::GuiInterfaceCall(cbdata=0x00acf470, name=<Bad Ptr>, data={...})  Line 109	C++
 	pyrogenesis.exe!ScriptInterface_NativeWrapper<CScriptVal>::call<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,CScriptVal,CScriptVal (__cdecl*)(void *,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,CScriptVal)>(cx=0x002dfd68, rval=18446462607322775552, fptr=0x015079a0, a0=<Bad Ptr>, a1={...})  Line 33 + 0x73 bytes	C++
 	pyrogenesis.exe!ScriptInterface::call<CScriptVal,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,CScriptVal,&`anonymous namespace'::GuiInterfaceCall>(cx=0x002dfd68, argc=2, vp=0x046f01a0)  Line 104 + 0x101 bytes	C++
 	mozjs185-ps-release-1.0.dll!62db0d10() 	
 	atioglxx.dll!60fb2340() 	
 	user32.dll!_InternalCallWinProc@20()  + 0x23 bytes	
 	90909090()	

comment:2 by historic_bruno, 12 years ago

Cc: stwf added

comment:3 by Erik Johansson, 12 years ago

The result of running DebugView (and I guess I should mention for completeness sake that it is a custom build of revision 12439, the curious thing is that when I try to run the game again after it has crashed it seems to work fine. Music/sounds are working as they should, and no crash on selection):

> [2464] HRT: activating HPET failed: Unknown error (-100022, 0xFFFFFFFFFFFE794A)
> [2464] HRT: activating TSC failed: Unknown error (140000, 0x222E0)
> [2464] HRT: using name=QPC freq=3092158.000000
> [2464] HRT: counter=QPC freq=3.09216e+006 res=3.23399e-007 bits=64
> [2464] SMBIOS: unknown structure type 64
> [2464] Cache: 200 (total: 8192) MiB
> [2464] TIMER| InitVfs: 1.56622 ms
> [2464] TIMER| InitScripting: 1.15098 ms
> [2464] TIMER| CONFIG_Init: 6.7102 ms
> [2464] TIMER| RunHardwareDetection: 263.043 ms
> [2464] TIMER| write_sys_info: 22.2466 ms
> [2464] TIMER| InitRenderer: 2.77153 ms
> [2464] TIMER| ps_console: 8.31943 ms
> [2464] TIMER| ps_lang_hotkeys: 1.62184 ms
> [2464] TIMER| common/setup.xml: 1.2011 ms
> [2464] TIMER| common/styles.xml: 194.686 us
> [2464] TIMER| common/sprite1.xml: 2.75503 ms
> [2464] TIMER| common/init.xml: 2.20202 ms
> [2464] TIMER| common/common_sprites.xml: 3.23787 ms
> [2464] TIMER| common/common_styles.xml: 461.49 us
> [2464] TIMER| pregame/sprites.xml: 1.0407 ms
> [2464] TIMER| pregame/styles.xml: 102.194 us
> [2464] TIMER| pregame/mainmenu.xml: 12.4499 ms
> [2464] TIMER| common/global.xml: 558.833 us
> [2464] TIMER| common/setup.xml: 784.565 us
> [2464] TIMER| common/styles.xml: 54.331 us
> [2464] TIMER| common/sprite1.xml: 2.3469 ms
> [2464] TIMER| common/common_sprites.xml: 2.8789 ms
> [2464] TIMER| common/common_styles.xml: 364.47 us
> [2464] TIMER| gamesetup/setup.xml: 414.597 us
> [2464] TIMER| gamesetup/sprites.xml: 151.674 us
> [2464] TIMER| gamesetup/styles.xml: 111.896 us
> [2464] TIMER| gamesetup/gamesetup.xml: 18.0207 ms
> [2464] TIMER| common/setup.xml: 777.451 us
> [2464] TIMER| common/styles.xml: 43.6588 us
> [2464] TIMER| common/sprite1.xml: 2.14316 ms
> [2464] TIMER| common/init.xml: 1.66874 ms
> [2464] TIMER| common/common_sprites.xml: 2.85496 ms
> [2464] TIMER| common/common_styles.xml: 360.913 us
> [2464] TIMER| loading/styles.xml: 383.228 us
> [2464] TIMER| loading/sprites.xml: 452.435 us
> [2464] TIMER| loading/loading.xml: 1.69073 ms
> [2464] TIMER| common/global.xml: 374.172 us
> [2464] TIMER| common/setup.xml: 733.468 us
> [2464] TIMER| common/styles.xml: 43.3354 us
> [2464] TIMER| common/sprite1.xml: 2.22337 ms
> [2464] TIMER| common/icon_sprites.xml: 149.41 us
> [2464] TIMER| common/common_sprites.xml: 4.11557 ms
> [2464] TIMER| common/common_styles.xml: 358.002 us
> [2464] TIMER| session/sprites.xml: 5.04728 ms
> [2464] TIMER| session/styles.xml: 374.496 us
> [2464] TIMER| session/session.xml: 80.6168 ms
> [2464] TIMER| common/global.xml: 1.23959 ms
> [2464] sound item could not be loaded to loop at: 
> [2464] GAME STARTED, ALL INIT COMPLETE
> [2464] ERROR: error loading sound: pathname=audio/voice/hellenes/civ/female/civ_female_what_is_it_1.ogg, error=No error reported here
> [2464] ERROR: error loading sound: pathname=audio/voice/hellenes/civ/female/civ_female_what_is_it_2.ogg, error=No error reported here
> [2464] ERROR: error loading sound: pathname=audio/voice/hellenes/civ/female/civ_female_what_is_it_3.ogg, error=No error reported here
> [2464] ERROR: error loading sound: pathname=audio/voice/hellenes/civ/female/civ_female_my_lord_1.ogg, error=No error reported here
> [2464] ERROR: error loading sound: pathname=audio/voice/hellenes/civ/female/civ_female_my_lord_2.ogg, error=No error reported here
> [2464] unknown(0): Much to our regret we must report the program has encountered an error. 
> [2464]  
> [2464] Please let us know at http://trac.wildfiregames.com/ and attach the crashlog.txt and crashlog.dmp files. 
> [2464]  
> [2464] Details: unhandled exception (Access violation reading 0x00000008) 
> [2464] 
Last edited 12 years ago by historic_bruno (previous) (diff)

comment:4 by michael, 12 years ago

Here is my debug view.

00000001 0.00000000 [5716] HRT: activating HPET failed: Unknown error (-100022, 0xFFFFFFFFFFFE794A)
00000002 0.00008222 [5716] HRT: using name=TSC freq=3013000000.000000
00000003 0.00010975 [5716] HRT: counter=TSC freq=3.013e+009 res=3.31895e-010 bits=64
00000004 0.00238656 [5716] Cache: 200 (total: 4096) MiB
00000005 0.00342219 [5716] TIMER| InitVfs: 1.65926 ms
00000006 0.01748266 [5716] Sound: AlcInit failed, m_Device=00000000 m_Context=002E0041 dev_name=DirectSound Software err=40964
00000007 0.01900790 [5716] TIMER| InitScripting: 1.40089 ms
00000008 0.02905294 [5716] TIMER| CONFIG_Init: 9.93925 ms
00000009 0.86245048 [5716] TIMER| RunHardwareDetection: 152.487 ms
00000010 0.90543211 [5716] TIMER| write_sys_info: 42.774 ms
00000011 0.91040635 [5716] TIMER| InitRenderer: 2.91257 ms
00000012 0.91851026 [5716] TIMER| ps_console: 7.85572 ms
00000013 0.92047417 [5716] TIMER| ps_lang_hotkeys: 1.4695 ms
00000014 0.92313898 [5716] TIMER| common/setup.xml: 1.89479 ms
00000015 0.92347807 [5716] TIMER| common/styles.xml: 251.545 us
00000016 0.92822576 [5716] TIMER| common/sprite1.xml: 4.40176 ms
00000017 0.93247020 [5716] TIMER| common/init.xml: 4.3218 ms
00000018 0.95497704 [5716] TIMER| common/common_sprites.xml: 5.64724 ms
00000019 0.96148133 [5716] TIMER| common/common_styles.xml: 932.473 us
00000020 0.96769816 [5716] TIMER| pregame/sprites.xml: 1.56915 ms
00000021 0.97372603 [5716] TIMER| pregame/styles.xml: 305.046 us
00000022 0.98445505 [5716] TIMER| pregame/mainmenu.xml: 16.5553 ms
00000023 0.98551005 [5716] TIMER| common/global.xml: 932.863 us
00000024 3.69197679 [5716] TIMER| common/setup.xml: 1.25239 ms
00000025 3.69211984 [5716] TIMER| common/styles.xml: 77.1447 us
00000026 3.69634271 [5716] TIMER| common/sprite1.xml: 4.1719 ms
00000027 3.70164704 [5716] TIMER| common/common_sprites.xml: 5.23867 ms
00000028 3.70242739 [5716] TIMER| common/common_styles.xml: 725.674 us
00000029 3.70328999 [5716] TIMER| gamesetup/setup.xml: 765.488 us
00000030 3.70359135 [5716] TIMER| gamesetup/sprites.xml: 219.982 us
00000031 3.70388818 [5716] TIMER| gamesetup/styles.xml: 227.649 us
00000032 3.73344040 [5716] TIMER| gamesetup/gamesetup.xml: 29.4381 ms
00000033 5.93690300 [5716] TIMER| common/setup.xml: 1.29832 ms
00000034 5.93708086 [5716] TIMER| common/styles.xml: 83.6731 us
00000035 5.94127846 [5716] TIMER| common/sprite1.xml: 4.1436 ms
00000036 5.94493437 [5716] TIMER| common/init.xml: 3.41919 ms
00000037 5.95016098 [5716] TIMER| common/common_sprites.xml: 5.13439 ms
00000038 5.95093536 [5716] TIMER| common/common_styles.xml: 721.271 us
00000039 5.95158291 [5716] TIMER| loading/styles.xml: 555.666 us
00000040 5.95258665 [5716] TIMER| loading/sprites.xml: 912.476 us
00000041 5.95574808 [5716] TIMER| loading/loading.xml: 3.02516 ms
00000042 5.95643091 [5716] TIMER| common/global.xml: 602.102 us
00000043 7.98464346 [5716] TIMER| common/setup.xml: 1.26647 ms
00000044 7.98483181 [5716] TIMER| common/styles.xml: 84.8228 us
00000045 7.98894644 [5716] TIMER| common/sprite1.xml: 4.06409 ms
00000046 7.98937941 [5716] TIMER| common/icon_sprites.xml: 342.229 us
00000047 7.99454451 [5716] TIMER| common/common_sprites.xml: 5.0938 ms
00000048 7.99530697 [5716] TIMER| common/common_styles.xml: 714.556 us
00000049 8.00291348 [5716] TIMER| session/sprites.xml: 7.48635 ms
00000050 8.00382805 [5716] TIMER| session/styles.xml: 806.438 us
00000051 8.13015652 [5716] TIMER| session/session.xml: 126.222 ms
00000052 8.13261604 [5716] TIMER| common/global.xml: 2.32609 ms
00000053 8.20497799 [5716] sound item could not be loaded to loop: audio/ambient/dayscape/day_temperate_gen_03.ogg
00000054 8.24750137 [5716] GAME STARTED, ALL INIT COMPLETE
00000055 11.29394436 [5716] ERROR: error loading sound: pathname=audio/interface/select/building/sel_civ_center.ogg, error=No error reported here
00000056 11.46889496 [5716] unknown(0): Much to our regret we must report the program has encountered an error.  
00000057 11.46889496 [5716]  
00000058 11.46889496 [5716] Please let us know at http://trac.wildfiregames.com/ and attach the crashlog.txt and crashlog.dmp files.  
00000059 11.46889496 [5716]  
00000060 11.46889496 [5716] Details: unhandled exception (Access violation reading 0x00000000)  
00000061 11.46889496 [5716]  

comment:5 by historic_bruno, 12 years ago

Resolution: fixed
Status: newclosed

Updating OpenAL Soft seems to have fixed it, see this topic. Should be fixed by r12459. Reopen if not :)

Note: See TracTickets for help on using tickets.