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

NullPointerException in getSystemZoom() on startup in alpha 2 #143

Closed
makakken opened this issue Oct 10, 2020 · 4 comments
Closed

NullPointerException in getSystemZoom() on startup in alpha 2 #143

makakken opened this issue Oct 10, 2020 · 4 comments

Comments

@makakken
Copy link

makakken commented Oct 10, 2020

Description

When i attach a screen to my macbook, and close the macbook (so only second screen is applied) Processing 4 is crashing on startup. Maybe it's related to #57?

Expected Behavior

Processing4 simply starting on second screen.

Current Behavior

After start of Processing, it's shortly appearing in the MacOS-Dock, and then silently crashing and not starting.

Steps to Reproduce>

  1. Attach external screen to macbook pro.
  2. close macbook ( MacOS Catalina 10.15.7)
  3. Start Processing (It crashes)

Your Environment

  • Processing version: Processing 4.0a2
  • Operating System and OS version: MacOS Catalina 10.15.7
  • Other information: MacBookAir 13" 2020

Possible Causes / Solutions

Maybe there is something wrong with the window manager? When i open the primary display (MacBook Display) and have attached the second screen, it works.

@benfry
Copy link
Owner

benfry commented Oct 10, 2020

Nuts, was hoping this newer Java would help with some of these second display issues.

Probably a Java bug, but can you please try the following:

  • Open a Terminal window, and cd to the directory that contains Processing.app. For instance, cd /Applications if you have it in your Applications folder.
  • Type ./Processing.app/Contents/MacOS/Processing to start the software.
  • See what's printed in the Terminal window when it starts up and crashes, then copy and paste that here.

Thanks!

@makakken
Copy link
Author

makakken commented Oct 11, 2020

Terminal Output:

2020-10-11 18:21:44.824 Processing[25798:1818013] int launch(char *, int, char **) Launchpath: /Applications/Processing.app/Contents/PlugIns/jdk-11.0.8+10/Contents/Home/lib/jli/libjli.dylib
2020-10-11 18:21:44.865 Processing[25798:1818019] int launch(char *, int, char **) Launchpath: /Applications/Processing.app/Contents/PlugIns/jdk-11.0.8+10/Contents/Home/lib/jli/libjli.dylib
java.lang.NullPointerException
	at processing.app.Platform.getSystemZoom(Platform.java:416)
	at processing.app.ui.Toolkit.highResImages(Toolkit.java:913)
	at processing.app.BaseSplash.main(BaseSplash.java:12)

@benfry benfry changed the title Processing not starting on screen attached to macbook Pro NullPointerException in getSystemZoom() on startup in alpha 2 Oct 13, 2020
@benfry
Copy link
Owner

benfry commented Oct 13, 2020

Ahh… That's actually good news; that's our bug. In fact, I'm a little surprised the app was working at all for folks using anything but retina displays on macOS machines.

Added a workaround for 4.0a3, but has revealed a new bug with #145.

@benfry benfry closed this as completed in 044f1ba Oct 13, 2020
benfry added a commit that referenced this issue Oct 13, 2020
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
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

2 participants