Crash at startup: Unable to load DLL 'bass'
See original GitHub issueosu!lazer is unable to load the bass.dll
file despite it being present in the build output directory.
Platform: Linux kernel 4.14.11-1 64bit
Compiler/Runtime: .NETCore 2.1.103
Note: I am using a patched version of the OpenTK.dll
file with these changes: https://github.com/ppy/opentk/pull/16
Relevant Runtime Exception:
[runtime:error] fatal error:
[runtime:important] System.DllNotFoundException: Unable to load DLL 'bass': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at ManagedBass.Bass.GetDeviceInfo(Int32 Device, DeviceInfo& Info)
at ManagedBass.Bass.get_DeviceCount()
at osu.Framework.Audio.AudioManager.getAllDevices() in /home/jai/Projects/osu/osu-framework/osu.Framework/Audio/AudioManager.cs:line 188
at osu.Framework.Audio.AudioManager.updateAvailableAudioDevices() in /home/jai/Projects/osu/osu-framework/osu.Framework/Audio/AudioManager.cs:line 290
at osu.Framework.Audio.AudioManager.setAudioDevice(String preferredDevice) in /home/jai/Projects/osu/osu-framework/osu.Framework/Audio/AudioManager.cs:line 198
at osu.Framework.Audio.AudioManager.<>c__DisplayClass28_0.<onDeviceChanged>b__0() in /home/jai/Projects/osu/osu-framework/osu.Framework/Audio/AudioManager.cs:line 139
at osu.Framework.Threading.Scheduler.Update() in /home/jai/Projects/osu/osu-framework/osu.Framework/Threading/Scheduler.cs:line 147
at osu.Framework.Threading.GameThread.ProcessFrame() in /home/jai/Projects/osu/osu-framework/osu.Framework/Threading/GameThread.cs:line 124
at osu.Framework.Threading.GameThread.runWork() in /home/jai/Projects/osu/osu-framework/osu.Framework/Threading/GameThread.cs:line 106
at System.Threading.Thread.ThreadMain_ThreadStart()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'bass': The specified module or one of its dependencies could not be found.
Directory Hierarchy:
osu.Desktop/bin/Debug/netcoreapp2.0/
βββ libbass.dylib
βββ libbass_fx.dylib
βββ libbass_fx.x64.so
βββ libbass_fx.x86.so
βββ libbass.x64.so
βββ libbass.x86.so
βββ ManagedBass.dll.config
βββ ManagedBass.Fx.dll.config
βββ OpenTK.dll <-- Patched file
βββ osu!.deps.json
βββ osu!.dll
βββ osu.Framework.dll
βββ osu.Framework.pdb
βββ osu.Game.dll
βββ osu.Game.pdb
βββ osu.Game.Resources.dll
βββ osu.Game.Resources.pdb
βββ osu.Game.Rulesets.Catch.dll
βββ osu.Game.Rulesets.Catch.pdb
βββ osu.Game.Rulesets.Mania.dll
βββ osu.Game.Rulesets.Mania.pdb
βββ osu.Game.Rulesets.Osu.dll
βββ osu.Game.Rulesets.Osu.pdb
βββ osu.Game.Rulesets.Taiko.dll
βββ osu.Game.Rulesets.Taiko.pdb
βββ osu!.pdb
βββ osu!.runtimeconfig.dev.json
βββ osu!.runtimeconfig.json
βββ x64
βΒ Β βββ avcodec-51.dll
βΒ Β βββ avformat-52.dll
βΒ Β βββ avutil-49.dll
βΒ Β βββ bass.dll <-- existing dll not found by program
βΒ Β βββ bass_fx.dll
βΒ Β βββ d3dcompiler_47.dll
βΒ Β βββ libEGL.dll
βΒ Β βββ libGLESv2.dll
βΒ Β βββ pthreadGC2.dll
βΒ Β βββ SQLite.Interop.dll
βββ x86
βββ avcodec-51.dll
βββ avformat-52.dll
βββ avutil-49.dll
βββ bass.dll
βββ bass_fx.dll
βββ d3dcompiler_47.dll
βββ libEGL.dll
βββ libGLESv2.dll
βββ pthreadGC2.dll
βββ SQLite.Interop.dll
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to fix the application crash at startup when using 64- ...
The most common cause for that is when the loader attempts to load a 32 bit DLL into your 64 bit process. Use...
Read more >bass.dll Is Missing Error | Fix #1 | 2021 - YouTube
Well that's unfortunate, but Let's see how to fix it! Download Link: https://www.sts-tutorial.com/ download / bass - - Steps - - Download theΒ ......
Read more >unable to load DLL Bass
When I code Bass.Bass_init in vb.net( Bass.BASS_Init(1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero)and debug it throws an exception ofΒ ...
Read more >[Archived] Oh no! OSU! crashed Β· forum - ppy
Problem Details: System.DllNotFoundException: Unable to load DLL 'bass.dll': Invalid access to memory location.
Read more >Bass.dll Download: Fix DLL Missing or Not Found Error
Method 2: Fix the missing Bass.dll error automatically ; Step 1: Click the βDownload App. β button to get an automatic tool, provided...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can linux load .dll? I think is .so
Yes, it did.