NLM denoiser with large tiles causes instant crash and exit. #84677

Closed
opened 2021-01-13 18:30:44 +01:00 by Eric Klein · 7 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2021-01-12 20:03, hash: 719bea0d6d
Worked: (newest version of Blender that worked as expected)

Short description of error
NLM denoiser with large tiles causes instant crash and exit.

Exact steps for others to reproduce the error

  1. Start Blender.
  2. Change render engine to Cycles.
  3. Device to GPU.
  4. Enable Denoising pick "NLM" for Render.
  5. In Performance->Tiles option change both for Tile X and Tiles Y to 2000.
  6. Change scene Dimensions both for Resolution X and Resolution Y to 2000.
  7. Click "F12" for rendering.

I am working with large tiles for performance reasons my GPU 3090x and CPU with 64gb has plenty of memory. This tile size work fine with the denoiser for "Optix" and "OpenImageDenoise" and have no problem.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2021-01-12 20:03, hash: `719bea0d6d` Worked: (newest version of Blender that worked as expected) **Short description of error** NLM denoiser with large tiles causes instant crash and exit. **Exact steps for others to reproduce the error** 1. Start Blender. 2. Change render engine to Cycles. 3. Device to GPU. 4. Enable Denoising pick "NLM" for Render. 5. In Performance->Tiles option change both for Tile X and Tiles Y to 2000. 6. Change scene Dimensions both for Resolution X and Resolution Y to 2000. 7. Click "F12" for rendering. I am working with large tiles for performance reasons my GPU 3090x and CPU with 64gb has plenty of memory. This tile size work fine with the denoiser for "Optix" and "OpenImageDenoise" and have no problem.
Author

Added subscriber: @eklein

Added subscriber: @eklein

Added subscriber: @rjg

Added subscriber: @rjg

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

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

This comment was removed by @rjg

*This comment was removed by @rjg*

I can confirm this crash in current master. I don't have time to investigate this further today, but I will take another look tomorrow.

std::_Check_C_return(int _Res) Line 131	C++
std::unique_lock<std::mutex>::unique_lock<std::mutex>(std::mutex & _Mtx) Line 138	C++
ccl::CUDADevice::global_free(ccl::device_memory & mem) Line 1111	C++
ccl::CUDADevice::mem_copy_to(ccl::device_memory & mem) Line 1005	C++
ccl::CUDADevice::move_textures_to_host(unsigned __int64 size, bool for_texture) Line 798	C++
ccl::CUDADevice::generic_alloc(ccl::device_memory & mem, unsigned __int64 pitch_padding) Line 840	C++
ccl::CUDADevice::mem_alloc(ccl::device_memory & mem) Line 994	C++
ccl::device_only_memory<float>::alloc_to_device(unsigned __int64 num, bool shrink_to_fit) Line 300	C++
ccl::DenoisingTask::run_denoising(ccl::RenderTile & tile) Line 332	C++
ccl::CUDADevice::thread_run(ccl::DeviceTask & task) Line 2410	C++
ccl::CUDADevice::task_add::__l11::<Lambdafunktion>() Line 2465	C++
ccl::DedicatedTaskPool::thread_run() Line 222	C++
 	[External Code]	
ccl::thread::run(void * arg) Line 53	C++
 	[External Code]	

I can confirm this crash in current master. I don't have time to investigate this further today, but I will take another look tomorrow. ```lines std::_Check_C_return(int _Res) Line 131 C++ std::unique_lock<std::mutex>::unique_lock<std::mutex>(std::mutex & _Mtx) Line 138 C++ ccl::CUDADevice::global_free(ccl::device_memory & mem) Line 1111 C++ ccl::CUDADevice::mem_copy_to(ccl::device_memory & mem) Line 1005 C++ ccl::CUDADevice::move_textures_to_host(unsigned __int64 size, bool for_texture) Line 798 C++ ccl::CUDADevice::generic_alloc(ccl::device_memory & mem, unsigned __int64 pitch_padding) Line 840 C++ ccl::CUDADevice::mem_alloc(ccl::device_memory & mem) Line 994 C++ ccl::device_only_memory<float>::alloc_to_device(unsigned __int64 num, bool shrink_to_fit) Line 300 C++ ccl::DenoisingTask::run_denoising(ccl::RenderTile & tile) Line 332 C++ ccl::CUDADevice::thread_run(ccl::DeviceTask & task) Line 2410 C++ ccl::CUDADevice::task_add::__l11::<Lambdafunktion>() Line 2465 C++ ccl::DedicatedTaskPool::thread_run() Line 222 C++ [External Code] ccl::thread::run(void * arg) Line 53 C++ [External Code] ```

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

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

Closed as duplicate of #84734

Closed as duplicate of #84734
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
2 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#84677
No description provided.