Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#469 closed defect (worksforme)

[NEEDS INFO] Access violation writing 0x0B69CA40

Reported by: Ikkerens Owned by:
Priority: Release Blocker Milestone: Alpha 3
Component: Core engine Keywords:
Cc: Jan Wassenberg 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 writing 0x0B69CA40)

Location: unknown:0 (?)

Call stack:

0B69CA40

errno = 0 (?) OS error = 487 (Poging om toegang te verkrijgen tot ongeldig adres.) Above translated: Attempt to access a invalid adress.

When debugging in vs2008, stops at this part (green arrow pointing at second line): File: unifont.cpp

		// [cumulative for 12: 20ms]
		(*f->glyphs_id)[(wchar_t)Codepoint] = (unsigned short)i;
		(*f->glyphs_size)[(wchar_t)Codepoint] = Advance;

Attachments (6)

crashlog.dmp (47.9 KB ) - added by Ikkerens 14 years ago.
crashlog.txt (3.1 KB ) - added by Ikkerens 14 years ago.
system_info.txt (2.3 KB ) - added by Ikkerens 14 years ago.
timeoferror.jpg (124.7 KB ) - added by Ikkerens 14 years ago.
crashlog_original.dmp (53.3 KB ) - added by Ikkerens 14 years ago.
crashlog_original.txt (3.1 KB ) - added by Ikkerens 14 years ago.

Download all attachments as: .zip

Change History (29)

comment:1 by Ikkerens, 14 years ago

Forgot to say, can't find crashlog.dmp and crashlog.txt on my whole comp. (C:\ search) Do have this, the log of vs2008:

'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\pyrogenesis.exe', Symbols loaded.
'pyrogenesis.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\opengl32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\user32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\glu32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\ddraw.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\dciman32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\setupapi.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\ole32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\libxml2.dll', Binary was not built with debug information.
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wsock32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\ws2_32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\nsi.dll'
'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\iconv.dll', Binary was not built with debug information.
'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\zlib1.dll', Binary was not built with debug information.
'pyrogenesis.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_d08d7da0442a985d\msvcr80.dll'
'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\OpenAL32.dll', Binary was not built with debug information.
'pyrogenesis.exe': Loaded 'C:\Windows\System32\shell32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\winmm.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\oleacc.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4148_none_5090ab56bcba71c2\msvcp90.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4148_none_5090ab56bcba71c2\msvcr90.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\imm32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\msctf.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\lpk.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\usp10.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\dsound.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\powrprof.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\clbcatq.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\MMDevAPI.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wintrust.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\crypt32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\msasn1.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\userenv.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\secur32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\imagehlp.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wdmaud.drv'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\ksuser.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\avrt.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\AudioSes.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\AudioEng.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\psapi.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\msacm32.drv'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\msacm32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\midimap.dll'
TIMER| InitVfs: 10.1992 ms
'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\js32.dll', Binary was not built with debug information.
'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\libnspr4.dll', Binary was not built with debug information.
'pyrogenesis.exe': Loaded 'C:\Windows\System32\mswsock.dll'
'pyrogenesis.exe': Loaded 'C:\0ad\binaries\system\msvcr71.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wship6.dll'
TIMER| InitScripting: 83.1805 ms
TIMER| CONFIG_Init: 38.4726 ms
'pyrogenesis.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
'pyrogenesis.exe': Loaded 'C:\Users\Rens Rikkerink\Documents\Spreekbeurt\dwh\Hwhook.dll', Binary was not built with debug information.
'pyrogenesis.exe': Loaded 'C:\Windows\System32\atioglxx.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wbem\wbemprox.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wbemcomn.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\rsaenh.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wbem\wbemsvc.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\wbem\fastprox.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\ntdsapi.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\dnsapi.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\Wldap32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\netapi32.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\version.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\nlaapi.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\dhcpcsvc.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\winnsi.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\dhcpcsvc6.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\NapiNSP.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\pnrpnsp.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\winrnr.dll'
'pyrogenesis.exe': Loaded 'C:\Windows\System32\rasadhlp.dll'
TIMER| write_sys_info: 121.642 ms
TIMER| ps_console: 614.314 ms
TIMER| ps_lang_hotkeys: 76.802 ms
TIMER| common/setup.xml: 19.9525 ms
TIMER| common/styles.xml: 11.5172 ms
TIMER| common/sprite1.xml: 23.0902 ms
TIMER| common/init.xml: 268.478 ms
TIMER| pregame/sprites.xml: 22.2831 ms
TIMER| pregame/styles.xml: 25.8339 ms
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
First-chance exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
Unhandled exception at 0x0b9cf000 in pyrogenesis.exe: 0xC0000005: Access violation.
The program '[2804] pyrogenesis.exe: Native' has exited with code -1073741819 (0xc0000005).

