CUDA errors #48765

Closed
opened 2016-06-29 19:10:26 +02:00 by Nicolas LABORDE · 29 comments

System Information
Windows 10, GTX 670

Blender Version
Broken: 2.76, 2.77a

Short description of error
Crash during render. Various CUDA errors
CUDA error at cuCtxCreate: ILLEGAL_ADDRESS or CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize()

Exact steps for others to reproduce the error
Press render and wait. I have a blend file to send but I packed the textures and it's 120Mb now... I can Wetransfer it if you give me an address. Memory usage is in the 200Mb range... And I have 16 Gb of Ram so it shouldn't be that...

**System Information** Windows 10, GTX 670 **Blender Version** Broken: 2.76, 2.77a **Short description of error** Crash during render. Various CUDA errors CUDA error at cuCtxCreate: ILLEGAL_ADDRESS or CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize() **Exact steps for others to reproduce the error** Press render and wait. I have a blend file to send but I packed the textures and it's 120Mb now... I can Wetransfer it if you give me an address. Memory usage is in the 200Mb range... And I have 16 Gb of Ram so it shouldn't be that...

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @JulesetMariusLABORDE

Added subscriber: @JulesetMariusLABORDE

Let me know if I can help you!

Let me know if I can help you!

Added subscriber: @Sergey

Added subscriber: @Sergey

Please simplify your file as much as possible so we can investigate it. We really need something which demonstrates the issue in order to fix it.

You can also use ftp://ftp.blender.org/incoming to share .blend file.

Please simplify your file as much as possible so we can investigate it. We really need something which demonstrates the issue in order to fix it. You can also use ftp://ftp.blender.org/incoming to share .blend file.

Sorry, forgot to mention, please test latest builds from builder.blender.org to see if the issue was fixed already :)

Sorry, forgot to mention, please test latest builds from builder.blender.org to see if the issue was fixed already :)

I downloaded the latest build. Opened the file. Some objects got upscaled. I checked these objects and their scale is 1 to 1 to 1. What can I do?

I downloaded the latest build. Opened the file. Some objects got upscaled. I checked these objects and their scale is 1 to 1 to 1. What can I do?

For each of the issue you've got:

  • Prepare test file which demonstrates the issue, keep it as small as possible.
  • Submit a bug report. Make sure you're following bug report guidelines.

Important note: do not mix different issues in the same report, one issue -- one report. Helps keeping things under control here.

For each of the issue you've got: - Prepare test file which demonstrates the issue, keep it as small as possible. - Submit a bug report. Make sure you're following bug report guidelines. Important note: do not mix different issues in the same report, one issue -- one report. Helps keeping things under control here.

Hi,

The file can be downloaded here: https://we.tl/MvQ4kxXnoV

Sorry, it's quite heavy but I couldn't do better than that...

Hi, The file can be downloaded here: https://we.tl/MvQ4kxXnoV Sorry, it's quite heavy but I couldn't do better than that...

I can not reproduce any issue with the file you've attached.

Some notes to check on:

  • You're using GPU rendering, so it is important your scene fits into VRAM, which would be much lower than your main RAM.
  • If your GPU is alos used for display, then it'll have some additional memory usage on it due to OS and applications, so VRAM available for Blender is lower than your overall amount of VRAM
  • Additionally, if your GPU is used for display it'll have additional time limits on kernels. See - how to solve/workaround this issue.
  • Blender requires some additional VRAM just to get render kernel working. This memory requirement became much lower in latest Blender builds. So 2.77a requires almost 700MB of VRAM here to render while latest builds requires only about 470MB.

So at this point, please check:

  • Make sure you've got latest drivers installed from NVidia site (it is important to use NVidia since drivers provided by Windows Update are known to be glitchy).

  • Latest Blender builds manages to render the scene (ignoring the fact that some objects are wrong size for you).

  • Check if smaller tile size / increased TDR time makes your scene to render.

  • Check VRAM consumption using GPU-Z to see if you're itting memory limit issue of some sort.

  • Start Blender from the command line with --debug-cycles argument and attach log after the issue occurred.

  • https://www.blender.org/manual/render/cycles/gpu_rendering.html#the-nvidia-opengl-driver-lost-connection-with-the-display-driver

I can not reproduce any issue with the file you've attached. Some notes to check on: - You're using GPU rendering, so it is important your scene fits into VRAM, which would be much lower than your main RAM. - If your GPU is alos used for display, then it'll have some additional memory usage on it due to OS and applications, so VRAM available for Blender is lower than your overall amount of VRAM - Additionally, if your GPU is used for display it'll have additional time limits on kernels. See - [x] how to solve/workaround this issue. - Blender requires some additional VRAM just to get render kernel working. This memory requirement became much lower in latest Blender builds. So 2.77a requires almost 700MB of VRAM here to render while latest builds requires only about 470MB. So at this point, please check: - Make sure you've got latest drivers installed from NVidia site (it is important to use NVidia since drivers provided by Windows Update are known to be glitchy). - Latest Blender builds manages to render the scene (ignoring the fact that some objects are wrong size for you). - Check if smaller tile size / increased TDR time makes your scene to render. - Check VRAM consumption using GPU-Z to see if you're itting memory limit issue of some sort. - Start Blender from the command line with --debug-cycles argument and attach log after the issue occurred. - [x] https://www.blender.org/manual/render/cycles/gpu_rendering.html#the-nvidia-opengl-driver-lost-connection-with-the-display-driver

Added subscriber: @mib2berlin

Added subscriber: @mib2berlin

Hi, cant get errors too on my GTX 670 2 GB.
The file need 760 MB VRAM.
I had to reduce samples to 200, no time for a 60 minutes render but should not make a difference.

