question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash at startup: Unable to load DLL 'bass'

See original GitHub issue

osu!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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
StartForKillercommented, Apr 14, 2018

Can linux load .dll? I think is .so

0reactions
jai-xcommented, Jun 14, 2018

Yes, it did.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found