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

java[5301:299207] unrecognized type is 4294967295 and java[5301:299207] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:] #142

Closed
TianYong-Goh opened this issue Aug 31, 2020 · 7 comments

Comments

@TianYong-Goh
Copy link

Hello,
does anyone know how to solve this error? It appears a few seconds after I run my Launcher. Everything works fine and I am still able to continue the operation on my duke window.
Screenshot 2020-09-01 at 12 35 31 AM

Thank you in advance:)

@EugeneTeu
Copy link

I assume youre on macOs?

https://stackoverflow.com/questions/53800953/focus-and-unfocus-javafx-application-leads-to-assertion-failure-on-macos-mojav
https://stackoverflow.com/questions/52323438/assertion-failure-in-nsevent

Seems likely to be a dependency issue with your mac version of jdk. Might want to double check the versions u are on.
Seeing some bugs reported by users on macOs too.

I highly suspect is cause of the version of java intellij runs duke on.

@TianYong-Goh
Copy link
Author

@EugeneTeu Yup I am on macOs and my current version is JDK11.0.5. I look through the website you provided but it doesn't seem to provide any solution on this error except updating JDK, but we are restricted to JDK11 right?

@EugeneTeu
Copy link

About the restriction, not sure about it, can @damithc confirm?
Yea, most of the solutions I found is to update jdk. Can check with ur peers on mac which version they are using too, If its the same then my hunch might be wrong and its not the versioning causing it.

@damithc
Copy link
Contributor

damithc commented Sep 1, 2020

About the restriction, not sure about it, can @damithc confirm?

The produced jar file is required to be compatible with Java 11 runtime. Any incompatibilities will be considered a bugs (and penalized). Hence, it is safer to use JDK 11 for development as well.

@zyifanz
Copy link

zyifanz commented Sep 1, 2020

Is there any way to solve this issue without updating JDK? I encountered the same problem on macOS as well.

@ktaekwon000
Copy link

ktaekwon000 commented Sep 1, 2020

Have you tried changing the version of javafx to 11.0.2 in the build.gradle file? According to the bug tracker for javafx the fix has been backported to version 11.0.2, but I am not able to test since I'm on Windows.
This version upgrade doesn't require a newer version of JDK.

Keep in mind you might have to restart your IDE for the changes in build.gradle to take effect.

@TianYong-Goh
Copy link
Author

I think it works. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants