Cuda Copy_from_device error in final render #105442

Closed
opened 2023-03-04 20:10:23 +01:00 by niels · 15 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.49

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-03-01 01:34, hash: ea97bb1641b9
Worked: 3.4.1 Stable

Short description of error
I have 5 levels of multires modifier on a female body and when trying to render i get this error "Illegal address in CUDA queue copy_from_device (integrator_intersect_closest)"
Blender build 3.5.0 Beta has the same error while 3.4.1 Stable works fine
i'm on the latest studio drivers from nvidia

Exact steps for others to reproduce the error

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.49 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-03-01 01:34, hash: `ea97bb1641b9` Worked: 3.4.1 Stable **Short description of error** I have 5 levels of multires modifier on a female body and when trying to render i get this error "Illegal address in CUDA queue copy_from_device (integrator_intersect_closest)" Blender build 3.5.0 Beta has the same error while 3.4.1 Stable works fine i'm on the latest studio drivers from nvidia **Exact steps for others to reproduce the error** - Download file attached below - In .blend file, select CUDA from `preferences > systems` tab - Start rndering an image https://drive.google.com/file/d/1qtbG4ajGajCJN-NDrQW39oW1_xzyMRdS/view?usp=sharing
niels added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-03-04 20:10:23 +01:00
Member

Hi, thanks for the report. Could you share full logs generated with the error?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#windows
Issue could be same as reported in: #98348

Hi, thanks for the report. Could you share full logs generated with the error?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#windows Issue could be same as reported in: #98348
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-03-06 12:20:22 +01:00
Author

this is what i get from the system console:

Illegal address in CUDA queue copy_from_device (integrator_intersect_closest)

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

Illegal address in cuMemFree_v2((CUdeviceptr)device_pointer) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\device_impl.cpp:520)

This line is repeated abouut 50 times

Error: Illegal address in CUDA queue copy_from_device (integrator_intersect_closest)

this is what i get from the system console: Illegal address in CUDA queue copy_from_device (integrator_intersect_closest) Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html Illegal address in cuMemFree_v2((CUdeviceptr)device_pointer) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\device_impl.cpp:520) This line is repeated abouut 50 times Error: Illegal address in CUDA queue copy_from_device (integrator_intersect_closest)
Member

Hi, please attach complete log files:
Open Blender's installation directory and double click on the blender_debug_gpu.cmd. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once it crashes or you close Blender manually the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt (or simply type %TEMP% into the path bar of the Windows Explorer).2019_12_04_upload_icon_developer_blender_org.png


Did you overclock the GPU? Is this started to happen recently? Have you made any changes on system side (bios, drivers, OS updates)?

Hi, please attach complete log files: Open Blender's installation directory and double click on the `blender_debug_gpu.cmd`. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once it crashes or you close Blender manually the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in `C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt` (or simply type `%TEMP%` into the path bar of the Windows Explorer).![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png) - - - Did you overclock the GPU? Is this started to happen recently? Have you made any changes on system side (bios, drivers, OS updates)?
Author

Hi,
i did not overclock the gpu or anything, this has been an issuue ever since i updated to the alpha version of 3.5.0, i did not change anything in the system like bios or drivers, 3.4.1 stable works just fine for me.

Hi, i did not overclock the gpu or anything, this has been an issuue ever since i updated to the alpha version of 3.5.0, i did not change anything in the system like bios or drivers, 3.4.1 stable works just fine for me.

I'm also having the same problem in Blender 3.5. It's working in Blender 3.4.
I don't know if it helps.

I'm also having the same problem in Blender 3.5. It's working in Blender 3.4. I don't know if it helps.
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-03-08 02:27:42 +01:00
Member

Hi, I'm able to confirm the error in 3.5
In prior versions, I caught up with out of memory issue.
Will raise the priority since this looks like a regression from comments.

Hi, I'm able to confirm the error in 3.5 In prior versions, I caught up with out of memory issue. Will raise the priority since this looks like a regression from comments.
Pratik Borhade changed title from Cuda Copy_from_device bug to Cuda Copy_from_device error in final render 2023-03-10 04:39:17 +01:00

