unibas-gravis / basel-face-model-viewer

Simple Viewer for the Basel Face Model 2017
Apache License 2.0
174 stars 33 forks source link

error on run: libc++abi.dylib: terminating with uncaught exception of type NSException #14

Open AsaphLightricks opened 3 years ago

AsaphLightricks commented 3 years ago

i installed java 8 and tried to run the viewer, It gave me a dialogue box asking to choose a file, image

so i picked the model-viewer.jar then i got this error:

(base) ashamir-MBP:Downloads ashamir$ java -Xmx2g -jar model-viewer.jar
2021-01-31 12:10:18.809 java[92178:33799839] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2021-01-31 12:10:18.809 java[92178:33799839] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff331739ad __exceptionPreprocess + 256
    1   libobjc.A.dylib                     0x00007fff5d897a17 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff3318d50d -[NSException raise] + 9
    3   AppKit                              0x00007fff307325ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
    4   AppKit                              0x00007fff3072f9f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
    5   AppKit                              0x00007fff3072f42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
    6   libnativewindow_macosx.dylib        0x000000011aad8f9e Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
    7   ???                                 0x000000011b886407 0x0 + 4756890631
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

any suggestions?

BernhardEgger commented 3 years ago

Looks like an error from jogl. Can you try to explicitly reinstall jogl? Also can you indicate OS X version and cpu type (especially if it is one of the new M ones) please

Best

Bernharf

On Sun, Jan 31, 2021, 5:16 AM Asaph Shamir notifications@github.com wrote:

i installed java 8 and tried to run the viewer, It gave me a dialogue box asking to choose a file, [image: image] https://user-images.githubusercontent.com/50834050/106380913-10b27900-63be-11eb-8fca-e6db2cc8f8c9.png

so i picked the model-viewer.jar then i got this error:

(base) ashamir-MBP:Downloads ashamir$ java -Xmx2g -jar model-viewer.jar 2021-01-31 12:10:18.809 java[92178:33799839] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread! 2021-01-31 12:10:18.809 java[92178:33799839] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!' First throw call stack: ( 0 CoreFoundation 0x00007fff331739ad __exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff5d897a17 objc_exception_throw + 48 2 CoreFoundation 0x00007fff3318d50d -[NSException raise] + 9 3 AppKit 0x00007fff307325ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317 4 AppKit 0x00007fff3072f9f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479 5 AppKit 0x00007fff3072f42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45 6 libnativewindow_macosx.dylib 0x000000011aad8f9e Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398 7 ??? 0x000000011b886407 0x0 + 4756890631 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6

any suggestions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/unibas-gravis/basel-face-model-viewer/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZK3YTVPOETM4XBDH5I35DS4UUZJANCNFSM4W3GWMDA .

AsaphLightricks commented 3 years ago

Hi, @BernhardEgger I'm using os x version: 10.14.6 cpu: 2.8 GHz Intel Core i7

I'm not sure how i fully reinstall jogl, i tried following the instructions here, but i got lost. I downloaded the jogamp-all-platforms.7z file, and expanded it, now what?

BernhardEgger commented 3 years ago

Hi,

this seems to be an error introduced by your friends at apple, an OS specific issue (they sell it as a feature of course). Easiest would be to try a different OS source: https://discourse.libsdl.org/t/crash-on-macos-10-14-mojave-with-sdl-showmessagebox/25100 https://groups.google.com/g/jaamsim-users/c/JGqmj9CRXcU/discussion

You can also try java -XstartOnFirstThread source: https://hub.jmonkeyengine.org/t/macos-nswindow-drag-regions-should-only-be-invalidated-on-the-main-thread/43523/9

Best Bernhard

0 1 0 0 0 1 1 1 1

On Mon, Feb 1, 2021 at 3:47 AM Asaph Shamir notifications@github.com wrote:

Hi, @BernhardEgger https://github.com/BernhardEgger I'm using os x version: 10.14.6 cpu: 2.8 GHz Intel Core i7

I'm not sure how i fully reinstall jogl, i tried following the instructions here https://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL, but i got lost. I downloaded the jogamp-all-platforms.7z file, and expanded it, now what?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/unibas-gravis/basel-face-model-viewer/issues/14#issuecomment-770683438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZK3YVJZY475ABD663KP3LS4ZTBDANCNFSM4W3GWMDA .