by Ikkerens, 14 years ago

Attachment: crashlog.dmp added

by Ikkerens, 14 years ago

Attachment: crashlog.txt added

by Ikkerens, 14 years ago

Attachment: system_info.txt added

comment:2 by Philip Taylor, 14 years ago

I think OpenLogsFolder.bat (in the SVN checkout) opens the folder which may have the crashlog files in it, though I'm not certain about that.

At what time did this error occur? (e.g. did it display the main menu or not?)

Is this a repeatable problem? If so, can you copy the output from the debugger's Call Stack and Locals windows at the point where it crashes?

comment:3 by Ikkerens, 14 years ago

Already found the files, went trough some forum browsing. The error occurs as soon as the primariy window is given the 0 A.D. title. (See screenshot I uploaded)

I don't understand your last question, its a repeatable problem (game won't even start up), but where can I find the debugger's Call Stack?

by Ikkerens, 14 years ago

Attachment: timeoferror.jpg added

comment:4 by Philip Taylor, 14 years ago

If you do "Break" and get into the VS2008 debugger, then that should have a Call Stack window somewhere (or use the Debug menu -> Windows -> Call Stack to show it).

It looks like you're using a version you've compiled yourself (is that correct?). It also looks like it's a Release build rather than Debug build, which makes these problems harder to debug - if you change it back to the default build configuration (Debug), does it work and/or give more error information?

Also, if you revert to the standard pyrogenesis.exe/.pdb files from SVN (via some TortoiseSVN "revert" option etc), and run those without recompiling, does it work?

comment:5 by Ikkerens, 14 years ago

Already tried the original pyrogenesis.exe, giving the same error. And yes, I have compiled my own version, at least tried to, but it gave no errors. Il recompile as debug, and show you what il get.

comment:6 by Philip Taylor, 14 years ago

If you can't get the debug build to work, then it'd be helpful to upload crashlog.dmp after running (and crashing) the original pyrogenesis.exe. (The .dmp files work best when they come from a standard version of the .exe where we have all the matching debug symbol files.)

by Ikkerens, 14 years ago

Attachment: crashlog_original.dmp added

by Ikkerens, 14 years ago

Attachment: crashlog_original.txt added

comment:7 by Ikkerens, 14 years ago

Used the original pyrogenesis, see crashlog_original.dmp and crashlog_original.txt

comment:8 by Philip Taylor, 14 years ago

Hmm, unfortunately that doesn't help much, it just says

>	pyrogenesis.exe!PerformErrorReaction(ErrorReaction er=ER_BREAK, unsigned int flags=0x00000000, unsigned char * suppress=0x00000000)  Line 426	C++
 	pyrogenesis.exe!debug_DisplayError(const wchar_t * description=0x0024cfd8, unsigned int flags=0x00000000, void * context=0x0024dd0c, const wchar_t * lastFuncToSkip=0x00f8bf4c, const wchar_t * pathname=0x0024cde4, int line=0x00000000, const char * func=0x0024cdcc, unsigned char * suppress=0x00000000)  Line 494 + 0xd bytes	C++
 	pyrogenesis.exe!wseh_ExceptionFilter(_EXCEPTION_POINTERS * ep=0x0024dbcc)  Line 289 + 0x65 bytes	C++
 	pyrogenesis.exe!CallStartupWithinTryBlock()  Line 363 + 0x9 bytes	C++
 	pyrogenesis.exe!_except_handler4(_EXCEPTION_RECORD * ExceptionRecord=0x7ffde000, _EXCEPTION_REGISTRATION_RECORD * EstablisherFrame=0x0024fd40, _CONTEXT * ContextRecord=0x7760e4b6, void * DispatcherContext=0x7ffde000)  + 0x20 bytes	C
 	kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes	

which I suppose makes sense because it'll unwind the stack before reporting access violations. So that's not going to work.

Only potentially useful thing is

