Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Mr. Friendly

Randomly Generated Acts Of Kindness · By JP LeBreton

[Solved] GZDoom crash on getting specific music CDs

A topic by Max le Fou (JMF Games) created Jan 11, 2025 Views: 130 Replies: 4
Viewing posts 1 to 3
(1 edit)

As title says. In the actual latest build on gzdoom 4.14.0, there's a big crash that happens when the player picks up CDs when it's some specific musics. Here's the error:

/usr/include/c++/14.2.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = short int; _Alloc = std::allocator<short int>; reference = short int&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

One of the songs calling this crash is "Alexander Brandon - Versalife - Deus Ex" which seems to correspond to the file dx_versa.it which is present and can be played with no issues on VLC... Maybe investigate and fix or even consider removing them if gzdoom don't support IT music files anymore?

Thanks.

Developer

I can reproduce this on my Linux desktop with all the IT, S3M, PSM, and MOD files - basically all the tracker formats. I'm not sure what GZDoom changed to break these - I'm guessing it's not intentional, because tons of mods use tracker music and they are probably now also broken. I'll see what I can find out, thanks for the bug report.

Which OS are you running GZDoom 4.14.0 from?

Developer

Okay, just tried recompiling ZMusic (GZDoom dependency) and it fixed the crash - I'm guessing that this was the fix that went in just today: https://github.com/ZDoom/ZMusic/commit/f6facdaa683e7159b7569d5287a088da352a7c92

So hopefully a GZDoom minor version update will release soon that fixes this for everyone. And if you're compiling your own, you can get it right away.

(1 edit)

I'm on manjaro which is arch-based. with kernel 6.12.4

I was expecting it was more a gzdoom problem than a mod problem but well, better mention it just in case... Let's hope the problem gets fixed fast.

Well, zmusic got updated. Tried it and the problem didn't appeared anymore. Problem solved. ^^