Immediate crash during cycles render directly after auto-save aborted with scene containing large texture #73230

Closed
opened 2020-01-19 03:28:58 +01:00 by michael campbell · 11 comments

System Information
Operating system: Windows-10-10.0.17134-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-06 20:54, hash: 3a35301fd1
Worked: (optional)

Short description of error
blender crashes with large 47mb jpg 27000 x 27000 image. Happens with both gpu and cpu rendering (so not vram related)

Exact steps for others to reproduce the error
load a big image into a material, apply to object and render. Can't provide image as it's nda, but the image uncompresses to 2.2 GB, total vram usage when rendering on GPU was 2.4 GB as the scene contains just one object with this material applied, lit with hdri which is just a 2k for lighting (transparent background).

Error log:

I0119 02:17:21.456306 12864 device_cuda.cpp:859] Buffer allocate: __tex_image_byte4_025, 42,511,660 bytes. (40.54M) in device memory
I0119 02:17:21.465284 12864 device_cpu.cpp:448] Texture allocate: __tex_image_byte4_025, 42,511,660 bytes. (40.54M)
Skipping auto-save, modal operator running, retrying in ten seconds...
aligned_malloc returns null: len=2976088740 in Cycles Alloc, total 1084153684
Error : Unrecognized Exception
Address : 0x00007FFB63A6A388
Module : C:\WINDOWS\System32\KERNELBASE.dll

**System Information** Operating system: Windows-10-10.0.17134-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86 **Blender Version** Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-06 20:54, hash: `3a35301fd1` Worked: (optional) **Short description of error** blender crashes with large 47mb jpg 27000 x 27000 image. Happens with both gpu and cpu rendering (so not vram related) **Exact steps for others to reproduce the error** load a big image into a material, apply to object and render. Can't provide image as it's nda, but the image uncompresses to 2.2 GB, total vram usage when rendering on GPU was 2.4 GB as the scene contains just one object with this material applied, lit with hdri which is just a 2k for lighting (transparent background). Error log: I0119 02:17:21.456306 12864 device_cuda.cpp:859] Buffer allocate: __tex_image_byte4_025, 42,511,660 bytes. (40.54M) in device memory I0119 02:17:21.465284 12864 device_cpu.cpp:448] Texture allocate: __tex_image_byte4_025, 42,511,660 bytes. (40.54M) Skipping auto-save, modal operator running, retrying in ten seconds... aligned_malloc returns null: len=2976088740 in Cycles Alloc, total 1084153684 Error : Unrecognized Exception Address : 0x00007FFB63A6A388 Module : C:\WINDOWS\System32\KERNELBASE.dll

Added subscriber: @3di

Added subscriber: @3di

Added subscriber: @StephenSwaney

Added subscriber: @StephenSwaney

aligned_malloc returns null: len=2976088740

That means you ran out of contiguous memory. An attempt to allocate 2,976,088,740 bytes (roughly 3 GB) failed.

> aligned_malloc returns null: len=2976088740 That means you ran out of contiguous memory. An attempt to allocate 2,976,088,740 bytes (roughly 3 GB) failed.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

We require an example .blend and image file to reproduce the problem. If you can't share the original one, you can create an artificial one.

Normally I would expect allocating 3 GB of contiguous memory to work, if there is enough memory available. With virtual memory it does not actually need to be contiguous in RAM.

We require an example .blend and image file to reproduce the problem. If you can't share the original one, you can create an artificial one. Normally I would expect allocating 3 GB of contiguous memory to work, if there is enough memory available. With virtual memory it does not actually need to be contiguous in RAM.

Seems to be plenty of space left for the pagefile on the C drive, and the crash happens at around 26GB system ram usage, so there's enough space in system ram for the 3GB it's trying to allocate :

Edit: Just trying to recreate the crash in another file and it wont happen, so retried in the original file and it seems to be not crashing there either now.....strange, I haven't restarted the pc....although I did clear out the app data/temp folder. Would cycles have been pulling any data from that folder during render?

image.png

Seems to be plenty of space left for the pagefile on the C drive, and the crash happens at around 26GB system ram usage, so there's enough space in system ram for the 3GB it's trying to allocate : Edit: Just trying to recreate the crash in another file and it wont happen, so retried in the original file and it seems to be not crashing there either now.....strange, I haven't restarted the pc....although I did clear out the app data/temp folder. Would cycles have been pulling any data from that folder during render? ![image.png](https://archive.blender.org/developer/F8287423/image.png)

Would cycles have been pulling any data from that folder during render?

No, Cycles doesn't use that folder.

> Would cycles have been pulling any data from that folder during render? No, Cycles doesn't use that folder.

Best close it down then, shall I reopen this if it happens again, or just leave a new comment so someone else can change the status?

Best close it down then, shall I reopen this if it happens again, or just leave a new comment so someone else can change the status?

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Brecht Van Lommel self-assigned this 2020-01-19 15:45:22 +01:00

Ok, we can indeed reopen when needed.

Ok, we can indeed reopen when needed.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73230
No description provided.