George Garside Blog

A place of many ramblings about macOS and development. If you find something useful on here, it's probably an accident.

Problem background

Since updating to OS X El Capitan, Vector Magic Desktop Edition crashes when you try to vectorise an image, at the smoothing image step.

Dyld Error Message:
  Symbol not found: _dgesv_
  Referenced from: /Applications/Vector Magic.app/Contents/MacOS/Vector Magic Desktop Edition
  Expected in: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib

Vector Magic Smoothing Image
Vector Magic Smoothing Result step crashes app at around 76%

This is due to the libBLAS.dylib being updated in El Capitan and Vector Magic not being updated for it. This also applies to macOS Sierra since the same updated dylib is present there too. You can fix this by replacing the libBLAS.dylib with an older version.

Also, since updating to macOS Sierra, Vector Magic crashes on launch as Vector Magic Desktop Edition cannot be opened because of a problem. This is followed by a crash log with the following:

Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/Applications/Vector Magic.app/Contents/MacOS:/Applications/Vector Magic.app/Contents/MacOS/ImageMagick-6.4.1/lib

Dyld Error Message:
  Symbol not found: _appleblas_i16gemm
  Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
 Expected in: /Applications/Vector Magic.app/Contents/MacOS/libBLAS.dylib
 in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib

libBLAS.dylib

For both the solutions below, you will need a copy of libBLAS.dylib from Yosemite. If you have a Mac still running 10.10, you can grab it from the folder shown in the next step, otherwise you can download libBLAS.dylib here. This libBLAS.dylib is from OS X Yosemite 10.10.4 where Vector Magic works fine.

New solution: replace the dylib in Vector Magic

Thanks to a comment, an alternative solution is provided which doesn’t require you to disable SIP, as you can replace the dylib within Vector Magic itself.

  1. Open Finder, press ⇧⌘G and paste
    /Applications/Vector Magic.app/Contents/MacOS/ImageMagick-6.4.1/lib
  2. Drag the replacement libBLAS.dylib from Yosemite (download from above) into this folder.
  3. In macOS Sierra: Run the following in Terminal: (triple-click to select the entire line)
    cp /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib /Applications/Vector\ Magic.app/Contents/MacOS/ImageMagick-6.4.1/lib
    This command copies libBNNS.dylib from the system’s Accelerate framework to Vector Magic ImageMagick’s lib folder. You are welcome to do this manually using the Finder instead of running this command as both achieve the same effect.

If this doesn’t work, try the original solution provided below.

Original solution for El Capitan and prior: replacing the system dylib

The new solution applies to Sierra and prior, not just Sierra. You should try the new solution first before tampering with system files in this solution.

  1. Disable System Integrity Protection to permit OS X to modify system dylibs. If you don’t disable SIP, you can’t make changes to /System/Library/Frameworks/ which prevents you from modifying the dylib.
  2. Open Finder, press ⇧⌘G and paste /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/
  3. These next steps must be carried out exactly as shown here, otherwise this could leave you with a system which only boots to single user mode. You’re making changes to system dylibs—have a backup you can access in single user mode. You can’t just delete the dylib and replace it.
  4. Select libBLAS.dylib in the folder you just opened, hold ⌥ and drag it to the same folder.
    Fix Vector Magic Desktop Edition crash when smoothing image in macOS Sierra due to an updated system dylib
  5. Drag the replacement libBLAS.dylib which you obtained above or from another system to this folder and select Replace in the Finder dialog.
    Copy file in Finder replacing existing file

Vector Magic will work fine now! If you need to use the original libBLAS.dylib, you can replace it with the libBLAS 2.dylib. You can re-enable System Integrity Protection after verifying that Vector Magic works.

Leave a Reply

3 Jonny Heald’s avatar

**** FIX FOR Mac OS Sierra ****

i copied the libBNNS.dylib file from:

/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/

and pasted it into the Vector Magic directory:

/Applications/Vector Magic.app/Contents/MacOS/ImageMagick-6.4.1/lib

along with the fix in this blog with the libBLAS file from Yosemite and now i have vector magic working in Sierra 🙂

hope that helps get everyone else back up and running https://uploads.disquscdn.com/images/dc0b557cee8e135b0dc0b2c0cc90c65376e607c4034f7430af5b15807928d60d.png

Reply
0 FireFoxes’s avatar

Thank you Mr Jonny Heald. You friggin heaven sent angel.

Yes yes yes. For macOS users that couldn’t get the above solution to work!!

  1. Download the LibBLAS.dylib like the website says and move to contents of vector magic application. If it doesn’t open… then:
  2. Do what Johnny says above with LibBNNS.

thank you sir once again

Reply
0 Mike’s avatar

Thanks!!!!!

Reply
0 marcos samerson’s avatar

Thank You @jonnyheald:disqus!!!!! It’s working on MacOS X Sierra!!!!

Reply
0 Trey’s avatar

I know this is an old thread (Okay, a REALLY old thread) but was wondering if anyone has gotten this to work on Mojave yet?

Reply
0 Vektor’s avatar

Does the download work? It just opens random simbols in the browser.

Reply
0 Per’s avatar

Anyone have the download libBLAS.dylib from Yosemite?

If then please send!

Reply
0 Oscar Madrigal’s avatar

It won’t even open on the MacOS Sierra Beta .. hope there will be a fix when the OS come out this fall

Reply
0 René’s avatar

Its works! thank you very much……god will pay you!!

Reply
0 Joel Ases Ruiz’s avatar

Thanks a lot! It’s working well.

Reply
0 Ivan Zotov’s avatar

Thank you so much!

Reply
0 Erick Rios’s avatar

Excellent work! Worked like a charm! Thank you!!

Reply
0 Christina’s avatar

Thank you so much for this!

Reply
0 Gianni’s avatar

You are the best dude, thanks so much!

Reply
0 A L Vee’s avatar

Thank you!

Reply
0 Carlos Javier Marin Sanchez’s avatar

EXCELLENT!!!! Thanks very much!!! It works replacing libBLAS!!!

Reply
0 UrbanK’s avatar

Since putting libBLAS.dylib into the folder, Vector Magik doesn’t open at all now, only when I remove libBLAS.dylib back out of that folder, the program will run, but when creating a vector, it’ll crash and the program will just disappear.

Reply
0 marcos samerson’s avatar

Same problem here.

Reply
0 Jorge E. Flores’s avatar

Mac OS Sierra, right?

Reply
0 marcos samerson’s avatar

With the LibBlas.dylib The App doesn’t open, without, crash when render smoothness

Reply
0 marcos samerson’s avatar

Right!

Reply
0 Jonny Heald’s avatar

Not sure if this can help someone figure our a fix but using the libBLAS as instructed above when it crashes it gives this error in the logs:

Dyld Error Message:

Symbol not found: _appleblas_i16gemm

Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib

Expected in: /Applications/Vector Magic.app/Contents/MacOS/ImageMagick-6.4.1/lib/libBLAS.dylib

in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib

Looks like Sierra is looking for i16gemm in the BLAS file but its not there.

anyone?

Reply
0 Jonny Heald’s avatar

i figured it out guys, check my fix above in these comments for Mac OS Sierra fix

Reply
1 UrbanK’s avatar

Still the same issue, uninstalled and installed Vector Magic again, but it doesn’t have libBLAS.dylib in the folder, so I downloaded and put it in there (from the download on this webpage) and Vector Magic doesn’t open at all… only when I take that libBLAS file back out, Vector Magic opens, but then crashes every time at the end of the smoothing process, and yes this is with macOS Sierra, it was working fine with El Capitan.

Reply
0 Marcos’s avatar

Didnt work for me. I replaced libBLAS.dylib from vm folder and nothing happened. Then i try to raplace from version/a immediatly my finder and orthers app stopped to work. I had to reestar my mac and now its freezing on boot sreen on 100%

Reply
0 Bolesław Okrutny’s avatar

New solution works on: El Capitan 10.11.6Thanks man!

Reply
0 bwtms’s avatar

THX!!!!!!!!

Reply
0 David’s avatar

Great!! It works fine now! Thanks 🙂

Reply
0 Andrew Rusli’s avatar

I followed all the steps. But since I replaced libBLAS.dylib with yours, I couldn’t log in my user on my MacBook Pro. It just stuck on the loading bar. Luckily, I found ways to replace it back the dylib from another machine and I can log back in. Vector Magic still not work tho. Any help?

Reply
0 Stepan Leav’s avatar

Add libBLAS.dylib inside VM, and this work….magic ;D

Reply
0 Толя Карасов’s avatar

This solution is better:

1. Download libBLAS.dylib from Yosemite

1. Open the contents of the Vector Magich . app

2. Paste the downloaded libBLAS.dylib to this folder → Vector Magic . app / Contents / MacOS / ImageMagick-6.4.1 / Lib

4. Done!

Reply
0 bwtms’s avatar

it works with MacOS Sierra!!!!!!!!!!! THX

Reply
0 Mars’s avatar

Hello I´m trying to follow your steps But when i try to copy the file they don´t let me copy the file in the folder, what I have to do to get me access ? or copy the file in folder ? thanks and regards 🙂

Reply
0 Uygar Yasar’s avatar

New solution works for me, two up sides comparing to the initial workaround; 1- It is safer (no fiddling in the system folder) 2- It will work even with the future OS updates (if Apple doesn’t change more framework functionality) Thanks author!

Reply
0 anthonydominic’s avatar

dude you are a genious !!! thx !!!

Reply
0 Rhett F’s avatar

You’re a miracle worker. Thank you.

Reply
0 Matthieu Escoriza’s avatar

Thank you ! You’re a genious !

Reply
0 Jay Banks’s avatar

dude you saved my life. thank you!

Reply
0 Егор Меркушев’s avatar

Thank you!

Reply
0 Diego Gomes’s avatar

Thanks! you save my life!

Reply
0 xyz’s avatar

it works 🙂 !!!

Reply
0 hamidijaz’s avatar

Its not working anymore 🙁 i have updated to Sierra 10.12.6 (16G29) Any solution? also the file link is not working

Reply
0 Ryan Sprague’s avatar

This is somehow not working for me. I copied the link above from the new solution and receive this in my Terminal. Thoughts on what’s going wrong? I am running High Sierra.

Last login: Tue Feb 20 12:13:16 on console

Ryans-iMac:~ ryansprague$ cp /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib /Applications/Vector Magic.app/Contents/MacOS/ImageMagick-6.4.1/lib

cp: /Applications/Vector Magic.app/Contents/MacOS/ImageMagick-6.4.1/lib: No such file or directory

Ryans-iMac:~ ryansprague$

Reply
-1 Per’s avatar

That not working for me!

Reply