Skip to content

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

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

Closed
processing-bot opened this issue Oct 10, 2020 · 4 comments
Closed

Comments

@processing-bot
Copy link
Collaborator

Created by: makakken

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.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

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!

@processing-bot
Copy link
Collaborator Author

Created by: makakken

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)

@processing-bot
Copy link
Collaborator Author

Created by: benfry

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.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

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 Sep 18, 2024
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

1 participant