Cycles renderer stuck on loading render kernel, attempting to cancel rendering causes UI to freeze completely #120800
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#120800
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: Linux-6.8.5-arch1-1-x86_64-with-glibc2.39 64 Bits, WAYLAND UI
Graphics card: Mesa Intel(R) Arc(tm) A750 Graphics (DG2) Intel 4.6 (Core Profile) Mesa 24.0.5-arch1.1
Blender Version
Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-04-18 01:19, hash:
9cb3a17352bd
Worked: 4.1 was formerly functional, but is not any longer. Tested with 4.2 Alpha and 3.6 LTS as well.
Short description of error
When attempting to use the Cycles render engine, either in the Viewport or in the actual render, the rendering does not progress past the "loading render kernels" stage. Attempting to stop the rendering in any way results in the UI becoming completely non-responsiv, Blender freezing, and needing to be terminated manually via a killall command or similar. Things which cause the UI freeze include but may not be limited to: changing the shading type from "Rendered" to anything else (Solid, Material Preview, and Wireframe all consistently recreate the issue), changing the render device from GPU to CPU, attempting to quit the program during the render, and turning off GPU rendering under preferences. If rendering by pressing F12, pressing the cancel render button does not cause a UI freeze, but the render never finishes cancelling.
Exact steps for others to reproduce the error
I have found that these steps are able to consistently recreate this error. Unfortunately, since Blender does not actually crash at any point (needing to be closed forcibly), it is impossible to get a log of crash. Please find attached the output from the terminal when Blender is launched with the flag "--verbose 7".
Hi, thanks for the report. Render kernel loading is mostly one time process. It does take significant time to load. Forcefully terminating will indeed cause the freeze (not a bug). I would suggest to wait for kernels to load. If "loading" taking more time than usual then it's worth looking at why it's taking that long.
Have you recently made any changes on GPU side?
Thank you for the kind and timely response.
I have made no changes on the GPU side in terms of hardware. There may have been changes to the graphics software stack, but I'm not sure what change may have caused this issue.
I am aware that loading render kernels is a one-time process. However, I have previously loaded render kernels on this version/installation of Blender, and in all prior instances the process took mere seconds. I have also tried waiting around 10-15 minutes for it to load, which did bear fruit in one instance where the render kernels did ultimately load and I was able to render successfully. However, I could not recreate this behavior, and on all subsequent attempts Blender has attempted to reload the render kernels.
Thanks. BTW, did you observe this in previous blender versions. 3.6 for example?
Long loading time was expected initially: https://devtalk.blender.org/t/cycles-intel-oneapi-device-feedback/24928
Situation might have improved by now
If this is an recent issue observed on 4.1, it could be the recent changes on GPU denoiser side affected the kernel loading time? Does this happen after disabling denoiser?
Having tested on 3.6, the issue does in fact persist, thus leading me to believe that the root cause of the issue may lie in some particular interaction between Blender and the graphics drivers. I have also tried waiting for a full hour for the render kernels to load. No luck.
As for GPU denoising, the issue persists regardless of whether denoising is enabled or not.
I just wanted to add that I can't reproduce the issue.
Based on the fact things worked just fine in Blender 3.6 and some other versions, then at some point it stopped working, I would guess that your level zero/Intel compute runtime updated. And now it's broken (either due to a faulty install) or because the person maintaining that package in your package manager didn't compile properly.
Another possibility is that your Level zero/Intel compute runtime is too old. Apparently there were some issues with them with Linux Kernel 6.8.X, and it was only fixed in the last 5 days.
If you have the time, you could try investigating this.
System Information
Operating system: Linux-6.5.0-28-generic-x86_64-with-glibc2.39 64 Bits, WAYLAND UI
Graphics card: Mesa Intel(R) Arc(tm) A750 Graphics (DG2) Intel 4.6 (Core Profile) Mesa 24.0.5-1ubuntu1
Blender version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash:
e1743a0317bc
Blender version: 4.2.0 Alpha, branch: main, commit date: 2024-04-23 21:08, hash:
ce768d43a121