antimony icon indicating copy to clipboard operation
antimony copied to clipboard

Memory leak or crash when viewing certain file

Open 2mac opened this issue 10 years ago • 2 comments
trafficstars

I created a model yesterday, and on multiple machines when I open it again, it will either crash with a std::bad_alloc or it will consume lots of memory and saturate the disk I/O.

You can download this copy of the saved file for testing.

2mac avatar Nov 05 '15 19:11 2mac

I was able to get around it by opening the file and quickly closing the 3D view window. It seems the initial render is causing the issue, if that's any help.

2mac avatar Nov 05 '15 22:11 2mac

Yeah, I think that it's trying to allocate a huge pixel buffer for the render. The fix will be to only render the section of the model that's actually going to be drawn on the screen.

mkeeter avatar Nov 05 '15 23:11 mkeeter