Optix render kernels constantly reloading on Linux #73076
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#73076
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Ubuntu 19.10
Graphics card: 2x2080ti (v440.44, CUDA 10.2)
Blender Version
Broken: 2.81a Linux
Worked: 2.81a Windows
Switching between Cycles and any other render mode, then back to Cycles (GPU), triggers a lengthy reload of render kernels (several minutes)
Works fine on Windows 10
Exact steps for others to reproduce the error
Using a computer with an RTX GPU
... and so on
Note that the render kernels are re-loaded in each time and that it takes a long time (more than one minute each time)
Based on the default startup or an attached .blend file (as simple as possible).
Added subscriber: @christopher.burns
When I disable OptiX in settings, the problem goes away
Added subscribers: @pmoursnv, @mano-wii
Changed status from 'Needs Triage' to: 'Needs User Info'
@christopher.burns, can you update the description and add the steps to reproduce the problem (including: enable OptiX)?
I don't have an Nvidia card to test.
@pmoursnv, is this something you can confirm?
From what I could understand, the steps to reproduce the problem are:
I don't know if this is a known limitation.
Render kernels being reloaded when switching settings is normal, this happens with all APIs. The OptiX kernels are cached though, to avoid that taking a long time: On Windows in
%LOCALAPPDATA%\NVIDIA\OptixCache
, on Linux in/var/tmp/OptixCache_$USER
.Make sure this is the case. If not, try overriding the cache path with an environment variable called
OPTIX_CACHE_PATH
.Added subscriber: @patrick-24
@pmoursnv I do see a 40MB cache7.db file in /var/tmp/OptixCache_chris, but the problem persists
Changed status from 'Needs User Info' to: 'Needs Triage'
Render kernels constantly reloading, taking a long timeto Optix render kernels constantly reloading on LinuxAdded subscriber: @brecht
@brecht @pmoursnv Is there some debug info or logs I can provide to help resolve this?
You can run Blender with
--debug-cycles
which should print a bunch of OptiX debug info to the console and contain information about whether caching was succesfull or not.Deleting the cache.db file seems to have resolved the issue. I'm running multiple blender versions (2.81, 2.82, 2.83), if that matters
Changed status from 'Needs Triage' to: 'Resolved'
It's generally good practice to delete the cache when updating drivers. Your cache got corrupted for some reason (could have been a driver update that changed the format, or just an incomplete write because an OptiX app crashed, ...). Either way, this is not a Blender bug, but rather related to how caching works in OptiX itself.
Glad to hear it is resolved now, so closing this. Let me know if you run into issues again in the future.
Blender should just delete the cache if it's corrupt or unreadable for any reason
Maybe I should have clarified this before: The cache is not created by Blender. It is created an managed by OptiX (for all OptiX applications).
Blender doesn't now if it is corrupt or not (which by itself is an unlikely event, you just got really unfortunate here). There being a cache is opaque and hidden behind the OptiX API. Blender cannot and should not do anything about it.
Added subscriber: @Funnybob
In my case, it rebuilds every time I change a settings in the shader. I added a brightness contrast node. If I change any of the two parameters, it reloads. It's unusable. 2.90.0
Added subscriber: @Hekhen
I think I got a solution for this issue.
I changed the Memory Cache Limit, under Video Sequencer from 4096 to 16384. this seems to have fixed my issue.