Skip to content

Crash in MilesAudioManager::stopPlayingAudio() #2770

@xezon

Description

@xezon

Random crash when game was paused with ESC button in USA 02 mission.

callstack

 	generalszh.exe!AsciiString::str() Line 447	C++	Symbols loaded.
 	generalszh.exe!operator==(const AsciiString & s1, const AsciiString & s2) Line 529	C++	Symbols loaded.
 	generalszh.exe!AudioEventRTS::getAudioEventInfo() Line 526	C++	Symbols loaded.
>	generalszh.exe!MilesAudioManager::stopPlayingAudio(PlayingAudio * release) Line 1045	C++	Symbols loaded.
 	generalszh.exe!MilesAudioManager::processPlayingList() Line 2180	C++	Symbols loaded.
 	generalszh.exe!MilesAudioManager::update() Line 461	C++	Symbols loaded.
 	generalszh.exe!SubsystemInterface::UPDATE() Line 73	C++	Symbols loaded.
 	generalszh.exe!GameEngine::update() Line 909	C++	Symbols loaded.
 	generalszh.exe!Win32GameEngine::update() Line 91	C++	Symbols loaded.
 	generalszh.exe!GameEngine::execute() Line 988	C++	Symbols loaded.
 	generalszh.exe!GameMain() Line 55	C++	Symbols loaded.
 	generalszh.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow) Line 929	C++	Symbols loaded.
 	generalszh.exe!invoke_main() Line 107	C++	Non-user code. Symbols loaded.
 	generalszh.exe!__scrt_common_main_seh() Line 288	C++	Non-user code. Symbols loaded.
 	generalszh.exe!__scrt_common_main() Line 331	C++	Non-user code. Symbols loaded.
 	generalszh.exe!WinMainCRTStartup(void * __formal) Line 17	C++	Non-user code. Symbols loaded.
 	kernel32.dll!76ea5d49()	Unknown	Non-user code. Cannot find or open the PDB file.
 	[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]		Annotated Frame
 	ntdll.dll!___RtlUserThreadStart@8()	Unknown	Non-user code. Symbols loaded without source information.
 	ntdll.dll!__RtlUserThreadStart@8()	Unknown	Non-user code. Symbols loaded without source information.

data

release->m_audioEventRTS is already deleted in MilesAudioManager::stopPlayingAudio()

<title>Document</title>
  Name Value Type
release 0x221b60f8 {m_sample=0x0d4c2de0 {...} m_3DSample=0x0d4c2de0 {junk=574690680 } m_stream=0x0d4c2de0 {...} ...} PlayingAudio *
  m_sample 0x0d4c2de0 {...} _SAMPLE *
  ▶ m_3DSample 0x0d4c2de0 {junk=574690680 } h3DPOBJECT *
  m_stream 0x0d4c2de0 {...} _STREAM *
  ◢ m_audioEventRTS 0x0b1efe98 {m_filenameToLoad= m_eventInfo=0xdeadbeef {m_audioName=...} ...} AudioEventRTS *
  ▶ __vfptr 0xdeadbeef {???} void * *
  ▶ m_filenameToLoad AsciiString
  ▶ m_eventInfo 0xdeadbeef {m_audioName={...} m_filename={...} m_volume=??? ...} const AudioEventInfo *
  m_playingHandle 3735928559 unsigned int
  m_killThisHandle 3735928559 unsigned int
  ▶ m_eventName AsciiString
  ▶ m_attackName AsciiString
  ▶ m_decayName AsciiString
  m_priority -559038737 AudioPriority
  m_volume -6.25985340e+18 float
  m_timeOfDay -559038737 TimeOfDay
  ▶ m_positionOfAudio {x=-6.25985340e+18 y=-6.25985340e+18 z=-6.25985340e+18 } Coord3D
  m_objectID -559038737 ObjectID
  m_drawableID -559038737 DrawableID
  m_ownerType -559038737 OwnerType
  m_shouldFade true (239) bool
  m_isLogicalAudio true (190) bool
  m_uninterruptible true (173) bool
  m_pitchShift -6.25985340e+18 float
  m_volumeShift -6.25985340e+18 float
  m_delay -6.25985340e+18 float
  m_loopCount -559038737 int
  m_playingAudioIndex -559038737 int
  m_allCount -559038737 int
  m_playerIndex -559038737 int
  m_portionToPlayNext -559038737 PortionToPlay
  m_file 0x00000000 void *
  m_type PAT_3DSample (1) PlayingAudioType
  m_status PS_Stopped (2) volatile PlayingStatus
  m_framesFaded 0 short
  m_fade false bool
  m_cleanupAudioEventRTS false bool

Metadata

Metadata

Assignees

No one assigned

    Labels

    AudioIs audio relatedCrashThis is a crash, very badZHRelates to Zero Hour

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions