COP - missing sound can break the engine and cause crash

Open
#2,056 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
game-dev

Research direction

Start by reproducing the crash with a nonexistent sound referenced in a weapon *.ltx, then inspect the attached BugTrap report and follow the sound-trigger path. Done means the engine stays running and records a warning in the log when the sound file is missing.

Written by the indexing model from the issue text.

Description

Bug Game assets Modmaker Experience Player Experience

Describe the bug
There is a missing sound file in mod, causing engine to crash.
It would be good to make engine more resilient to missing sound files and keep the error in log file without crashing.

To Reproduce
Steps to reproduce the behavior:

  1. Add non existent sound in any weapon *.ltx
  2. Trigger the sound to execute in game
  3. Engine crash

Expected behavior
It would be good if it would only warn about missing sound in log

BugTrap error report

OpenXRay_error_report_260225-151959.zip

Desktop (please complete the following information):

OpenXRay Release build 9880, Feb 25 2026 (Windows 64-bit, shared)
GitHub Actions build 6313 (22375759503) from commit[4c22279821da375c61c84e76e45a52d6a5d3b19f] branch[dev] (built by OpenXRay/xray-16)

Dominant language
C++
Stars
3.6k
Forks
565
Avg merge
9h 54m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenXRay/xray-16

All issues in OpenXRay/xray-16

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.