Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2387 closed defect (duplicate)

Game crash during startup (CSoundManagerWorker::Run)

Reported by: phenol Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: stwf Patch:

Description

Normally, the game starts without error but today I received the following msg on startup: Location: unknown:0 (?)

Call stack:

(error while dumping stack: No stack frames found) errno = 0 (No error reported here) OS error = 0 (no error code was set)

Attachments (2)

crashlog.txt (9.0 KB ) - added by phenol 10 years ago.
crashlog.txt
crashlog.dmp (43.8 KB ) - added by phenol 10 years ago.
crashlog.dmp

Download all attachments as: .zip

Change History (7)

by phenol, 10 years ago

Attachment: crashlog.txt added

crashlog.txt

by phenol, 10 years ago

Attachment: crashlog.dmp added

crashlog.dmp

comment:1 by historic_bruno, 10 years ago

Cc: stwf added

So it's not reproducible? Seems a bit like #2183 and #2345, not consistently reproducible crashes in the sound manager.

Perhaps it failed to initialize, though I'm not sure how it could get this far without an error:

>	pyrogenesis.exe!CSoundManagerWorker::Run()  Line 141 + 0x6 bytes	C++
 	pyrogenesis.exe!CSoundManagerWorker::RunThread(void * data=0x00457c70)  Line 123	C++
 	pyrogenesis.exe!thread_start(void * param=0x0075eae8)  Line 624 + 0x3 bytes	C++
 	msvcr90.dll!_callthreadstartex()  Line 348 + 0x6 bytes	C
 	msvcr90.dll!_threadstartex(void * ptd=0x0045e400)  Line 326 + 0x5 bytes	C
 	kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes	
 	ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes	
 	ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes	

(the dump indicates that g_SoundManager is a NULL pointer)

comment:2 by wraitii, 10 years ago

Also similar to #2317. Definitely a NULL pointer issue.

comment:3 by historic_bruno, 10 years ago

Summary: Game crash during startupGame crash during startup (CSoundManagerWorker::Run)

comment:4 by historic_bruno, 10 years ago

Milestone: Backlog
Resolution: duplicate
Status: newclosed

Duplicate of #2333.

comment:5 by ben, 10 years ago

In 15269:

Fixes rare crash in sound manager, due to worker thread dereferencing global pointer before it had been assigned. Fixes #2333, refs #2387, #2317.
Fixes potential infinite loop if worker thread was running but not enabled.
Fixes apparent bug in fading sound smoothness.
Cleans up worker class slightly.
Cleans up weird and inconsistent whitespace.

Note: See TracTickets for help on using tickets.