I'm unable to get this file to render on 3.3, 3.4 or 3.5 as it runs out of memory in all of them. Maybe I can reproduce it when I simplify the file.

However I did notice this file has Open Shading Language enabled, which is supported for OptiX since 3.5. So you could try disabling that and see if the error still happens.

I'm unable to get this file to render on 3.3, 3.4 or 3.5 as it runs out of memory in all of them. Maybe I can reproduce it when I simplify the file. However I did notice this file has Open Shading Language enabled, which is supported for OptiX since 3.5. So you could try disabling that and see if the error still happens.
Author

Disabling the OSL didn't do anything for me since it was turned on but no OSL shaders are active, rendering purely on cpu works for me even in 3.5, if i change to Optix i get "Failed to create CUDA context (Illegal address)",
When i chhange render devices to both GPU and cpu i also get "Failed to create CUDA context (Illegal address)",
i prefer to use CUDA instead of optix since in most my projects CUDA does Out of core rnedering and optix doesnt atleast on my system

Disabling the OSL didn't do anything for me since it was turned on but no OSL shaders are active, rendering purely on cpu works for me even in 3.5, if i change to Optix i get "Failed to create CUDA context (Illegal address)", When i chhange render devices to both GPU and cpu i also get "Failed to create CUDA context (Illegal address)", i prefer to use CUDA instead of optix since in most my projects CUDA does Out of core rnedering and optix doesnt atleast on my system
Member

@brecht , try replicating with CUDA.

@brecht , try replicating with CUDA.
Brecht Van Lommel added this to the 3.5 milestone 2023-03-14 16:43:44 +01:00

I can sometimes get it to run out of memory with CUDA in 3.5, but not consistently. I noticed that it uses a few % more memory than 3.4 which may just be pushing it over the limit. But I'm not sure if that's really the problem.

I'll look further to figure out what's really going on. This could be a bug in host memory fallback, in which case 6dcfb6d could have caused it.

There are also recent memory usage optimizations in 3.6 that help significantly (6c03339), and I have not been able to reproduce with the very latest version there.

I can sometimes get it to run out of memory with CUDA in 3.5, but not consistently. I noticed that it uses a few % more memory than 3.4 which may just be pushing it over the limit. But I'm not sure if that's really the problem. I'll look further to figure out what's really going on. This could be a bug in host memory fallback, in which case 6dcfb6d could have caused it. There are also recent memory usage optimizations in 3.6 that help significantly (6c03339), and I have not been able to reproduce with the very latest version there.
Author

I don't know if it is usefull info but at the second my GPU runs out of VRAM and needs to go out of core it instantly gives me this error, might have to do with that ?

I don't know if it is usefull info but at the second my GPU runs out of VRAM and needs to go out of core it instantly gives me this error, might have to do with that ?
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-03-17 21:56:02 +01:00

it still give me that error in 3.6 but not in 3.5

it still give me that error in 3.6 but not in 3.5

@Shady.Hamza what's the full name of the 3.6 build (with build hash included) that you tested? Are you testing the .blend file from the description in this bug report, or something else?

@Shady.Hamza what's the full name of the 3.6 build (with build hash included) that you tested? Are you testing the .blend file from the description in this bug report, or something else?

I'm using the latest
blender-3.6.0-alpha+main.3eff28a158ca-windows.amd64-release

I submitted a report #105522 (comment) using different file, it's too large to upload here, and i can't share most of it unfortunately, i was getting many types of errors in both cuda and optix including this one , all screenshots in report, the file wasn't rendering in both 3.5 and 3.6, only in 3.4.1,now 3.5 renders it but not 3.6, let me know if i can provide something that can help, thank you

I'm using the latest blender-3.6.0-alpha+main.3eff28a158ca-windows.amd64-release I submitted a report https://projects.blender.org/blender/blender/issues/105522#issuecomment-903441 using different file, it's too large to upload here, and i can't share most of it unfortunately, i was getting many types of errors in both cuda and optix including this one , all screenshots in report, the file wasn't rendering in both 3.5 and 3.6, only in 3.4.1,now 3.5 renders it but not 3.6, let me know if i can provide something that can help, thank you

Let's continue discussion in #105522 then.

Let's continue discussion in #105522 then.
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
5 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#105442
No description provided.