Alsa causes segmentation fault running openttd
Alsa causes segmentation fault running openttd
openttd [2025-03-18 23:04:21] dbg: [misc:0] Cryptographically-strong random generator unavailable; using fallback ALSA lib pcm.c:8568:(snd_pcm_recover) underrun occurred above line repeats, A LOT!!! Several screenfuls worth. Left out for brevity. ALSA lib pcm.c:8568:(snd_pcm_recover) underrun occurred Crash encountered, generating crash log... Crash log generated.
Crash in summary: OpenTTD version: Version: 14.1 Hash: 61342620bc4c0971b28b3578379b53d04d2f11f1 NewGRF ver: 1E086D64 Content ver: 14.0
Crash: Reason: Segmentation fault
Stacktrace:
Writing crash log to disk... Crash log written to /home/lubod/.local/share/openttd/crash20250319060812.json.log. Please add this file to any bug reports.
Writing crash dump to disk... No method to create a crash.dmp available. Writing crash dump failed.
Writing crash savegame... Crash savegame written to /home/lubod/.local/share/openttd/crash20250319060812.sav. Please add this file and the last (auto)save to any bug reports.
Writing crash screenshot... Crash screenshot written to /home/lubod/.local/share/openttd/crash20250319060812.png. Please add this file to any bug reports.
Crashes are (almost?) 100% guaranteed every time you click Settings in openttd, that seems to trigger it.
it appears this affects many linux distributions, and many games. And seems to be caused by alsa? https://gitlab.com/inolen/redream/-/issues/1291
references for research ls -la /proc/asound/ https://www.alsa-project.org/main/index.php/Asoundrc https://bbs.archlinux.org/viewtopic.php?id=228067 http://alsa.opensrc.org/Proc_asound_documentation less /proc/asound/card0/pcm0p/sub0/prealloc 64
attempted to remedy by altering alsa parameters, only partially successful, or sometimes not at all, seems most likely fix is new alsa packaging. echo 128 > /proc/asound/card0/pcm0p/sub0/prealloc causes another different alsa error in terminal, but now there is no sound also, settings still crashed! reset back to 64, sound is still gone, and underrun is there, but settings doesn't crash, at least not immediately! May also be related to specific hardware in use, ICH4 built into Dell Inspiron 600m. Candidate for oldest (32 bit x86/AMD) PC running Adelie quite reasonably :-)