Access violation - CUDA crashes Blender #63313

Closed
opened 2019-04-05 15:59:04 +02:00 by Acrivec Cevirca · 10 comments

System Information
Operating system: W10
Graphics card: 980Ti

Blender Version
Broken: 2.80 19-04-04 17:02
Worked: 2.80 19-04-02

Short description of error

After hitting Render it starts everything, and after some time (maybe 20 tiles rendered) blender crashes.

Console:

CUDA error: Illegal address in cuCtxSynchronize(), line 1545

Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html

CUDA error: Illegal address in mem_alloc_result, line 850
CUDA error: Illegal address in cuModuleGetGlobal(&cumem, &cubytes, cuModule, bind_name.c_str()), line 1060
CUDA error: Illegal address in cuMemcpyHtoD(cumem, (void*)&ptr, cubytes), line 1070
CUDA error: Illegal address in mem_alloc_result, line 850
CUDA error: Illegal address in cuMemsetD8(cuda_device_ptr(mem.device_pointer), 0, mem.memory_size()), line 986
CUDA error: Illegal address in cuMemsetD8(cuda_device_ptr(mem.device_pointer), 0, mem.memory_size()), line 986
CUDA error: Illegal address in cuModuleGetFunction(&cuFinalize, cuFilterModule, "kernel_cuda_filter_finalize"), line 1472
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF8C34CB9AF
Module  : C:\Windows\SYSTEM32\nvcuda.dll

Exact steps for others to reproduce the error
I can't reproduce this error on new .blend file, whereas my .blend has copyrighted stuff.

**System Information** Operating system: W10 Graphics card: 980Ti **Blender Version** Broken: 2.80 19-04-04 17:02 Worked: 2.80 19-04-02 **Short description of error** After hitting Render it starts everything, and after some time (maybe 20 tiles rendered) blender crashes. Console: ``` CUDA error: Illegal address in cuCtxSynchronize(), line 1545 Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html CUDA error: Illegal address in mem_alloc_result, line 850 CUDA error: Illegal address in cuModuleGetGlobal(&cumem, &cubytes, cuModule, bind_name.c_str()), line 1060 CUDA error: Illegal address in cuMemcpyHtoD(cumem, (void*)&ptr, cubytes), line 1070 CUDA error: Illegal address in mem_alloc_result, line 850 CUDA error: Illegal address in cuMemsetD8(cuda_device_ptr(mem.device_pointer), 0, mem.memory_size()), line 986 CUDA error: Illegal address in cuMemsetD8(cuda_device_ptr(mem.device_pointer), 0, mem.memory_size()), line 986 CUDA error: Illegal address in cuModuleGetFunction(&cuFinalize, cuFilterModule, "kernel_cuda_filter_finalize"), line 1472 Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF8C34CB9AF Module : C:\Windows\SYSTEM32\nvcuda.dll ``` **Exact steps for others to reproduce the error** I can't reproduce this error on new .blend file, whereas my .blend has copyrighted stuff.

Added subscriber: @Acrivec

Added subscriber: @Acrivec

Added subscriber: @brecht

Added subscriber: @brecht
  • Please attach a .blend file to reproduce the issue.
  • Are you using GPU or CPU + GPU rendering?
  • From the backtrace I guess you might have denoising enabled? Does it work with denoising disabled?
* Please attach a .blend file to reproduce the issue. * Are you using GPU or CPU + GPU rendering? * From the backtrace I guess you might have denoising enabled? Does it work with denoising disabled?

CPU+GPU

Yes, I'm using denoising - after disabling blender stopped crashing. Turning on again - crashing.

I hope there's all copyrighted stuff removed here:
denoiser crash.blend

CPU+GPU Yes, I'm using denoising - after disabling blender stopped crashing. Turning on again - crashing. I hope there's all copyrighted stuff removed here: [denoiser crash.blend](https://archive.blender.org/developer/F6913726/denoiser_crash.blend)

The only change between these builds was in adaptive subdivision, where it was not subdividing with the right detail in some cases. It may be that this caused finer subdivision and resulting higher memory usage, after which it runs out of memory for denoising.

The .blend does not contain image textures though so it's hard to say from looking at just that.

  • Does it work when you disable experimental features?
  • Does it work when you increase the render dicing rate?
  • Was this render already near the memory limit for your GPU before these changes?
The only change between these builds was in adaptive subdivision, where it was not subdividing with the right detail in some cases. It may be that this caused finer subdivision and resulting higher memory usage, after which it runs out of memory for denoising. The .blend does not contain image textures though so it's hard to say from looking at just that. * Does it work when you disable experimental features? * Does it work when you increase the render dicing rate? * Was this render already near the memory limit for your GPU before these changes?

Yes, it works with disabled experimenal features.

Increasing render dicing rate fixes the problem too.

I think yes, it's around 5.5gb shown by blender, whereas my card has 6GB. Although on previous blender versions where it couldn't go over this limit it wouldn't allow me go to near 6gb, having 3gb displayed by blender was top max, over that it wasn't possible to render.

Also I've been rendering it yesterday when it hit 15GB.

Yes, it works with disabled experimenal features. Increasing render dicing rate fixes the problem too. I think yes, it's around 5.5gb shown by blender, whereas my card has 6GB. Although on previous blender versions where it couldn't go over this limit it wouldn't allow me go to near 6gb, having 3gb displayed by blender was top max, over that it wasn't possible to render. Also I've been rendering it yesterday when it hit 15GB.

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk

@lichtwerk as far as I can see there were some commits regarding this issue and it stopped crashing after that. Can't see them though, because of builbot last changes limit, so I think it's resolved.

@lichtwerk as far as I can see there were some commits regarding this issue and it stopped crashing after that. Can't see them though, because of builbot last changes limit, so I think it's resolved.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Philipp Oeser self-assigned this 2019-04-24 11:43:12 +02:00
Member

Oki, glad to hear, closing then... (feel free to comment again if issues creep up again)

Oki, glad to hear, closing then... (feel free to comment again if issues creep up again)
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#63313
No description provided.