-		ContextRecord	0x0024dd0c {ContextFlags=0x0001003f Dr0=0x00000000 Dr1=0x00000000 ...}	_CONTEXT *
		ContextFlags	0x0001003f	unsigned long
		Dr0	0x00000000	unsigned long
		Dr1	0x00000000	unsigned long
		Dr2	0x00000000	unsigned long
		Dr3	0x00000000	unsigned long
		Dr6	0x00000000	unsigned long
		Dr7	0x00000000	unsigned long
+		FloatSave	{ControlWord=0xffff027f StatusWord=0xffff0122 TagWord=0xffffffff ...}	_FLOATING_SAVE_AREA
		SegGs	0x00000000	unsigned long
		SegFs	0x0000003b	unsigned long
		SegEs	0x00000023	unsigned long
		SegDs	0x00000023	unsigned long
		Edi	0x0b0d1600	unsigned long
		Esi	0x0b22ca40	unsigned long
		Ebx	0x0a71d380	unsigned long
		Edx	0x00000004	unsigned long
		Ecx	0x0b086b80	unsigned long
		Eax	0x0b01c078	unsigned long
		Ebp	0x690d76f0	unsigned long
		Eip	0x0b22ca40	unsigned long
		SegCs	0x0000001b	unsigned long
		EFlags	0x00010202	unsigned long
		Esp	0x0024dfd8	unsigned long
		SegSs	0x00000023	unsigned long

Probably would be best if you can run in debug mode :-)

comment:9 by Philip Taylor, 14 years ago

(Oh, actually the stack trace thing doesn't make sense like that, I'm just forgetting how SEH works. Not sure what's up with it, then.)

comment:10 by Ikkerens, 14 years ago

Ok, another change: If I use vista to run the game in XP SP2 compitablity mode (using fancywater = false) The game stucks at 3 mb ram in the process list doing nothing. Waited for like 15 minutes.

comment:11 by Philip Taylor, 14 years ago

Have you tried recompiling in debug mode?

comment:12 by Ikkerens, 14 years ago

Jup, still no luck.

comment:13 by Jan Wassenberg, 14 years ago

Cc: Jan Wassenberg added

hm, unfortunately it's almost impossible to diagnose this with the current information.

1) when debugging in VS: what is the value of Codepoint when you hit the error? BTW, you can disable the error dialog (in the hope that the VS debugger is more successful at breaking to the locus of the error) by commenting out the __try and __except near the end of source\lib\sysdep\os\win\wseh.cpp .

2) the PDB in SVN (revision 7347, as indicated in the crashlog) does not match the crashlog_original.dmp. Can you please upload the exact EXE and PDB that generated the .dmp?

comment:14 by Philip Taylor, 14 years ago

Jan: The .exe was built from the source in r7347, and hence was committed as r7348. If you update to that version then it'll match the .dmp correctly.

comment:15 by Jan Wassenberg, 14 years ago

My mistake, thanks for pointing that out. However, even after reverting to 7348 and copying the resulting PDB to d:\0ad\svn\binaries\system (the path referenced in the dmp), VC2005 is reporting missing or mismatched symbols for both .dmp files. What are you doing differently?

comment:16 by Philip Taylor, 14 years ago

The autobuilder is VC2008 SP1 - maybe the PDB files are too new VC2005 to load?

comment:17 by Jan Wassenberg, 14 years ago

Yep, looks like that was the cause, they match with VC2008SP1. Since the call stack doesn't show anything before the exception filter, it looks like remote debugging isn't going to work. The two alternatives are commenting out the __try and __except at the bottom of wseh.cpp, recompiling, and uploading the EXE, PDB and DMP, or continuing in your local debugger. The f->glyphs_size line looks promising; if you hover with the mouse over the "Codepoint" text, what value does it show?

comment:18 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

comment:19 by Andrew, 14 years ago

Milestone: Backlog

comment:20 by historic_bruno, 13 years ago

Resolution: invalid
Status: newclosed
Summary: Access violation writing 0x0B69CA40[NEEDS INFO] Access violation writing 0x0B69CA40

Please provide more info for this ticket to be reopened.

comment:21 by Kieran P, 13 years ago

Resolution: invalid
Status: closedreopened

comment:22 by Kieran P, 13 years ago

Resolution: worksforme
Status: reopenedclosed

comment:23 by Kieran P, 13 years ago

Milestone: BacklogAlpha 3
Note: See TracTickets for help on using tickets.