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

My program remains in the background #4831

Closed
ghost opened this Issue Jan 15, 2017 · 3 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jan 15, 2017

So when i run my program made in processing and close it the background process is closed BUT when i run the program and it crashes for example: processing didn't found the location of a PImage, when i close the window and look in task manager there is still a javaw process in the background and windows doesn't let me delete the jar file until i manually kill the process.
Note: I use eclipse so i can export my project as a jar file.

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Jan 15, 2017

Contributor

Does the same happen to you when you run it with the Processing IDE?

Contributor

gohai commented Jan 15, 2017

Does the same happen to you when you run it with the Processing IDE?

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jan 16, 2017

I don't know the project is too big to port it to the processing ide

ghost commented Jan 16, 2017

I don't know the project is too big to port it to the processing ide

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Jan 16, 2017

Contributor

Does your project use threads by chance? The P2D or P3D renderer?

Not sure if there is much to narrow this down further... you could of course try to narrow it down to a small test case that exhibits the issue. But whatever it is, it doesn't seem to be biting the majority of users that make use of the IDE.

Contributor

gohai commented Jan 16, 2017

Does your project use threads by chance? The P2D or P3D renderer?

Not sure if there is much to narrow this down further... you could of course try to narrow it down to a small test case that exhibits the issue. But whatever it is, it doesn't seem to be biting the majority of users that make use of the IDE.

JakubValtar added a commit to JakubValtar/processing that referenced this issue Jan 20, 2017

Allow JAVA2D to terminate when animation thread dies
When Java2D sketch crashes, closing the window does not stop Event
Dispatch Thread. This fix makes PApplet.exit() do the right thing and
not wait for surface to finish when the thread is already dead.

Fixes #4831

@benfry benfry closed this in #4839 Jan 29, 2017

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