Намертво виснет игра из-за бага в загрузчике звука \ The game freezes due to a bug in the sound loader.
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reviewing openxray_admin.log and the combat_music.zip placeholders, then reproduce the freeze with dynamic music enabled while approaching hostile NPCs. Use the Visual Studio output and the combat\theme_part_xxx files to trace the sound-loader failure; done means the missing or invalid OGG comments produce a clear error that references the affected audio files instead of an unexplained freeze.
Written by the indexing model from the issue text.
Description
[RU]
В момент, когда подходим к вражеским NPC (должна начаться перестрелка), игра внезапно умирает. Нет ни вылета с ошибкой, ни лога, она просто намертво зависает.
Как потом показала визуалка и дебаг, дело оказалось в динамической музыке (включается в настройках звука), а конкретно незакомментированных (или неверно закомментированных) ogg-файлах. Сначала не обращали на это внимание, так как отсутствие комментариев в ogg-аудио обычно не является критической проблемой и просто маячит в консоли или логе как некритичные ошибки (по аналогии с бамп-текстурами).
- Заменяем динамическую музыку (combat\theme_part_xxx) на беззвучные затычки.
- Включаем динамическую музыку в игре (в настройках звука).
- Подходим к скоплению враждебно настроенных NPC, перед тем как должна начаться перестрелка.
- Игра намертво виснет. Никакого репорта об ошибке не появляется.
По-хорошему в момент зависания должен быть отчёт об ошибке со ссылкой на эти аудиофайлы, но в итоге она «маячила где-то на фоне», пока сами не обратили внимание в Visual Studio на консоль в момент зависания и строчки лога. Не знаю уж, это в OpenXRay сделано, чтобы игра зависала при наличии незакомментированных ogg-аудио, то ли дело конкретно в динамической музыке, которая включается при реагировании противников на игрока.
Прикладываю ссылку на видео, в котором отчетливо зафиксирован процесс, включительно с зависанием и строками об отсутствующих комментариях в ogg-аудио.
Багрепорта нет, как я упоминал. Эта проблема видна только в Visual Studio во время дебаггирования. Но лог прикладываю для того, чтобы было видно, что с обычной версией движка жалоб в логе на ogg-аудио не видно вообще.
Кроме того, приложил эти самые «затычки» для динамической музыки (ставили временно, так как есть желание либо вырезать её на фиг из движка, либо заменить на свою, что потребует особого подхода).
— OC: Windows 10
— OpenXRay Release Build (29.09.2025)
Сделайте так, чтобы выдавало ошибку со ссылкой на отсутствие комментариев в ogg-аудио. Чтобы не было таких придурков как мы, которые полгода искали причину и пробовали всё на свете, пока осознали, что проблема всё это время была под носом.
[ENG]
The moment we approach enemy NPCs (a firefight should start), the game suddenly crashes. There is no error message or log, it just freezes completely.
As the 'visual' and debugger later showed, the problem was with the dynamic music (enabled in the sound settings), specifically with uncommented (or incorrectly commented) ogg-files. At first, we didn't pay attention to this, since the absence of comments in ogg audio is usually not a critical issue and simply appears in the console or log as non-critical errors (similar to bump textures).
- Replace the dynamic music (combat\theme_part_xxx) with silent placeholders.
- Enable dynamic music in the game (in the sound settings).
- Approach a group of hostile NPCs before the shootout is supposed to start.
- The game freezes completely. No error report appears.
Ideally, at the moment of freezing, there should be an error report with a reference to these audiofiles, but in the end, it was “somewhere in the background” until we ourselves paid attention to the console in Visual Studio at the moment of freezing and the log lines. I don't know if this is done in OpenXRay to make the game freeze when there are uncommented ogg-audio files, or if it's specifically due to the dynamic music that plays when enemies react to the player.
I am attaching a link to a video that clearly shows the process, including the freeze and the lines about missing comments in the ogg audio.
As I mentioned, there is no bug report. This problem is only visible in Visual Studio during debugging. But I am attaching the log so that you can see that with the regular version of the engine, there are no complaints about ogg-audio in the log at all.
In addition, I added these placeholders for dynamic music (they were installed temporarily, as there is a desire to either remove it from the engine altogether or replace it with our own, which will require a special approach).
— OC: Windows 10
— OpenXRay Release Build (09/29/2025)
Make it so that it gives an error with a reference to the lack of comments in ogg audio. So that there won't be idiots like us who spent six months looking for the cause and trying everything under the sun before realizing that the problem was right under our noses the whole time.
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 565
- Avg merge
- 9h 54m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenXRay/xray-16
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Bug Call of Pripyat Mods Portability
Difficulty 4/5 Over a week Newbie friendliness 15/100
OpenXRay/xray-16#2215 · 1 comment ·
Maintainers usually reply within 1 day
-
Bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Bug Linux OpenGL
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OpenXRay/xray-16#2197 · 5 comments ·
Maintainers usually reply within 1 day
All issues in OpenXRay/xray-16
Similar issues
-
Invalid-MissingHash/Commit/NotAC
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
azerothcore/azerothcore-wotlk#28636 ·
Maintainers usually reply within 1 day
-
(S1 - Need confirmation)
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CleverRaven/Cataclysm-DDA#89829 ·
Maintainers usually reply within 1 day
-
comp-documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ClickHouse/ClickHouse#136277 ·
Maintainers usually reply within 1 day
-
Flow Needs: Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
react/react-native#60447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day