question

Ewan Laidlaw avatar image
Ewan Laidlaw asked ·

CUDA error when using displacement on the GPU.

I get this error on some scenes when using a Maya displacement shader on the GPU:

// Error: [gpu] an error happened during rendering : Unknown error (Details: Function "_rtContextLaunch2D" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (700): Illegal address, file: <internal>, line: 0) //

I am using a RTX 2070 Super.

The error occurs on a scene basis, it will begin happening randomly as far as I can tell and doesnt occur all the time even with the exact same shader setup in a different.

The same scene on the CPU renders with no issue.

Ignoring displacement in the diagnostics doesn't stop the error. The image texture and/or displacement shader has to be disconnected in the node editor. The scene will render with the same shader network if the displacment is disconnected (Maya restart is required). Using Arnold subdivision works fine, its only displacement.

I have tried up and down grading the MtoA version as well as installing different Nvidia drivers (both game and studio editions).

I do get a fatal GPU error occasionally when updating a scene in the render view, maybe its related.

Cheers.

gpushaderdisplacement
4 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

I get the same error. I managed to track it down to specifically using cell noise to drive displacement. Regular noise works fine, but as soon as any path including cell noise gets used for displacement, I get this error and am unable to render.

I'm using an RTX 2080, with Houdini and Arnold 6.0.4.0 on Ubuntu 18.04.5.

0 Likes 0 · ·

Hi Piers,

I tried to repro your crash. I just had a simple polygon sphere and used a cell noise as the displacement but did not experience the crash. Is there something extra I need to do to reproduce the crash, or better yet do you have a simple .ass file that I can use to repro?

Cheers,

Dec

0 Likes 0 · ·

I experimented a bit more and found that there were a few more things in my material that were required in order for it to crash. I've attached a .hiplc that contains a minimal example. If any of the six nodes in the material are removed, the crash no longer occurs – this is true even though the two multiply nodes simply multiply the input by 1.

error.hiplc.zip

0 Likes 0 · ·
errorhiplc.zip (113.9 KiB)
Show more comments
Andrew Neilson avatar image
Andrew Neilson answered ·

Having exact same issue with 3DS Max and RTX 3080.

Arnold: 4.2.2.20

NVIDIA: 360.89

[Arnold]: 00:04:14 7372MB ERROR | [gpu] an error happened during rendering : Unknown error (Details: Function "_rtContextLaunch2D" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (700): Illegal address, file: <internal>, line: 0)




1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

This is unfortunately a generic error message that could be triggered in many ways. Is this happening because of displacement, which should now be fixed? If it's a new problem, please post a new arnold answers question so we can make sure it gets the attention it deserves.

0 Likes 0 · ·
Declan Russell avatar image
Declan Russell answered ·

An update on this. We have a workaround to stop the crash that will be coming in the next bug fix release. The workaround essentially means that we disable autobump when this case pops up. This is far from ideal I know, but its better than a crash. A real fix will come when we move to OptiX 7.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Lucas Tebib avatar image
Lucas Tebib answered ·

Hi, the same happens to me on a scene that was perfectly working less than 24hours ago. If I ignore displacement, it's working, otherwise same error.

I tried both latest Game Ready and Studio driver, doesn't change anything.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.