Opensuse Leap 42.1 x86_64
Intel i5 3570K
RAM 16 GB
GTX 760 4 GB /Display card
GTX 670 2 GB
Driver 367.27

I checked with Blender 2.77a and GTX 670 only.

Hi, cant get errors too on my GTX 670 2 GB. The file need 760 MB VRAM. I had to reduce samples to 200, no time for a 60 minutes render but should not make a difference. Opensuse Leap 42.1 x86_64 Intel i5 3570K RAM 16 GB GTX 760 4 GB /Display card GTX 670 2 GB Driver 367.27 I checked with Blender 2.77a and GTX 670 only.

Hi,

I have created a Registry key for TDR and set it to 8. Render started and crashed.

This is a GPU-Z log (not sure it's useful):
GPU-Z Sensor Log.txt

Hi, I have created a Registry key for TDR and set it to 8. Render started and crashed. This is a GPU-Z log (not sure it's useful): [GPU-Z Sensor Log.txt](https://archive.blender.org/developer/F319112/GPU-Z_Sensor_Log.txt)

I don't know how to do that... I started Blender using the Command Prompt but I don't know how to do this :
"...with --debug-cycles argument and attach log after the issue occurred."

I don't know how to do that... I started Blender using the Command Prompt but I don't know how to do this : "...with --debug-cycles argument and attach log after the issue occurred."

What exactly you mean by "crash" ? (technically, crash is when application encounters unrecoverable error and being terminated by the OS).

In order to get debug log, run this: blender.exe --debug-cycles > log.txt 2>&1 and attach log.txt here.

What exactly you mean by "crash" ? (technically, crash is when application encounters unrecoverable error and being terminated by the OS). In order to get debug log, run this: `blender.exe --debug-cycles > log.txt 2>&1` and attach log.txt here.

Sorry for being unprecise.

I started Blender using the command Promt, opened the file from Blender, pressed the render button.
Render starts, then stops and I get the Illegal address in cuCtxSynchronize() error message.

Command prompt shows this:
command log.txt

Sorry for being unprecise. I started Blender using the command Promt, opened the file from Blender, pressed the render button. Render starts, then stops and I get the Illegal address in cuCtxSynchronize() error message. Command prompt shows this: [command log.txt](https://archive.blender.org/developer/F319113/command_log.txt)

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

It's not clear to me if you got the issue with a new build as well? The attached log is from an older blender (not current master).

It's not clear to me if you got the issue with a new build as well? The attached log is from an older blender (not current master).

Hi Thomas,
No, I had the issue with 2.77a. I'm testing the latest build tonight. I'll let you know.

Hi Thomas, No, I had the issue with 2.77a. I'm testing the latest build tonight. I'll let you know.

Same thing. : (
Here's the log.
command log-2.77.1.txt

Same thing. : ( Here's the log. [command log-2.77.1.txt](https://archive.blender.org/developer/F319272/command_log-2.77.1.txt)

Do you have enough infos with my latest log?

Do you have enough infos with my latest log?

There is unfortunately not so much in the logs, just for some reason CUDA fails.

On a fortunate side i'm back to the studio and have some NVidia hardware around and Windows 10 machine. Will try to reproduce the issue on a closer configuration to yours.

At the meantime, did anyone else confirm the issue?

@JulesetMariusLABORDE, did you make sure you've got latest drivers installed from nvidia.com site?

There is unfortunately not so much in the logs, just for some reason CUDA fails. On a fortunate side i'm back to the studio and have some NVidia hardware around and Windows 10 machine. Will try to reproduce the issue on a closer configuration to yours. At the meantime, did anyone else confirm the issue? @JulesetMariusLABORDE, did you make sure you've got latest drivers installed from nvidia.com site?

Hi Sergey,
Yes, I have installed the latest drivers (368.39).

Hi Sergey, Yes, I have installed the latest drivers (368.39).

I just tried to launch a render of the same scene on another computer.

I had a render error:
CUDA error: Launch exceeded timeout in cuMemcpyDtoH((uchar*)mem.data_pointer + offset, (CUdeviceptr)(mem.device_pointer + offset), size)

I just tried to launch a render of the same scene on another computer. I had a render error: CUDA error: Launch exceeded timeout in cuMemcpyDtoH((uchar*)mem.data_pointer + offset, (CUdeviceptr)(mem.device_pointer + offset), size)

And yet another:
CUDA error at cuCtxCreate: Launch exceeded timeout

And yet another: CUDA error at cuCtxCreate: Launch exceeded timeout

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2016-07-12 20:08:22 +02:00

Timeout is caused by specific of how CUDA works -- it'll limit amount of time kernel can do calculations on the display card. Additionally, on Windows you've got extra timeout which is applied on driver itself and will re-set it if it did not respond within a given timeout.

See - [x] for a bit details and possible solutions.

So it all seems you're just hitting limitations of GPGPU, nothing we can really solve from blender side.

Timeout is caused by specific of how CUDA works -- it'll limit amount of time kernel can do calculations on the display card. Additionally, on Windows you've got extra timeout which is applied on driver itself and will re-set it if it did not respond within a given timeout. See - [x] for a bit details and possible solutions. So it all seems you're just hitting limitations of GPGPU, nothing we can really solve from blender side. - [x] https://www.blender.org/manual/render/cycles/gpu_rendering.html#the-nvidia-opengl-driver-lost-connection-with-the-display-driver
How come this is not working on this brand new computer: https://www.grosbill.com/4-msi_gt72s_6qe_483fr_i7_ssd_gtx980m_gsync-671328-ordinateurs-ordi_portable

Still, thank you for your time. I will read your link tomorrow.

Still, thank you for your time. I will read your link tomorrow.
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
4 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#48765
No description provided.