You are not logged in.

#1 2024-11-19 12:18:38

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 673
Website

[SOLVED] Upgrading 0 A.D to openal-1.24.0 crashes the game

Hi all,

In short:

Game segfaulted after I updated openal to 1.24.0 yesterday. It works just fine after downgrading openal to 1.23.1 (therefore the 'tempfix'. No chicken were harmed.

- Software: Arch linux ; 0ad a26-17 ; 0ad-data a26-2
- Hardware: Intel Core i3 ; Nvidia GT 1030 (fanless)

Some more details:

With openal-1.24.0:

$ 0ad 
TIMER| InitVfs: 2.03109 ms
FILES| Main log written to '$HOME/.config/0ad/logs/mainlog.html'
FILES| Interesting log written to '$HOME/.config/0ad/logs/interestinglog.html'
TIMER| CONFIG_Init: 5.32788 ms
[E] pw.loop [loop.c:69 pw_loop_new()] 0x60457b6edb60: can't make support.system handle: No such file or directory
[ALSOFT] (EE) Failed to create PipeWire event thread loop (errno: 2)
Sound: AlcInit success, using OpenAL Soft
Assertion failed: "0 && (L"FYI: WARN_IF_FALSE reports that a function failed. Feel free to ignore or suppress this warning.")"
Location: SoundManager.cpp:841 (RunHardwareDetection)

Call stack:

(0x6045492c7d84) /usr/bin/pyrogenesis(+0x84ed84) [0x6045492c7d84]
(0x6045492740a0) /usr/bin/pyrogenesis(+0x7fb0a0) [0x6045492740a0]
(0x604549275a69) /usr/bin/pyrogenesis(+0x7fca69) [0x604549275a69]
(0x604549276335) /usr/bin/pyrogenesis(+0x7fd335) [0x604549276335]
(0x604548f16f23) /usr/bin/pyrogenesis(+0x49df23) [0x604548f16f23]
(0x604548f1a86e) /usr/bin/pyrogenesis(+0x4a186e) [0x604548f1a86e]
(0x604548f1a9a1) /usr/bin/pyrogenesis(+0x4a19a1) [0x604548f1a9a1]
(0x604548e2ad0c) /usr/bin/pyrogenesis(+0x3b1d0c) [0x604548e2ad0c]
(0x604548b2a375) /usr/bin/pyrogenesis(+0xb1375) [0x604548b2a375]
(0x604548b193ab) /usr/bin/pyrogenesis(+0xa03ab) [0x604548b193ab]
(0x736377745e08) /usr/lib/libc.so.6(+0x25e08) [0x736377745e08]
(0x736377745ecc) /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x736377745ecc]
(0x604548b231c5) /usr/bin/pyrogenesis(+0xaa1c5) [0x604548b231c5]

errno = 0 (No error reported here)
OS error = ?


Redirecting call to abort() to mozalloc_abort

/usr/bin/0ad: line 9: 49358 Segmentation fault      (core dumped) "$pyrogenesis" "$@"

With openal-1.23.1 :

$ 0ad
TIMER| InitVfs: 239.716 us
FILES| Main log written to '$HOME/.config/0ad/logs/mainlog.html'
FILES| Interesting log written to '$HOME/.config/0ad/logs/interestinglog.html'
TIMER| CONFIG_Init: 2.68025 ms
[E] pw.loop [loop.c:69 pw_loop_new()] 0x60eae9630130: can't make support.system handle: No such file or directory
[ALSOFT] (EE) Failed to create PipeWire event thread loop (errno: 2)
Sound: AlcInit success, using OpenAL Soft
FILES| UserReport written to '$HOME/.config/0ad/logs/userreport_hwdetect.txt'
TIMER| RunHardwareDetection: 6.44828 ms
FILES| Hardware details written to '$HOME/.config/0ad/logs/system_info.txt'
TIMER| write_sys_info: 17.4534 ms
TIMER| InitRenderer: 20.6847 ms
TIMER| ps_console: 4.63143 ms
TIMER| ps_lang_hotkeys: 3.00069 ms
TIMER| common/modern/setup.xml: 112.83 us
TIMER| common/modern/styles.xml: 100.456 us
TIMER| common/modern/sprites.xml: 776.77 us
TIMER| common/global.xml: 298.022 us
TIMER| common/setup.xml: 187.392 us
TIMER| common/sprites.xml: 464.298 us
TIMER| common/styles.xml: 66.51 us
TIMER| pregame/backgrounds/: 132.234 us
TIMER| pregame/sprites.xml: 96.276 us
TIMER| pregame/styles.xml: 29.007 us
TIMER| pregame/mainmenu.xml: 43.6955 ms
TIMER| common/modern/setup.xml: 93.616 us
TIMER| common/modern/styles.xml: 106.386 us
TIMER| common/modern/sprites.xml: 962.806 us
TIMER| msgbox/msgbox.xml: 17.0366 ms
TIMER| shutdown Renderer: 628.728 us
TIMER| shutdown SDL: 115.719 ms
TIMER| shutdown UserReporter: 1.94474 ms
TIMER| shutdown ConfigDB: 97.907 us
TIMER| resource modules: 24.6124 ms
TIMER TOTALS (7 clients)
-----------------------------------------------------
  tc_pool_alloc: 0 c (0x)
  tc_png_decode: 7546.19 kc (2x)
  tc_dds_transform: 30.636 kc (11x)
  tc_transform: 841.184 kc (5x)
  tc_plain_transform: 790.82 kc (5x)
  tc_ShaderValidation: 1142.95 kc (1x)
  xml_validation: 707.244 kc (3x)
