ibsh / is_KeyFinder

Musical key detection software for digital DJs, for Mac OSX and Windows, released under GPL v3
www.ibrahimshaath.co.uk/keyfinder
322 stars 52 forks source link

crash on OS X 10.8.5 caused by lib tag.1.dylib #98

Open sch4llfl3g3l opened 8 years ago

sch4llfl3g3l commented 8 years ago

Drag 'n drop mp3 into GUI causes KeyFinder to crash on OS X 10.8.5 with the following error (shortened, full log file attached):

"Dyld Error Message: Symbol not found: _OSAtomicDecrement32Barrier Referenced from: /Applications/KeyFinder.app/Contents/MacOS/../Frameworks/libtag.1.dylib Expected in: /usr/lib/libSystem.B.dylib"

FIX (in my case): compile taglib-1.10 for OS X 10.8 with CMake.app (GUI) + make (CLI), replace libtag.1.dylib inside the app package with the new compiled version (remove libtag.1.dylib, copy the 3 .dylib-files including the symlinks into there).

Attached is the source (from tag lib.github.io), the build dir with compiled dylib + symlinks (inside build/taglib), a Screenshot of CMake showing the compile-flags and the crash log.

As i had problems to find a proper HowTo for CMake GUI: to compile, first set the paths + flags in the GUI, then click "Generate" (i accidentally did "Generate" -> "Configure" -> "Generate" again). The next step cannot be done with the GUI: the GUI just creates the Makefile for OS X make. You have to cd to the chosen build-dir by Terminal.app and then run "make". keyfinder_taglib_osx_10_8.zip

mastoppa commented 8 years ago

hello i am on OSX 10.8.5 and of course i have the same crash.... can you "translate" the solution in normal human language? ;-) i understand that it's about recompiling the source code with another "component" but cannot understand anything about the procedure.... are you not allowed to upload the compiled app with the 10.8.5 fix? if not could you please explain step by step what should i have to do with the files you uploaded? thanks

sch4llfl3g3l commented 8 years ago

Hi mastoppa, i attached the recompiled files to my post (keyfinder_taglib_osx_10.8.zip). Anyway: attached you find my fixed KeyFinder.app. Just use this until there is an official fix. I found another problem few minutes ago: loading FLAC files also leads to a crash. In this case i don't get a distinct error log, so i have no clue what may be the reason … WAV and MP3 are working. I mostly use MP3 but FLAC is getting more and more important these Days. KeyFinder.app.zip

mastoppa commented 8 years ago

It works!! THANKS A LOT!!!

Date: Thu, 14 Jan 2016 05:47:11 -0800 From: notifications@github.com To: is_KeyFinder@noreply.github.com CC: mastoppa@hotmail.com Subject: Re: [is_KeyFinder] crash on OS X 10.8.5 caused by lib tag.1.dylib (#98)

Hi mastoppa, i attached the recompiled files to my post (keyfinder_taglib_osx_10.8.zip). Anyway: attached you find my fixed KeyFinder.app. Just use this until there is an official fix.

I found another problem few minutes ago: loading FLAC files also leads to a crash. In this case i don't get a distinct error log, so i have no clue what may be the reason … WAV and MP3 are working. I mostly use MP3 but FLAC is getting more and more important these Days.

KeyFinder.app.zip

— Reply to this email directly or view it on GitHub.

sch4llfl3g3l commented 8 years ago

You're welcome. Open Source means users help each other and the developers. I'm in luck to be a systems-admin & programmer. DJing is my hobby. Am 16.01.2016 16:07 schrieb "mastoppa" notifications@github.com:

It works!! THANKS A LOT!!!

Date: Thu, 14 Jan 2016 05:47:11 -0800 From: notifications@github.com To: is_KeyFinder@noreply.github.com CC: mastoppa@hotmail.com Subject: Re: [is_KeyFinder] crash on OS X 10.8.5 caused by lib tag.1.dylib (#98)

Hi mastoppa, i attached the recompiled files to my post (keyfinder_taglib_osx_10.8.zip). Anyway: attached you find my fixed KeyFinder.app. Just use this until there is an official fix.

I found another problem few minutes ago: loading FLAC files also leads to a crash. In this case i don't get a distinct error log, so i have no clue what may be the reason … WAV and MP3 are working. I mostly use MP3 but FLAC is getting more and more important these Days.

KeyFinder.app.zip

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/ibsh/is_KeyFinder/issues/98#issuecomment-172214699.

james-mcgoodwin commented 8 years ago

Have a similar report for MacOS X 10.9.5 here.

Same crash report and cause: libtag.1.dylib

I solved using Homebrew and essentially the same as above @mastoppa only I relied on Homebrew to download/compile the libtag library from it's repository.

This assumes:

  1. You want/have Homebrew installed
  2. Your Homebrew install has it's Cellar at this path: /usr/local/Cellar (see brew config to validate)

brew install libtag cd '/Applications/KeyFinder.app/Contents/Frameworks' rm libtag.1.dylib INSTALLED_LIBTAG_VERSION=$(brew info --json=v1 libtag | python -c 'import json,sys;obj=json.load(sys.stdin);print obj[0]["installed"][0]["version"]') cp /usr/local/Cellar/taglib/${INSTALLED_LIBTAG_VERSION}/lib/libtag.1.dylib libtag.1.dylib