NSWindow drag regions should only be invalidated on the Main Thread!

5,744 views
Skip to first unread message

scottg...@gmail.com

unread,
Oct 30, 2018, 9:30:51 AM10/30/18
to Jaamsim Users Discussion Group
I just upgraded my to MacBookPro Mojave, and now I'm getting this error

2018-10-30 08:34:49.306 java[2498:19668] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
0 AppKit 0x00007fff46f922e3 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 386
1 AppKit 0x00007fff46f8f68c -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1488
2 AppKit 0x00007fff46f8f0b6 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
3 libnativewindow_macosx.jnilib 0x00000001281213fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
4 ??? 0x000000010d21d9d4 0x0 + 4515289556
)
2018-10-30 08:34:50.642 java[2498:19668] pid(2498)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!


The following post appears to describe the problem. Is this a known problem with JaamSim ?

https://discourse.libsdl.org/t/crash-on-macos-10-14-mojave-with-sdl-showmessagebox/25100

Harry King

unread,
Oct 30, 2018, 2:15:31 PM10/30/18
to Jaamsim Users Discussion Group
Scott,

We haven't tested JaamSim under Mojave yet, so this appears to be a new bug from our friends at Apple. I will look into this further and see what can be done.

Thanks for reporting it.

Harry

scottg...@gmail.com

unread,
Oct 31, 2018, 7:51:47 AM10/31/18
to Jaamsim Users Discussion Group
Harry,

I forgot to mention that I also did the following, to try and eliminate other possible culprits:
- Installed the latest Java "1.8.0_191"
- Installed the latest Eclipse SimRel 2018-09

Thanks for looking into it.

Scott

Harry King

unread,
Oct 31, 2018, 2:00:29 PM10/31/18
to Jaamsim Users Discussion Group
Scott,

The bug turns out to be a known problem with the JOGL software we use for 3d graphics. Unfortunately, it will take a while to get a fix in place.

I'll provide an update when I have more information.

Harry
Message has been deleted
Message has been deleted

jo...@aluna.io

unread,
Mar 11, 2019, 7:10:41 PM3/11/19
to Jaamsim Users Discussion Group

Hello Harry,

Has there been any update around this issue?

Thanks,
JV

Harry King

unread,
Mar 12, 2019, 11:17:18 AM3/12/19
to Jaamsim Users Discussion Group
JV,

We are still waiting for the JOGL people to release a new version with this bug fixed.

Harry

sgo...@gmail.com

unread,
Apr 4, 2019, 6:40:00 PM4/4/19
to Jaamsim Users Discussion Group

Hi there

Nobody did contact me AFAIK, however,
since I prepare for next releases I saw this
_upcoming_ issue for the next OSX release
and added a bug report:
https://jogamp.org/bugzilla/show_bug.cgi?id=1370

Yes, the WARNING appears on OSX 10.14 but it will become
a hard issue only thereafter as they stated in their message.

JogAmp [Roadmap] Update
=========================

Feature Overview
https://jogamp.org/wiki/index.php/SW_Tracking_Report_Feature_Objectives_Overview

TBD (To Be Determined)
https://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_undetermined_release

2.4.0
https://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_for_the_release_2.4.0

2.5.0
https://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_for_the_release_2.5.0

3.0.0
https://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_for_the_release_3.0.0

Harvey Harrison

unread,
Apr 4, 2019, 7:28:35 PM4/4/19
to sgo...@gmail.com, Jaamsim Users Discussion Group
Hmm, I was sure I had forwarded a note to you, but looking through my
sent items I can't find ever forwarding to the JOGL team, thanks very
much for digging this issue out of our forum and adding a bug report
to your bugzilla, I will try to be more diligent next time!

I thought (the danger of assuming!) it was being tracked under the
following jogl forum post:

http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html

But I see a formal bug report may not have made it out of that discussion.

