pedrolcl / dmidiplayer

Drumstick MIDI File Player Multiplatform (mirror)
https://dmidiplayer.sourceforge.io
GNU General Public License v3.0
23 stars 6 forks source link

macOS: crash on launch due to missing library "libuchardet.0.dylib" #26

Closed mrbumpy409 closed 3 weeks ago

mrbumpy409 commented 3 weeks ago

dmidiplayer 1.7.3 crashes on launch of both of my macOS installations:

Neither system can be upgraded beyond its current macOS version, the MacBook Pro due to being unsupported, and the VirtualBox install due to my host CPU's lack of AVX2 instructions (Intel Core i7-990x).

In both cases, the culprit appears to be a missing libuchardet.0.dylib library. Here are the crash logs:

pedrolcl commented 3 weeks ago

can you please execute in a terminal emulation this command?

ls -la /Applications/dmidiplayer.app/Contents/Frameworks

it should list all libraries and frameworks bundled within the application, including libuchardet. If it is there, I don't know why is not loaded. Sorry.

Alternatively, you may try to install uchardet from homebrew: https://formulae.brew.sh/formula/uchardet Homebrew has also a cask providing dmidiplayer: https://formulae.brew.sh/cask/dmidiplayer

mrbumpy409 commented 3 weeks ago

can you please execute in a terminal emulation this command?

ls -la /Applications/dmidiplayer.app/Contents/Frameworks

it should list all libraries and frameworks bundled within the application, including libuchardet. If it is there, I don't know why is not loaded. Sorry.

Yes, I can see that libuchardet.0.dylib is indeed there. I have dmidiplayer installed through Homebrew, though I have the same issue when using it via the SourceForge download.

Alternatively, you may try to install uchardet from homebrew: https://formulae.brew.sh/formula/uchardet

Aah, installing uchardet solved the issue. Thank you! The player now opens and plays MIDI files just fine, and the onboard FluidSynth is working as well.