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

Window never shows with exported application on 64-bit Linux #3303

Closed
matiasw opened this Issue May 19, 2015 · 9 comments

Comments

Projects
None yet
3 participants
@matiasw

matiasw commented May 19, 2015

I'm unable to run Processing 3.0a8 on my machine. I get a "Processing 2" splash screen, and then a silent shutdown.
With processing-java, I tried processing-java --sketch=/home/appas/sketchbook/simulaatio15/ --export, but was unable to get a working app for any platform with it. Note that (at least) the Linux app exported with 2.2.1 works. With 3.0a8, the --export option exports only for my current platform and arch (I suppose). The application does not work: it hangs on startup and has to be killed, whereupon it produces:
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PGraphicsJava2D.clearPixels(PGraphicsJava2D.java:2433)
at processing.core.PGraphicsJava2D.backgroundImpl(PGraphicsJava2D.java:2464)
at processing.core.PGraphics.backgroundFromCalc(PGraphics.java:7138)
at processing.core.PGraphics.background(PGraphics.java:7051)
at simulaatio15.setup(simulaatio15.java:37)
at processing.core.PApplet.handleDraw(PApplet.java:1944)
at processing.core.PSurfaceAWT$13.render(PSurfaceAWT.java:1365)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:294)
Killed

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry May 19, 2015

Member

Regression from what? 3.0a7?

And is this with every sketch, or do you have something that I can run to try and reproduce this?

Member

benfry commented May 19, 2015

Regression from what? 3.0a7?

And is this with every sketch, or do you have something that I can run to try and reproduce this?

@matiasw

This comment has been minimized.

Show comment
Hide comment
@matiasw

matiasw May 19, 2015

From 3.0a5 (and 2.2.1, for that matter). I haven't tried with 3.0a7, but will do so.
Edit: ok, so I tried with 3.0a7, and can not even run processing-java: I get
Error: Could not find or load main class processing.mode.java.Commander
processing doesn't work, either - same as 3.0a8 and a5.

matiasw commented May 19, 2015

From 3.0a5 (and 2.2.1, for that matter). I haven't tried with 3.0a7, but will do so.
Edit: ok, so I tried with 3.0a7, and can not even run processing-java: I get
Error: Could not find or load main class processing.mode.java.Commander
processing doesn't work, either - same as 3.0a8 and a5.

@GKFX

This comment has been minimized.

Show comment
Hide comment
@GKFX

GKFX Jun 14, 2015

Contributor

@matiasw Can you test a sketch like the following on your machine, to see if your bug is the same one I'm seeing? Correct images are saved to the sketch folder when exported Linux→Linux or Linux→Windows, but there's no visible window, so you have to kill it. Window displays fine in the PDE.

void setup() {
  size(600, 600);
}

void draw() {
  fill(0, 50);
  rect(0, 0, width, height);
  fill(255);
  rect(width * (1.5 + sin(frameCount/30.0 + 2))/3, height * (1.5 + sin(frameCount/25.0))/3, 
    width * sq(sin(frameCount/20.0)) * 0.1 + 10, height * sq(cos(frameCount/20.0)) * 0.1 + 10);
  saveFrame();
}
Contributor

GKFX commented Jun 14, 2015

@matiasw Can you test a sketch like the following on your machine, to see if your bug is the same one I'm seeing? Correct images are saved to the sketch folder when exported Linux→Linux or Linux→Windows, but there's no visible window, so you have to kill it. Window displays fine in the PDE.

void setup() {
  size(600, 600);
}

void draw() {
  fill(0, 50);
  rect(0, 0, width, height);
  fill(255);
  rect(width * (1.5 + sin(frameCount/30.0 + 2))/3, height * (1.5 + sin(frameCount/25.0))/3, 
    width * sq(sin(frameCount/20.0)) * 0.1 + 10, height * sq(cos(frameCount/20.0)) * 0.1 + 10);
  saveFrame();
}
@matiasw

This comment has been minimized.

Show comment
Hide comment
@matiasw

matiasw Jun 14, 2015

@GKFX I could export and run that sketch fine with Processing 3.0a5 on Debian Sid. I got a visible window, same as when running the pde from the IDE, and was able to exit from that with Esc/Stop button in the IDE.
Under 3.0a10, I get no window running from the IDE, but the sketch runs and the frames are saved fine, as you say. Exporting, the OS X option is grayed out. Running the exported Linux64 app, no window, but correct frames saved.

matiasw commented Jun 14, 2015

@GKFX I could export and run that sketch fine with Processing 3.0a5 on Debian Sid. I got a visible window, same as when running the pde from the IDE, and was able to exit from that with Esc/Stop button in the IDE.
Under 3.0a10, I get no window running from the IDE, but the sketch runs and the frames are saved fine, as you say. Exporting, the OS X option is grayed out. Running the exported Linux64 app, no window, but correct frames saved.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jun 16, 2015

Member

Need something that actually demonstrates the problem. I can't see your code, and I'm not sitting at your machine, so I have nothing to work from. What's a short sketch that reproduces the problem?

Member

benfry commented Jun 16, 2015

Need something that actually demonstrates the problem. I can't see your code, and I'm not sitting at your machine, so I have nothing to work from. What's a short sketch that reproduces the problem?

@matiasw

This comment has been minimized.

Show comment
Hide comment
@matiasw

matiasw Jun 16, 2015

I'm using the test sketch that's posted above.
With 3.0a10, no window but the frames get saved fine. Same behavior in exported app and IDE. Under 3.0a9, the sketch works completely in both the IDE and as an exported app.

matiasw commented Jun 16, 2015

I'm using the test sketch that's posted above.
With 3.0a10, no window but the frames get saved fine. Same behavior in exported app and IDE. Under 3.0a9, the sketch works completely in both the IDE and as an exported app.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jun 16, 2015

Member

@matiasw the sketch posted by @GKFX works fine for me from the PDE and when exported as an application on Ubuntu 14.04 (64-bit) with the code in the current source (and presumably, alpha 10).

Try exporting the Java VM along with your application and see if that fixes it.

Member

benfry commented Jun 16, 2015

@matiasw the sketch posted by @GKFX works fine for me from the PDE and when exported as an application on Ubuntu 14.04 (64-bit) with the code in the current source (and presumably, alpha 10).

Try exporting the Java VM along with your application and see if that fixes it.

@benfry benfry changed the title from Regression in 3.0a8: Linux sketch export to Window never shows with exported application on 64-bit Linux Jun 16, 2015

@matiasw

This comment has been minimized.

Show comment
Hide comment
@matiasw

matiasw Jun 16, 2015

Same results: no window, frames are saved ok.

matiasw commented Jun 16, 2015

Same results: no window, frames are saved ok.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jun 20, 2015

Member

Fixed for a11.

Member

benfry commented Jun 20, 2015

Fixed for a11.

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