Harvey
> --
> You received this message because you are subscribed to the Google Groups "Jaamsim Users Discussion Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
> Visit this group at https://groups.google.com/group/jaamsim-users.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/1bb25723-a642-4133-b67b-aa3cc9bca33e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Anirudh Pochiraju

unread,
Oct 13, 2020, 3:37:32 AM10/13/20
to Jaamsim Users Discussion Group
Hey Guys,

has there been a solution to this problem? I am trying to run an applet on my Mac Prog 15' OSVersion 10.15.6 (19G2021), and I get this error,

```

2020-10-13 12:58:23.425 java[20124:1221854] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!

2020-10-13 12:58:23.425 java[20124:1221854] *** 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                      0x00007fff338dbb57 __exceptionPreprocess + 250

1   libobjc.A.dylib                     0x00007fff6c7245bf objc_exception_throw + 48

2   CoreFoundation                      0x00007fff3390434c -[NSException raise] + 9

3   AppKit                              0x00007fff30afe5ec -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310

4   AppKit                              0x00007fff30ae6052 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416

5   AppKit                              0x00007fff30ae5ac3 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42

6   libnativewindow_macosx.jnilib       0x0000000160074f9e Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398

7   ???                                 0x00000001193b9407 0x0 + 4718302215

)

libc++abi.dylib: terminating with uncaught exception of type NSException
```

I cant seem to din a solution for this anywhere else! Any information would really help. Thank you.


Packet Soda

unread,
Oct 17, 2020, 5:58:55 PM10/17/20
to Jaamsim Users Discussion Group

Tim Frei

unread,
Nov 30, 2020, 11:43:31 AM11/30/20
to Jaamsim Users Discussion Group
Hello, im running into same problem trying to use JaamSim for my Bachelors Thesis. When ever I start it from Eclipse the loading window opens and crashes after a few seconds. I don't know what to do about this problem and would greatly appreciate any help I could get to solve this problem. I am also using Mac.

Harry King

unread,
Nov 30, 2020, 12:30:22 PM11/30/20
to Jaamsim Users Discussion Group
Tim,

The last time I checked JaamSim on MacOS, this problem was only a warning, not a fatal error. Does JaamSim actually terminate when you see this message?

Also, which version of MacOS are you using?

Harry

Markus Fischer

unread,
Nov 30, 2020, 12:50:26 PM11/30/20
to Jaamsim Users Discussion Group
Hello, thanks for the answer!

I am using BigSur Version 11.0.1

Yes it does close down completely when I start the project from eclipse. If I download JaamSim from the website it does start, but sadly I have to start from eclipse due to some modifications my uni made to the com.user

I uploaded the error logs to the following links for reference 

Again thanks for the help!

Harry King

unread,
Nov 30, 2020, 4:14:46 PM11/30/20
to Jaamsim Users Discussion Group
It appears that the recent Big Sur release has made this a fatal error. It was just a warning in Catalina, the previous version of MacOS. However, I am surprised that JaamSim still works as an app if the error is fatal. Are you sure that you have set up the JaamSim project correctly in Eclipse. The Programming Manual gives detailed instructions on how to do this.

Harry

Harvey Harrison

unread,
Nov 30, 2020, 5:11:54 PM11/30/20
to Markus Fischer, Jaamsim Users Discussion Group
I would check if perhaps you have an older version of the jogl
jarfiles linked into your eclipse project. The latest jaamsim builds
have updated versions that solve this crasher issue.

Harvey
> To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/a22cbc36-2977-406f-a559-f0e70b5e7384n%40googlegroups.com.

Markus Fischer

unread,
Nov 30, 2020, 5:32:51 PM11/30/20
to Jaamsim Users Discussion Group
Hello, I guess you are referring to those files right  https://jogamp.org/deployment/archive/master/gluegen_937-joal_660-jogl_1506-jocl_1147/jar/? I exchanged them in the jar folder but still no success
Reply all
Reply to author
Forward
0 new messages