Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client crashes on startup because of missing OpenAL library (Ubuntu LTS) #106

Open
samld opened this issue Oct 6, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@samld
Copy link

samld commented Oct 6, 2023

Client crashes on startup after the splash screen is shown.

Here is the client.stderr.log file's content:

Unhandled exception. System.DllNotFoundException: Could not load the dll 'libopenal.so.1' (this load is intercepted, specified in DllImport as 'AL').
   at OpenTK.Audio.OpenAL.ALLoader.ImportResolver(String libraryName, Assembly assembly, Nullable`1 searchPath)
   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
   at OpenTK.Audio.OpenAL.ALC.OpenDevice(String devicename)
   at Robust.Client.Graphics.Audio.ClydeAudio._audioOpenDevice() in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/Graphics/Audio/ClydeAudio.cs:line 99
   at Robust.Client.Graphics.Audio.ClydeAudio._initializeAudio() in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/Graphics/Audio/ClydeAudio.cs:line 45
   at Robust.Client.Graphics.Audio.ClydeAudio.InitializePostWindowing() in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/Graphics/Audio/ClydeAudio.IoC.cs:line 33
   at Robust.Client.Graphics.Audio.FallbackProxyClydeAudio.InitializePostWindowing() in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/Graphics/Audio/FallbackProxyClydeAudio.cs:line 27
   at Robust.Client.GameController.StartupContinue(DisplayMode displayMode) in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/GameController/GameController.cs:line 114
   at Robust.Client.GameController.ContinueStartupAndLoop(DisplayMode mode) in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/GameController/GameController.Standalone.cs:line 127
   at Robust.Client.GameController.GameThreadMain(DisplayMode mode) in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/GameController/GameController.Standalone.cs:line 119
   at Robust.Client.GameController.<>c__DisplayClass100_0.<Run>b__0() in /home/runner/work/RobustToolbox/RobustToolbox/Robust.Client/GameController/GameController.Standalone.cs:line 86
@ElectroJr
Copy link
Member

I think this might just be some known issue on some linux distros where you have to install/configure openal. E.g., see space-wizards/space-station-14/issues/19671.

Though IMO the launcher should probably check for openal and give a user friendly error message if its missing.

@PJB3005
Copy link
Member

PJB3005 commented Oct 21, 2023

We should be shipping OpenAL instead, I just need to un-spaghettify our native compilation stack.

@PJB3005 PJB3005 added the bug Something isn't working label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants