Bug 231886 - games/lwjgl: Audio distortions and crashes with openal-soft 1.19.0
Summary: games/lwjgl: Audio distortions and crashes with openal-soft 1.19.0
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Tobias Kortkamp
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2018-10-02 21:02 UTC by Johannes Lundberg
Modified: 2019-05-15 06:59 UTC (History)
2 users (show)

See Also:
tobik: maintainer-feedback? (freebsd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Lundberg 2018-10-02 21:02:41 UTC
Some sounds effects are more like white noise or crackling sound. Eventually minecraft-client will crash with libopenal.so being the culprit. 

Compiling with pulseaudio backend and forcing it to use that make no difference.

Playing music or video in Firefox works fine (non-openal stuff).

Reverting openal-soft to 18.2 solves the issue. 

This with 12-ALPHA8 on Intel Kabylake laptop.
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2018-10-03 03:27:29 UTC
(In reply to Johannes Lundberg from comment #0)
What makes you think that this is a problem in openal and not
some undefined behavior in lwjgl that now shows itself?  A
stack trace would be nice.

Are other applications using openal-soft affected?  Try running
altonegen (it should output a normal sine wave).  You could also
try mpv built with OPENAL=on.  Use 'mpv -ao openal' to select the
OpenAL backend.

If you have a ~/.alsoftrc or /usr/local/etc/openal-soft/alsoftrc
try moving them out of the way too.
Comment 2 Johannes Lundberg 2018-10-03 08:33:36 UTC
Yeah you're right. mpv plays fine with openal so it might be that lwjgl expects 18.2.
Comment 3 Tobias Kortkamp freebsd_committer freebsd_triage 2018-10-09 06:09:41 UTC
Over to games/lwjgl maintainer.
Comment 4 Alan Somers freebsd_committer freebsd_triage 2018-11-09 02:28:22 UTC
I've seen the same crash in games/0ad and openal-soft 1.19.0 on 12.0-BETA3.  I did not have this problem when using openal-soft 1.18.2.  Here's the stack trace:

(lldb) bt
* thread #1, name = 'alsoft-mixer', stop reason = signal SIGSEGV
  * frame #0: 0x0000000801d9f7e0 libopenal.so.1`___lldb_unnamed_symbol495$$libopenal.so.1 + 496
Comment 5 Alan Somers freebsd_committer freebsd_triage 2018-11-09 15:53:25 UTC
And here's a similar bug report from Arch Linux.  I think it's an OpenAL bug.

https://www.reddit.com/r/wine_gaming/comments/9f3w0g/hearing_loud_pops_in_left_audio_channel_since/
Comment 6 Tobias Kortkamp freebsd_committer freebsd_triage 2018-11-09 16:11:17 UTC
Does openal-soft 1.19.1 work better for you?

Please compile openal-soft with debugging symbols (make WITH_DEBUG=) to
hopefully get a better stacktrace. At the moment it's not very helpful.
Comment 7 Alan Somers freebsd_committer freebsd_triage 2018-11-10 03:25:34 UTC
So far openal-soft 1.19.1 is working bug-free.  I'd lasted a lot longer than 1.19.0 did.
Comment 8 Tobias Kortkamp freebsd_committer freebsd_triage 2019-01-12 13:16:21 UTC
(In reply to Alan Somers from comment #7)
> So far openal-soft 1.19.1 is working bug-free.  I'd lasted a lot longer than
> 1.19.0 did.

Any more problems?

Has anybody retested lwjgl against openal-soft 1.19.1 ?
Comment 9 Alan Somers freebsd_committer freebsd_triage 2019-01-12 16:47:43 UTC
Still no problems with 1.19.1 and games/0ad.
Comment 10 Tobias Kortkamp freebsd_committer freebsd_triage 2019-05-15 06:59:35 UTC
I'm assuming that this is no longer a problem since nobody has said anything
to the contrary after comment #9.