Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_postWindowNeedsToResetDragMarginsUnlessPostingDisabled error on macOS 10.14 #5676

Open
knupel opened this issue Oct 9, 2018 · 13 comments
Open

Comments

@knupel
Copy link

knupel commented Oct 9, 2018

Massive bug with the fullScreen()in P2Dand P3D with the last macBook Pro 2018
Configutation
Processing 3.4
OS High Sierra 10.13.6
MacBook Pro 2018
Processor i9
Graphic Radeon Pro 560X / UHD Graphics 630

When the sketch is launch Processing return this warning in the consol
java[845:12276] pid(845)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
No window appear but the sketch continue to run

void setup() {
  // fullScreen(); // ok
  // fullScreen(FX2D); // ok
  // fullScreen(JAVA2D); // ok

  fullScreen(P3D); // bug
  //fullScreen(P2D); // bug 
}

void draw() {
	println(frameCount);
}
@knupel
Copy link
Author

knupel commented Oct 9, 2018

oops it's related to #5462

@gohai
Copy link
Contributor

gohai commented Oct 10, 2018

@StanLepunK Can you elaborate on "no window appear"? The following does not draw anything for you?

void setup() {
  fullScreen(P2D);
}

void draw() {
  background(255, 0, 0);
}

@knupel
Copy link
Author

knupel commented Oct 10, 2018

exactly the window sketch doesn't pop up, but the sketch run.

@knupel
Copy link
Author

knupel commented Oct 10, 2018

I cannot test anymore on HighSierra, I switch to Mojave, and that's works almost nice, the window pop up, but the consol write an error message in the setup() i presume, but after the sketch run and the color background is good, in P2D and in P3D

pid(1236)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2018-10-10 10:55:04.102 java[1236:12625] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
	0   AppKit                              0x00007fff3105d2e3 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 386
	1   AppKit                              0x00007fff3105a68c -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1488
	2   AppKit                              0x00007fff3105a0b6 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3   libnativewindow_macosx.jnilib       0x000000012d0c53fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4   ???                                 0x0000000114224a88 0x0 + 4632758920
)

@gohai gohai changed the title Problem with P3D and P2D with fullScreen method Another obnoxious warning in 10.14 w/ OpenGL? (NSWindow drag regions) Oct 10, 2018
@processing processing deleted a comment from Brianhedgecock Jan 12, 2019
@jaegonlee
Copy link

I cannot test anymore on HighSierra, I switch to Mojave, and that's works almost nice, the window pop up, but the consol write an error message in the setup() i presume, but after the sketch run and the color background is good, in P2D and in P3D

pid(1236)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2018-10-10 10:55:04.102 java[1236:12625] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
	0   AppKit                              0x00007fff3105d2e3 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 386
	1   AppKit                              0x00007fff3105a68c -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1488
	2   AppKit                              0x00007fff3105a0b6 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3   libnativewindow_macosx.jnilib       0x000000012d0c53fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4   ???                                 0x0000000114224a88 0x0 + 4632758920
)

This message is caused by jogl. I changed to jogl 2.4.0(rc), and error message has gone.

@bingcheng1998
Copy link

I think this issue may happen for all Mojave and Catalina users.

Please check this news: Apple Deprecates OpenGL and OpenCL in macOS 10.14 Mojave

So, the Processing group, please help us to solve this problem. My machine is macOS Mojave, upgraded from High Sierra.

I got this error message when I use size(300, 300, P3D);

0   AppKit                              0x00007fff3f199607 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
	1   AppKit                              0x00007fff3f1969f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	2   AppKit                              0x00007fff3f19642a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3   libnativewindow_macosx.jnilib       0x0000000118d3e3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4   ???                                 0x0000000119d69a88 0x0 + 4728461960
)

image

Anyone else meets the same issue?

@glitched0xff
Copy link

glitched0xff commented Mar 17, 2020

Hi, also I'm having this problem with size(500,600,P3D) seem like that P3d caused problem.
Osx: 10.14.6 Mojave
Processing version: 3.5.4 also with 3.3

Thanks

@jaegonlee
Copy link

I replaced jogl files(gluegen-rt.jar, gluegen-rt-natives-macosx-universal.jar, jogl-all.jar, jogl-all-natives-macosx-universal.jar) in Processing package(Processing/Contents/Java/core/library) to jogl v2.4.0rc(https://jogamp.org/deployment/archive/rc/), and these messages are gone.

Screen Shot 2020-03-18 at 2 14 15 PM

@bingcheng1998
Copy link

@jaegonlee ,THX! Your solution works!
I used the .jar files from https://jogamp.org/deployment/archive/rc/v2.4.0-rc-20200307/jar/

@danoszz
Copy link

danoszz commented Apr 21, 2020

@jaegonlee this worked in my case as well! Thanks for your inventiveness.

@kelvynmarte
Copy link

@jaegonlee Thanks a lot that solved it for me!

@stonechen1995
Copy link

I think this issue may happen for all Mojave and Catalina users.

Please check this news: Apple Deprecates OpenGL and OpenCL in macOS 10.14 Mojave

So, the Processing group, please help us to solve this problem. My machine is macOS Mojave, upgraded from High Sierra.

I got this error message when I use size(300, 300, P3D);

0   AppKit                              0x00007fff3f199607 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
	1   AppKit                              0x00007fff3f1969f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	2   AppKit                              0x00007fff3f19642a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3   libnativewindow_macosx.jnilib       0x0000000118d3e3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4   ???                                 0x0000000119d69a88 0x0 + 4728461960
)

image

Anyone else meets the same issue?

yes, exactly the same issue

@benfry benfry changed the title Another obnoxious warning in 10.14 w/ OpenGL? (NSWindow drag regions) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled error on macOS 10.14 Sep 21, 2020
@benfry
Copy link
Contributor

benfry commented Sep 21, 2020

The fix is in this comment: #5676 (comment) or you can use Processing 4 alpha, which includes this newer version of JOGL.

@processing processing locked as resolved and limited conversation to collaborators Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants