Skip to content
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

Rust panic after creating hundreds of renderers/canvases #275

Closed
Tracked by #387
Korijn opened this issue May 24, 2022 · 1 comment · Fixed by #403
Closed
Tracked by #387

Rust panic after creating hundreds of renderers/canvases #275

Korijn opened this issue May 24, 2022 · 1 comment · Fixed by #403

Comments

@Korijn
Copy link
Collaborator

Korijn commented May 24, 2022

I still need to figure out how to reliably reproduce this, but in a script I was batch running yesterday, my computer would actually lock up* after a rust panic. The problem went away after I modified the script to reuse the same canvas and renderer instance, instead of creating new ones for every image I was drawing.

* Lock up as in, no response to ctrl+c, windows task manager would not respond, ctrl+alt+del does nothing, shutting down/rebooting gets stuck in a black screen... only way out was to hold the power button for 30 seconds.

@almarklein
Copy link
Member

only way out was to hold the power button for 30 seconds.

Umphf ... that's a proper lock up.

Would be interesting to see whether it's the n renderers or the canvases that causes it. First thought is a missing destructor or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants