You are not logged in.

#1 2022-07-25 18:39:04

xerxes_
Member
Registered: 2018-04-29
Posts: 662

[SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

When starting new fast game play in Hedgewars with CPU, right after me or CPU is to beginning to do first move, there is a game engine crash: skrimish game is abroted (but whole game don't crash!) and small window appears with error (translated to english):

"A critical error occurred! The game engine had to be stopped.
We are very sorry for inconvenience.
Engine's last message:
Hedgewars: Mix_LoadWAV_RW: Unrecognized audio format"

No errors in coredumpctl, journalctl or Xorg.0.log.

There is silence in game: no sounds or music, even in menu. When I disable "sounds in game" in options then there is no crash.

Last edited by xerxes_ (2022-09-25 17:04:45)

Offline

#2 2022-07-25 21:06:18

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

SDL_mixer in 2.6 line switched from libvorbis to stb_vorbis, which seems to fail to handle the files.

Currently the best workaround is to rebuild sdl2_mixer with `--disable-music-ogg-stb --enable-music-ogg-vorbis`. That will disable stb and use libvorbis instead.

I am slowly⁽¹⁾ working on finding the exact cause.
____
⁽¹⁾ Due to my condition I can’t do it at any sane pace.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2022-07-25 22:15:36

xerxes_
Member
Registered: 2018-04-29
Posts: 662

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

OK, no need to hurry, it's just a game. I just wanted someone to notice it.

Offline

#4 2022-07-25 22:52:19

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

Just a game? JUST A GAME?! I will drop a melon on your head for saying that! wink

No bug report is opened, because I haven’t found out yet which project is responsible for the issue: is that a packaging problem in Arch, inclusion of stb_vorbis by SDL or the way Hedgewars uses the functions. But the issue has been discussed in #hedgewars@Libera almost 2 weeks ago, so at least some people involved in Hedgewars development are aware. Since other distros are slower in deploying new SDL_mixer version, currently there is no drive to debug the issue beyond Arch and presence of an easy and safe⁽¹⁾ fix makes it a not pressing issue even in our favorite distribution.

Out of curiosity: which game type do you usually play?
____
⁽¹⁾ Unlike holding packages (partial upgrades) or doing some dirty tricks, this is a normal feature of the library, which should be completely invisible to any dependent package.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2022-07-26 10:00:28

xerxes_
Member
Registered: 2018-04-29
Posts: 662

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

I play mostly shooters, but now rarely, from time to time and now only open source - I hate platforms like steam.

Offline

#6 2022-07-26 21:52:10

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

I meant: which Hedgwars game type or servers. smile


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#7 2022-07-27 20:14:19

xerxes_
Member
Registered: 2018-04-29
Posts: 662

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

I play fast skrimish with random settings against CPU. No network game so far.

Offline

#8 2022-07-30 15:55:31

jongeduard
Member
Registered: 2022-01-06
Posts: 6

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

Hi, I have already made a bug report on 17 July, https://bugs.archlinux.org/task/75355?p … &pagenum=2.

I already expressed my suspicion about sdl2 indeed, I wasn't sure whether it was sdl2 mixer or other packages.

On my Fedora installation Hedgewars still works, but I see that Fedora is still using an older version of sdl2_mixer.

Last edited by jongeduard (2022-07-30 15:56:15)

Offline

#9 2022-07-30 22:36:44

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

I added some information to the bug report, to clarify the situation. As stated above, it is triggered entirely by the switch to the std_vorbis backend.

As for the question of playing Hedgewars — note that it really doesn’t belong to the bug tracker — I routinely play Monarchy mod for Hedgewars (currently v18).


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#10 2022-08-24 11:52:19

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

sdl2_mixer-2.6.2-1 has hit the repos. The release is cotnains only a bugfix for MacOS, so the issue and the workaround remain the same.

Manwhile, someone willing to poke around Pascal-side PhysFS interaction with SDL_mixer is needed (see Arch’s bugtracker).

Last edited by mpan (2022-08-24 11:53:23)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#11 2022-09-25 17:04:18

xerxes_
Member
Registered: 2018-04-29
Posts: 662

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

Now with hedgewars-1.0.0-331-x86_64.pkg.tar.zst package version sound and music in game can be normally heard and there is no any error. I don't know which package version changed this, because I didn't checked every version, but as it works for me, I mark this thread as SOLVED.

Offline

#12 2022-09-26 01:09:41

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: [SOLVED] Hedgewars: "Mix_LoadWAV_RW: Unrecognized audio format" error

It’s fixed since -329 by applying Fix the sound issues and crashes on some platforms.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB