#1034649 7kaa: Unplugging USB headset hangs 7kaa

Package:
7kaa
Source:
7kaa
Description:
Seven Kingdoms Ancient Adversaries: real-time strategy game
Submitter:
Nils Dagsson Moskopp
Date:
2023-12-18 18:33:05 UTC
Severity:
normal
Tags:
#1034649#5
Date:
2023-04-20 20:20:34 UTC
From:
To:
Dear Maintainer,

whenever I unplug the USB headset while 7kaa is running, it hangs.
7kaa prints a single line of output to the terminal, quoted below:

“lsusb” outputs the following information about the USB headset:

#1034649#10
Date:
2023-12-18 18:22:37 UTC
From:
To:
Hi Nils,

This looks like one of (many[1][2][3][4]) bugs in OpenAL's PulseAudio
backend (apparently OpenAL's upstream maintainer doesn't use PulseAudio,
which I don't either).  I found reports of it affecting at least one
other game.  If we can't solve it here, I'll reassign.

An apparent solution is to edit "/etc/openal/alsoft.conf" and under
"[pulse]" change "allow-moves" to "true".  Can you try this and report
whether that solves the issue?

It's also possible that there's an infinite loop somewhere in 7kaa's
src/openal/openal_audio.cpp triggered by this OpenAL error.  Could you
please install 7kaa-dbgsym, run 7kaa under gdb, reproduce the hang, and
get a backtrace?

    $ apt install 7kaa-dbgsym gdb
    $ gdb 7kaa
    (gdb) run
    ^C
    (gdb) backtrace
    (gdb) quit
[...]

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548373
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551018
[3]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562524
[4]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566634