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

Simulation baking thread continues to run after closing Blender #361

Closed
lumpynose opened this Issue Jul 22, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@lumpynose

lumpynose commented Jul 22, 2018

System Information

Blender Version (including hash): 2.79 f4dc9f9d68b
FLIP Fluids Version: 1.03
Operating System: windows 10
CPU: intel
GFX: gtx 1070
RAM: 32g

Describe the bug

Sometimes I accidentally quit blender when a fluid simulation is running. This creates a zombie/background process that I have no way of reconnecting to and I'm forced to terminate it with the windows task manager.

To Reproduce

Quit blender while a simulation is baking. Use the task manager to show running processes and see the blender process.

Expected Behaviour

Blender should exit and not leave zombie processes.

Actual Behaviour

There's a zombie process.

Screenshots

If applicable, add screenshots to help explain your problem.

@rlguy

This comment has been minimized.

Owner

rlguy commented Jul 23, 2018

Hey lumpynose,

Thanks for the report! This seems to be an issue for users depending on OS/Hardware. For some users, the simulation thread continues to run, and for other users the simulation thread is terminated when closing Blender.

When Blender closes and the simulation thread continues to run, there isn't a way to contact the thread and tell it to stop. This is because Blender, who is controlling the thread, is no longer running. But perhaps there is a way for the simulation thread to detect when Blender is no longer running so it can stop itself. I'll look into this.

Until a fix is found, there is a workaround/trick for how to close Blender and make sure the simulation thread is terminated as well. In Windows while Blender is open:

  1. Open the Blender System Console (Blender > Window > Toggle System Console)
  2. Click the X (close button) on the system console window. This will close Blender and also terminate the simulation thread.

- Ryan

@rlguy rlguy changed the title from quiting blender should stop a baking simulation to Simulation baking thread continues to run after closing Blender Jul 23, 2018

@rlguy rlguy added the bug label Jul 23, 2018

@lumpynose

This comment has been minimized.

lumpynose commented Jul 23, 2018

@rlguy

This comment has been minimized.

Owner

rlguy commented Aug 27, 2018

A workaround has been found. The simulation thread will now check if Blender has stopped running and will terminate itself at the end of the current frame. This fix will be included in the next version (1.0.5)

@rlguy rlguy closed this Aug 27, 2018

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