Iray won't work if not switched to as the first action after running DS

Hey guys!

As they used to say in this kind of forum topics two decades ago, "subj" :)

So yeah, recently my DS behaves weirdly with Iray. If I don't switch to Iray preview as soon as I launch DS, it won't work later. Even if the first action after launching DS is clicking File -> Open menu (then suddenly remembering "Oh no, gotta run Iray first!"), Iray won't work. The log file says something like "Iray can't find a rendering device" in this case. But if the first action after launching DS is switching to Iray, everything goes fine later: scene opening, editing, switching between scenes, rendering, and so on. Weird, huh?

What could it be? Did I break something in DS?

Comments

  • felisfelis Posts: 3,656

    What is checked in Render Settings > Advanced > Devices?

  • feldarztfeldarzt Posts: 122

     CUDA 0 - NVIDIA GeForce RTX 3090 (WDDM - Display)

    felis said:

    What is checked in Render Settings > Advanced > Devices?

  • felisfelis Posts: 3,656

    So you can render fine using the GPU, but just not using Iray preview.

  • A Screenshot of Render Settings > Advanced would help...

  • feldarztfeldarzt Posts: 122

    No, rendering won't start as well. It's like DS can't find the rendering device.

    I've started DS and made a different first action instead of turning on Iray to get a fresh log. Here it is:

    2022-10-04 18:07:29.558 [WARNING] :: QColor::setRgb: RGB parameters out of range
    2022-10-04 18:07:29.559 Iray [INFO] - IMAGE:IO ::   1.0   IMAGE  io   info : Loading image "D:\DAZ 3D\DAZStudio4\shaders\iray\resources\DTHDR-RuinsB-500.hdr", no selector, pixel type "Rgb_fp", 512x256x1 pixels, 1 miplevel.
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating geometry.
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating motion transforms.
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Importing scene graph.
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Importing geometry for motion time 0
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Geometry import (0 triangle objects with 0 triangles, 0 fiber objects with 0 fibers (0 segments), 0 triangle instances yielding 0 triangles, 0 fiber instances yielding 0 segments) took 0.000 s
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating section objects.
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating materials.
    2022-10-04 18:07:29.562 Iray [INFO] - MATCNV:RENDER ::   1.0   MATCNV rend info : found 0 textures, 0 lambdas (0 unique)
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating volumes.
    2022-10-04 18:07:29.562 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating environment.
    2022-10-04 18:07:29.568 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating lens.
    2022-10-04 18:07:29.568 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating lights.
    2022-10-04 18:07:29.568 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating object flags.
    2022-10-04 18:07:29.568 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating backplate.
    2022-10-04 18:07:29.569 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating caustic portals.
    2022-10-04 18:07:29.569 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating decals.
    2022-10-04 18:07:29.573 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Using iray core convergence estimate.
    2022-10-04 18:07:29.573 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Allocating 1-layer frame buffer
    2022-10-04 18:07:29.576 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Using interactive scheduling, caustic sampler disabled
    2022-10-04 18:07:29.576 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Initializing local rendering.
    2022-10-04 18:07:29.577 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Using OptiX version 7.3.0
    2022-10-04 18:07:29.579 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Initializing OptiX for CUDA device 0
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: cuLinkCreate: PTX JIT compiler library not found
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: Errors: error   : Unable to load library 'nvptxJitCompiler.dll'
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: CUDA device 0 (NVIDIA GeForce RTX 3090): device kernel image is invalid (Failed to get function attributes)
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [WARNING] - IRAY:RENDER ::   1.0   IRAY   rend warn : CUDA device 0 (NVIDIA GeForce RTX 3090) is no longer available for rendering.
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [WARNING] - IRAY:RENDER ::   1.0   IRAY   rend warn : All available GPUs failed.
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: Fallback to CPU not allowed.
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: CUDA device 0 (NVIDIA GeForce RTX 3090): Device initialization failed, will not be used
    2022-10-04 18:07:29.687 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Rendering with 0 device(s):
    2022-10-04 18:07:29.687 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Rendering...
    2022-10-04 18:07:29.687 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(367): Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: No worker to render with: aborting render
    2022-10-04 18:07:29.688 [ERROR] Iray :: Internal rendering error.

    felis said:

    So you can render fine using the GPU, but just not using Iray preview.

  • feldarztfeldarzt Posts: 122

    Sure, here it is.

     

    hansolocambo said:

    A Screenshot of Render Settings > Advanced would help...

    Untitled.jpg
    1920 x 1050 - 288K
  • PerttiAPerttiA Posts: 9,463

    Which Nvidia driver version are you using?

    Why the "Check GPU driver version" is not checked?

  • feldarztfeldarzt Posts: 122

     512.96. I rolled back to it from two versions of 516s. Can't remember what was wrong with those exactly, but something was.

    The Check GPU driver version was unchecked when I was looking for a way to return Iray to its proper functioning. One time it seemed like it helped, but then it turned out that it actually did not. And I just left the checkbox unchecked.

    PerttiA said:

    Which Nvidia driver version are you using?

    Why the "Check GPU driver version" is not checked?

  • PerttiAPerttiA Posts: 9,463

    It would help to see what else is in that log. Do not copy it to the message area, but attach the txt file to your post with the "Attach a file" above the "Post Comment" button.

  • feldarztfeldarzt Posts: 122

     Sorry about log-posting before. Here's the full log file. I hope you can see more in it than I do because to me, except for that "No device found" part, it's all Greek.

    PerttiA said:

    It would help to see what else is in that log. Do not copy it to the message area, but attach the txt file to your post with the "Attach a file" above the "Post Comment" button.

    txt
    txt
    log.txt
    68K
  • PerttiAPerttiA Posts: 9,463

    I think the problem is here;

    Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: cuLinkCreate: PTX JIT compiler library not found
    Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: Errors: error   : Unable to load library 'nvptxJitCompiler.dll'
    Iray [ERROR] - IRAY:RENDER ::   1.0   IRAY   rend error: CUDA device 0 (NVIDIA GeForce RTX 3090): device kernel image is invalid (Failed to get function attributes)

    But at the moment, don't know how to fix.

  • feldarztfeldarzt Posts: 122

    Hmm. So it looks like a driver problem, not DS one? Maybe a clean reinstall of the GPU driver will help.

  • PerttiAPerttiA Posts: 9,463

    Make sure you have no other Iray related programs, drivers and/or libraries installed, there has been cases when they have been clashing with the version of Iray used in DS and or the installed Nvidia driver version.

  • feldarztfeldarzt Posts: 122

    Nope, that didn't help.
    I guess I'll just have to use DS like this until I eventually reinstall my OS and all the software. That kinda sucks but still not critically terrible.
     

    >>Make sure you have no other Iray related programs, drivers and/or libraries installed, there has been cases when they have been clashing with the version of Iray used in DS and or the installed Nvidia driver version.
    I don't think I have any. I use Blender and ZBrush, but I don't think any of them uses Iray.

Sign In or Register to comment.