Page MenuHome

Blender crash at the end of the render (reading full buffer from disk)
Closed, ArchivedPublic

Description

System Information
Operating system: Win 10
Graphics card: NVIDIA GeForce RTX 3080 Ti (12G) with newest studio driver version
12th Gen Intel(R) Core(TM) i9-12900KF 3.20 GHz
32G RAM

Blender Version
3.3.0

Short description of error
I have a project that needs to render an image of 27165*38976px.
I have tested GPU only, GPU & CPU render, every time when blender completed render all tiles and start to reading full buffer from disk, it wll exit with no warning. When I render a smaller image, there is no such issue.
Attached the blender_debug_output, blender_system_info & crash.txt files.

Error : UNKNOWN EXCEPTION
Address : 0x00007FF9B9384FD9
Module : KERNELBASE.dll
Thread : 00001e40



Event Timeline

Omar Emara (OmarSquircleArt) changed the task status from Needs Triage to Needs Information from User.Oct 28 2022, 1:42 PM

As far as I can see, this might be due to insufficient memory, can you monitor your RAM and VRAM usage when the crash happens and let us know if you notice high memory usage?

As far as I can see, this might be due to insufficient memory, can you monitor your RAM and VRAM usage when the crash happens and let us know if you notice high memory usage?

Before the crash, RAM:5.1GB, VRAM:11.9GB, but I didn't notice the RAM/VRAM data when it crash, it happened too fast. Is that mean it's out of VRAM?

While tiles help with memory usage during the render, due to all the passes that might be enabled etc., the final image still needs to be constructed at full resolution at the end. In this case that will be a 32bit, 4channel RGBA, image of size 27165*38976px taking up ~15.8gb worth of memory by itself.

However, from the debug log, apparently something was attempting to allocate much more than that - something closer to 75gb:
aligned_malloc returns null: len=80467511040 in Cycles Aligned Alloc, total 1730164072

It looks like you're attempting to use the Optix denoiser to denoise that final image too. I don't think that's going to work well with just 12gb of VRAM total and maybe it's related somehow to that 75gb allocation. Can you see if turning off denoising entirely allows things to finish?

While tiles help with memory usage during the render, due to all the passes that might be enabled etc., the final image still needs to be constructed at full resolution at the end. In this case that will be a 32bit, 4channel RGBA, image of size 27165*38976px taking up ~15.8gb worth of memory by itself.

However, from the debug log, apparently something was attempting to allocate much more than that - something closer to 75gb:
aligned_malloc returns null: len=80467511040 in Cycles Aligned Alloc, total 1730164072

It looks like you're attempting to use the Optix denoiser to denoise that final image too. I don't think that's going to work well with just 12gb of VRAM total and maybe it's related somehow to that 75gb allocation. Can you see if turning off denoising entirely allows things to finish?

OK, I wll try it later and see if it will solve the problem. Thank you!

Thomas Dinges (dingto) closed this task as Archived.Dec 15 2022, 4:35 PM

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.