TheAssemblyArmada / Thyme

An open source re-implementation of Generals : Zero Hour written in C++.
GNU General Public License v2.0
584 stars 59 forks source link

"Sound Loop" Crash or Freeze #261

Open alanblack166 opened 3 years ago

alanblack166 commented 3 years ago

Operating System: Windows 10

Original game source: TFD

Issue explanation

An issue related to the audio engine, or some of its components, can lead to the game either freezing and not responding, or outright crashing to the desktop. Anecdotal evidence hints at too many unique AudioEvents being enqueued or processed, which aligns with the reality that mods are more vulnerable to this type of crash than vanilla Zero Hour.

Steps to reproduce the problem

There are none. There is no 100% discernible cause for this and it has to be caught in the act.

Log files

CrashInfo.txt

tomsons26 commented 3 years ago

The crash log isn't from 1.04 binary but searching the bytes the function at fault can be found. It crashes in some std/stlport function, call comes from removeLevelSpecificAudioEventInfos or freeEnoughSpaceForSample. If its removeLevelSpecificAudioEventInfos then container being accessed is m_audioInfoHashMap.

tomsons26 commented 3 years ago

Will need @OmniBlade to look into this as i have no clue how to deal with a std related crash.