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

Project template outputs warning: " NSWindow drag regions should only be invalidated on the Main Thread" #36

Closed
davjhan opened this issue Jun 16, 2019 · 1 comment

Comments

@davjhan
Copy link
Contributor

davjhan commented Jun 16, 2019

I've followed the hello world directions and ran Main.kt. (./gradlew runJvm)

The window pops up and everything is fine, but there is a warning that shows up in the console.

Is there a way to get rid of this warning?

Thanks.

2019-06-16 14:29:45.101 java[26626:1568582] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
	0   AppKit                              0x00007fff341807eb -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
	1   AppKit                              0x00007fff3417dbdb -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	2   AppKit                              0x00007fff3417d60e -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3   libnativewindow_macosx.jnilib       0x000000012b8983fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4   ???                                 0x000000010ed6e9f4 0x0 + 4543932916
)
@soywiz
Copy link
Member

soywiz commented Dec 1, 2019

Sadly can't do anything about that, probably should be fixed on the JDK side.
Korge 1.4.2 allows to use an experimental engine on the first thread with this:

./gradlew runJvmFirstThread

It should work better (open faster and resize without artifacts) but might fail to some people still, so it is experimental for now.

@soywiz soywiz closed this as completed Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants