Home › Forum › SOFA › Building SOFA › [SOLVED] Running sofa master after being compiled on macOS
Tagged: 64_bits, LLVM, MacOS, macOS launch clang cgImage exception, SOFA_1608
- This topic has 1 reply, 2 voices, and was last updated 7 years, 7 months ago by Hugo.
-
AuthorPosts
-
12 May 2017 at 11:16 #9118fiedlrBlocked
Hello,
I am trying to get sofa running on macOS El Capitan and I’ve compiled it without problems using clang (following your documentation). However, after launching runSofa I get:
[WARNING] [GUIManager] WARNING(SofaGUI): Previously used GUI not registered. Using default GUI. 2017-04-20 14:40:46.999 runSofa[11379:235325] *** Assertion failure in -[NSBitmapImageRep initWithCGImage:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1404.47/AppKit.subproj/NSBitmapImageRep.m:1289 2017-04-20 14:40:47.001 runSofa[11379:235325] An uncaught exception was raised 2017-04-20 14:40:47.001 runSofa[11379:235325] Invalid parameter not satisfying: cgImage != NULL 2017-04-20 14:40:47.001 runSofa[11379:235325] ( ... ) 2017-04-20 14:40:47.001 runSofa[11379:235325] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cgImage != NULL' *** First throw call stack: ( ... ) libc++abi.dylib: terminating with uncaught exception of type NSException ########## SIG 6 - SIGABRT: usually caused by an abort() or assert() ########## Abort trap: 6
That was with Qt5.8.0 from Homebrew, after upgrading to Sierra (LLVM v8.1.0), not much changed when using the official Qt binaries downloaded from their website:
[WARNING] [GUIManager] WARNING(SofaGUI): Previously used GUI not registered. Using default GUI. 2017-04-23 14:14:18.046 runSofa[17077:366047] *** Assertion failure in -[NSBitmapImageRep initWithCGImage:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.82.104/AppKit.subproj/NSBitmapImageRep.m:1296 2017-04-23 14:14:18.198 runSofa[17077:366047] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cgImage != NULL' *** First throw call stack: ( ... ) libc++abi.dylib: terminating with uncaught exception of type NSException ########## SIG 6 - SIGABRT: usually caused by an abort() or assert() ########## Abort trap: 6
Sorry for the shortened commandline outputs, but your forum system thinks this is a spam, so I had to edit it.
If I launch it in command-line only mode
./runSofa -g batch
I get a SIG 11.
I have SOFA_USE_MASK and SOFAGUI_QTVIEWER turned off, CUDA compiles with gcc. Everything else should be default.
Any ideas how to fix it?
Thanks a lot,
18 May 2017 at 17:55 #9132HugoKeymasterHi @fieldr,
Thank your for your detailed post!
I have very few experience with Mac unfortunately, and never saw such an error. Are you sure this is not an IOS issue ?
Could you maybe try compiling without Cuda for now ?Best,
-
AuthorPosts
- You must be logged in to reply to this topic.