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

Sketch launching on second display that's not currently in use #3082

Closed
josephmoore opened this Issue Feb 4, 2015 · 10 comments

Comments

Projects
None yet
4 participants
@josephmoore

josephmoore commented Feb 4, 2015

I'm on OSX 10.8.5 and I'm unable to launch a sketch (no window is created in Java mode). However, I am able to write a program that prints to the console (still no window created). This is happening for me with Processing 2.2.1 and Processing 3.0a5. I'm running the following Java version:
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
I don't see any errors logging in the console and I've tried the various fixes mentioned: deleting the folder ~/Library/Processing, deleting the folder ~/Documents/Processing. This just recently happened (within the past few days or so). Could it have been after the Java 7 Update 71? Any other thoughts?

@codyclay88

This comment has been minimized.

Show comment
Hide comment
@codyclay88

codyclay88 Feb 4, 2015

Hey I just ran into this problem too. Turns out I just wasnt making the sketch visible. On your dock you should see a that a java application is running, try right-clicking it, go to options, and click display on [your display]. I had this problem because I use a thunderbolt display plugged in to my laptop and I guess it didnt know which display to put it on.

codyclay88 commented Feb 4, 2015

Hey I just ran into this problem too. Turns out I just wasnt making the sketch visible. On your dock you should see a that a java application is running, try right-clicking it, go to options, and click display on [your display]. I had this problem because I use a thunderbolt display plugged in to my laptop and I guess it didnt know which display to put it on.

@josephmoore

This comment has been minimized.

Show comment
Hide comment
@josephmoore

josephmoore Feb 4, 2015

Thanks @codyclay88! I was doing the exact same thing!

josephmoore commented Feb 4, 2015

Thanks @codyclay88! I was doing the exact same thing!

@josephmoore josephmoore closed this Feb 4, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Feb 4, 2015

Member

Was the sketch not defaulting to the screen that the editor was on?

Member

benfry commented Feb 4, 2015

Was the sketch not defaulting to the screen that the editor was on?

@codyclay88

This comment has been minimized.

Show comment
Hide comment
@codyclay88

codyclay88 Feb 4, 2015

No it wasnt for some reason. It was almost like the sketch was confused so just had a nervous breakdown and did nothing.

codyclay88 commented Feb 4, 2015

No it wasnt for some reason. It was almost like the sketch was confused so just had a nervous breakdown and did nothing.

@josephmoore

This comment has been minimized.

Show comment
Hide comment
@josephmoore

josephmoore Feb 4, 2015

Likewise, the sketch window was never created. In my case I had my computer plugged into a second monitor but the monitor was off. With the monitor on, the window is created on the second monitor. Additionally, I'm using a laptop (macbook pro).

josephmoore commented Feb 4, 2015

Likewise, the sketch window was never created. In my case I had my computer plugged into a second monitor but the monitor was off. With the monitor on, the window is created on the second monitor. Additionally, I'm using a laptop (macbook pro).

@benfry benfry changed the title from Processing doesn't launch sketch to Sketch launching on second display that's not currently in use Feb 4, 2015

@benfry benfry added the macosx label Feb 4, 2015

@benfry benfry reopened this Feb 4, 2015

@benfry benfry added the help wanted label Feb 4, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Feb 4, 2015

Member

Ok, that sounds like a bug. I use a setup like that and haven't run into it (with 3.0a5 or the latest from here on Github), but handling multiple displays is really tricky.

Had either of you ever set the preference for which screen to use to start the sketch?

Member

benfry commented Feb 4, 2015

Ok, that sounds like a bug. I use a setup like that and haven't run into it (with 3.0a5 or the latest from here on Github), but handling multiple displays is really tricky.

Had either of you ever set the preference for which screen to use to start the sketch?

@josephmoore

This comment has been minimized.

Show comment
Hide comment
@josephmoore

josephmoore Feb 5, 2015

I didn't set anything in preferences. This happened with a clean install of both Processing 2.2.1and 3.0a5 (from processing.org). I also reinstalled the JDK and JRE each time. Let me know if I can send any other info.

josephmoore commented Feb 5, 2015

I didn't set anything in preferences. This happened with a clean install of both Processing 2.2.1and 3.0a5 (from processing.org). I also reinstalled the JDK and JRE each time. Let me know if I can send any other info.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Feb 6, 2015

Member

Got it, thanks for following up. (FWIW, installing a JRE or JDK is unnecessary and should have zero effect—Processing uses its own embedded JRE.)

Member

benfry commented Feb 6, 2015

Got it, thanks for following up. (FWIW, installing a JRE or JDK is unnecessary and should have zero effect—Processing uses its own embedded JRE.)

@pjryan93

This comment has been minimized.

Show comment
Hide comment
@pjryan93

pjryan93 Feb 20, 2015

Contributor

Is the external display suppose to be the default display in preferences?

I think Javas GraphicsEnvironment getScreenDevices() reads the display as being there if its plugged in regardless of whether it's on or off. Therefore the display is included In the array of GraphicsDevices returned and it looks like the display set in preferences exists.

I'm not sure how fixable this is. There may be a lower level way to fix this but a quick fix could be to reverse the order of the devices returned for OS X. Making the sketch default to displaying on the computer's screen instead of the external. This way if the user wants the sketch to default to running on the external display they have to set it in preferences and are aware the preferences menu exists. If they experience this bug, they will know the preferences menu exists, intuitively they might understand why the sketch is not appearing, and would know how to change there settings to fix the bug.

Contributor

pjryan93 commented Feb 20, 2015

Is the external display suppose to be the default display in preferences?

I think Javas GraphicsEnvironment getScreenDevices() reads the display as being there if its plugged in regardless of whether it's on or off. Therefore the display is included In the array of GraphicsDevices returned and it looks like the display set in preferences exists.

I'm not sure how fixable this is. There may be a lower level way to fix this but a quick fix could be to reverse the order of the devices returned for OS X. Making the sketch default to displaying on the computer's screen instead of the external. This way if the user wants the sketch to default to running on the external display they have to set it in preferences and are aware the preferences menu exists. If they experience this bug, they will know the preferences menu exists, intuitively they might understand why the sketch is not appearing, and would know how to change there settings to fix the bug.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jun 9, 2015

Member

Alright, this should now be fixed with major updates/fixes/changes that I put in 3.0 alpha 10. Phew!

Member

benfry commented Jun 9, 2015

Alright, this should now be fixed with major updates/fixes/changes that I put in 3.0 alpha 10. Phew!

@benfry benfry closed this Jun 9, 2015

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