Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1758 closed defect (fixed)

Crash in CBufferItem destructor when closing game after OpenAL errors

Reported by: historic_bruno Owned by: stwf
Priority: Should Have Milestone: Alpha 12
Component: Core engine Keywords: sound
Cc: Patch:

Description (last modified by historic_bruno)

Easy way to reproduce this is on the combat demo map with -serializationtest and -ooslog, I get a lot of OpenAL errors (see attached log), then closing the game results in this crash. OS: Win 7 64-bit

Call stack:

 	ntdll.dll!_ZwRaiseException@12()  + 0x12 bytes	
 	ntdll.dll!_ZwRaiseException@12()  + 0x12 bytes	
 	KernelBase.dll!_RaiseException@16()  + 0x58 bytes	
 	msvcr100.dll!__CxxThrowException@8()  + 0x45 bytes	
 	msvcr100.dll!operator new()  + 0x2cfe4 bytes	
>	pyrogenesis.exe!CBufferItem::~CBufferItem()  Line 48	C++
 	pyrogenesis.exe!CBufferItem::`scalar deleting destructor'()  + 0xb bytes	C++
 	pyrogenesis.exe!CSoundManagerWorker::Shutdown()  Line 88	C++
 	pyrogenesis.exe!CSoundManager::`scalar deleting destructor'()  + 0x14 bytes	C++
 	pyrogenesis.exe!Shutdown(int __formal=0)  Line 707	C++
 	pyrogenesis.exe!RunGameOrAtlas(int argc=3, const char * * argv=0x00000003)  Line 508 + 0x6 bytes	C++
 	pyrogenesis.exe!main(int argc=3, char * * argv=0x00c482c8)  Line 550 + 0xc bytes	C++
 	pyrogenesis.exe!wmain(int argc=3, wchar_t * * argv=0x006e7f50)  Line 380 + 0xa bytes	C++
 	pyrogenesis.exe!__tmainCRTStartup()  Line 552 + 0x17 bytes	C
 	pyrogenesis.exe!CallStartupWithinTryBlock()  Line 397	C++
 	kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes	
 	ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes	
 	ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes	

For what it's worth the value of num_processed in the destructor is 698022224!

Attachments (1)

interestinglog.html (186.9 KB ) - added by historic_bruno 11 years ago.

Download all attachments as: .zip

Change History (6)

by historic_bruno, 11 years ago

Attachment: interestinglog.html added

comment:1 by historic_bruno, 11 years ago

Description: modified (diff)

comment:2 by stwf, 11 years ago

Resolution: fixed
Status: newclosed

comment:3 by stwf, 11 years ago

THe true problem hasn't been addressed here, but the crashing should be stopped. Also it should now only report the first error, in allocation.

I don't get this error btw. Even on the huge combat demo.

Has this ever happened in a regular game? The strings of errors?

comment:4 by Kieran P, 11 years ago

Milestone: Alpha 13Alpha 12

comment:5 by Jonathan Waller, 11 years ago

The errors have often appeared in regular games for me.

Note: See TracTickets for help on using tickets.