-----------------------------------------------------
TIMER| shutdown misc: 8.26539 ms

Posted upstream too.

Last edited by kozaki (2024-11-26 09:00:19)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2 2024-11-19 17:30:32

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

Re: [SOLVED] Upgrading 0 A.D to openal-1.24.0 crashes the game

I can confirm that 0ad with openal 1.24.0-1 crashes, here with pulseaudio:

TIMER| InitVfs: 472.86 us
FILES| Main log written to '/home/user/.config/0ad/logs/mainlog.html'
FILES| Interesting log written to '/home/user/.config/0ad/logs/interestinglog.html'
TIMER| CONFIG_Init: 4.06184 ms
Sound: AlcInit success, using OpenAL Soft
Assertion failed: "0 && (L"FYI: WARN_IF_FALSE reports that a function failed. Feel free to ignore or suppress this warning.")"
Location: SoundManager.cpp:841 (RunHardwareDetection)

Call stack:

(0x571fcba8ed84) /usr/bin/pyrogenesis(+0x84ed84) [0x571fcba8ed84]
(0x571fcba3b0a0) /usr/bin/pyrogenesis(+0x7fb0a0) [0x571fcba3b0a0]
(0x571fcba3ca69) /usr/bin/pyrogenesis(+0x7fca69) [0x571fcba3ca69]
(0x571fcba3d335) /usr/bin/pyrogenesis(+0x7fd335) [0x571fcba3d335]
(0x571fcb6ddf23) /usr/bin/pyrogenesis(+0x49df23) [0x571fcb6ddf23]
(0x571fcb6e186e) /usr/bin/pyrogenesis(+0x4a186e) [0x571fcb6e186e]
(0x571fcb6e19a1) /usr/bin/pyrogenesis(+0x4a19a1) [0x571fcb6e19a1]
(0x571fcb5f1d0c) /usr/bin/pyrogenesis(+0x3b1d0c) [0x571fcb5f1d0c]
(0x571fcb2f1375) /usr/bin/pyrogenesis(+0xb1375) [0x571fcb2f1375]
(0x571fcb2e03ab) /usr/bin/pyrogenesis(+0xa03ab) [0x571fcb2e03ab]
(0x7ca66de34e08) /usr/lib/libc.so.6(+0x25e08) [0x7ca66de34e08]
(0x7ca66de34ecc) /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7ca66de34ecc]
(0x571fcb2ea1c5) /usr/bin/pyrogenesis(+0xaa1c5) [0x571fcb2ea1c5]

errno = 0 (No error reported here)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
e
Redirecting call to abort() to mozalloc_abort

/usr/bin/0ad: line 9:  9796 Segmentation fault      (core dumped) "$pyrogenesis" "$@"

In 0ad logs there was nothing interesting, 'coredumpctl info /usr/bin/pyrogenesis' returns:

PID: 9796 (main)
           UID: 1000 (user)
           GID: 1000 (user)
        Signal: 11 (SEGV)
     Timestamp: Tue 2024-11-19 18:10:32 CET (3min 14s ago)
  Command Line: /usr/bin/pyrogenesis
    Executable: /usr/bin/pyrogenesis
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (user)
       Boot ID: 1d54957d3d924d48b2957422aa989a81
    Machine ID: 4e6eb13c33544bc2bce3efeaf0d12478
      Hostname: home
       Storage: none
       Message: Process 9796 (main) of user 1000 terminated abnormally without generating a coredump.

I tried other games requiring openal which I have installed and they are working (for now): naev, warzone2100, freeorion, minetest, dwarffortress, supertuxkart.

Last edited by xerxes_ (2024-11-19 17:31:51)

Offline

#3 2024-11-22 09:19:32

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 673
Website

Re: [SOLVED] Upgrading 0 A.D to openal-1.24.0 crashes the game

Update: 0 A.D. team found the culprit, and the fix too if I understand the pull request Fix segfault with openal-1.24.0 correctly :-)

EDIT: problem solved with 0ad a26-18 and openal 1.24.0-1 (both from the 'extra' repository).

Nice job, community.

Last edited by kozaki (2024-11-26 08:59:57)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB