Blender 2.83 crashing and lagging when rendering the viewport (cycles). #77466
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
14 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#77466
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: Arch Linux
Graphics card: GTX 1050 ti
Driver: nvidia-lts-1:440.82-19
Blender Version
Broken: Blender 2.83 LTS (Tesded with and same issue with blender from blender.org website, Snap package and from the Arch Community Repository)
Worked: There was no problems in 2.82a
Suspected culprit:
d712f1f83a
Description of the error
The render view (the viewport typically when working with shaders) causes the interface to get extremely lag and sometimes totally stuck when rendering the viewport. Didn't find any issue rendering 250 frames of animation, but most of the times I'm working with the nodes shades setup and I change some nodes making the viewport start rendering, using cycles, it gets stuck for something like 10 seconds and then it can crash or just continue.
But I haven't been able to use blender for more than 5 minutes without a crash with this problem and lagging even when I simply change the view position on the viewport. I have tested many other files and they all have this same problem. Also happened when using CPU rendering instead of GPU.
I tried using the option debug-all but I don't think there is any hint there at all.
This is another crash:
Those lines like this:
They always come when the interface gets stuck when the preview renderer is starting.
Added subscriber: @mattffly
#81908 was marked as duplicate of this issue
#80073 was marked as duplicate of this issue
Added subscriber: @mano-wii
Are there any steps to reproduce the problem?
Yeah: be on linux (maybe specially on arch but i don't think so), use nvidia 440.82-19 (but I was having the same issue on another drivers as well). Start seeing any rendered scene with cycles and blender becomes super lagy to work with (which also happened with evee) and it will eventually crashes (only crashes with cycles).
There is not much to it, just conventional usage changing anything on the materials or even moving on the viewport. The only pattern I found is that it crashes or lags while rendering the viewport.
Updates. I changed from the kernel-lts to kernel (5.6.1) and added a file like this:
Since someone recommended me to add that option due to the error:
[J
When blender is lagging and/or crashing. The result was that the whole Xorg session frost with the kernel (5.6) and the only solution was to kill Xorg, instead of just blender crashing. I switched back to the kernel-lts and blender 2.82 is working fine but 2.83 still crashes. I also kept the kernel option: "enable_psr=0".
Crash dump
I just made a test running blender with prime-run (the arch linux package for running a application with the dedicated gpu) and blender 2.83 worked flawlessly. I could even use optix and it worked and my gpu is theoretically not supported. (CYCLES_OPTIX_TEST=1 ).
I guess the bug is specific to i915 so something on the preview render viewport, when it is updating. At least i have a good workaround now.
Added subscriber: @jhidding
I have the same behaviour on Linux with an Intel integrated graphics card on Fedora 32.
Added subscriber: @dniku
Similar symptoms on Dell XPS 15 9560 under Manjaro GNOME. I run Blender 2.83 on the integrated Intel GPU, and ≈5 minutes after startup the whole Xorg session freezes.
journalctl
contains the following:(note
ecode
identical to the one provided by @mattffly)Added subscriber: @hussam
I am using the official linux tarball.
2.83.0 hangs on my intel laptop but works well on my nvidia gpu desktop..
2.82a works well without hangs.
Added subscriber: @rafaeldomi
This comment was removed by @hussam
Added subscriber: @luc2
Added subscriber: @Tuxgirl
Same problem here. All related information that I have gathered is located here: https://gitlab.freedesktop.org/drm/intel/-/issues/2075
I'm not sure where the problem is located, but it has made Blender completely unusable for me.
Added subscriber: @kotrfa
Same here. Out of nowhere, I get:
The last line shows how it simply kills the whole xorg, in this case demonstrated by a single app not able to communicate with it. I have to restart whole Xorg session.
Added subscriber: @CepheidVariable
Right, so as a bit of practice in learning new software development techniques, I took the time to use my PC to bisect the commit in which this particular problem shows up.
It shows up in commit
d712f1f83a
The commit prior to it,
d0ff3434cf
, works.I've tested even with the most recent commits, and the GPU hang still occurs. I am currently also using drm-tip, and have the i915.enable_psr=0 module parameter set.
I'm using an Intel UHD 620 in a Core i7 10710U.
dmesg output. In my case, it doesn't even properly recover. I have to kill xorg.
I doubt it's helpful much, but it's a start, and gives us somewhere to look?
Edit: Took a look at the code of the commit. I see no indications as to why it would cause a GPU hang. I'd argue it's definitely driver-side. I'll take a look later, when I got the energy to do so.
Added subscriber: @TimothyDrewFilms
I've been looking all over for a way to fix this and I think I finally found one!
The bug has been reported on Intel Gitlab page and a suggested workaround was to run blender prefixed as such:
I've been using blender 2.83-5 for hours now with no GPU hang!
OS: Manjaro Mikah 20.1
CPU: i7-6700 (Skylake GT2) (no gpu)
(I've also switched from video-linux to video-modesetting, although I haven't tested to see whether or not this makes a difference)
Hope this is helpful!
It's worth noting, that somewhere between my post on August 17th, and August 21st, when the most recent Arch Linux build of Blender was packaged(At the time of this post,) a pull request was done that fixed the GPU hang on Blender's side, rather than the driver side. Version 2.83.5 still hangs the GPU, but 2.83.5-2 in Arch Linux does not.
So, it looks like our three possible choices are to use 2.82, the latest git version, or switch from the Iris driver, as Timothy suggested.
I'd still like to find the cause, though... So I'll get off my lazy posterior and get to work on poking the Linux kernel.
Andrew, is 2.83.5-2 working only with the env variable that Timothy mentioned? Or is it working for you regardless of whether you set that variable?
I'm going to have to rescind my previous post actually. Today, it's gone back to crashing again. Happens within 30-60 seconds of starting blender. GPU just hangs. Also seeing a report(https://gitlab.freedesktop.org/drm/intel/-/issues/2380#note_611990) on the Intel gitlab that 2.83.5-2 is still crashing for another user, only that it's taking up to an hour to occur instead of minutes for them.
When it WAS working for longer though, it was without the environment variable.
I'm gonna go poke the i915 kernel module today. Got nothing better to do with my time today.
Added subscribers: @fho, @iss
Added subscribers: @Cowhead, @kursadk
Added subscriber: @Yquux
Blender user for 3 years now here, on Linux - I have that same issues since 2.83 came. 2.82a is still working flawlessly.
My computer :
Kernel: 5.4.0-52-generic x86_64
Desktop: Cinnamon 4.6.7 Distro: Linux Mint 20 Ulyana
RAM : 32Go
CPU : Intel Core i7-6700T bits: 64
GPU:
Device-1: Intel HD Graphics 530 driver: i915 v: kernel
Device-2: NVIDIA TU106 [GeForce RTX 2070] driver: nvidia v: 450.80.02
Device-3: NVIDIA TU106 [GeForce RTX 2070] driver: nvidia v: 450.80.02
Device-4: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 450.80.02
Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia
OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 20.0.8
I use Blender not installed, downloading tarball and launching it with links on my deskptop.
I used to install headless NVIDIA drivers (before *buntu 20.04) and keep on using the intel embedded graphics as display, and NVIDIA graphic cards for computing (CUDA).
Now since Linux Mint 20 is introducing the Prime applet quite easily, I just stay in 'onDemand' mode, then NVIDIA graphic cards are recognized and used by Blender, while all display works on Intel.
(to be noted that with the mode : 'intel for power saving', Blender just does not see the NVIDIA graphic cards, I never understood why).
When being on "onDemand" use:
Version 2.82a : works perfectly
Version 2.83.8 (an all from 83.0) : lags then freeze
Version 2.90.1 : lags then freeze
Version 2.91 beta : lags then freeze
"Lags and freeze" means when being in object mode, trying to switch to rendered view, it will work a few times, and then, randomly but quickly, especially when you're moving a rendered scene, it will stop at something like "Path Tracing Sample 32/144". For a few times it will just hang 10s and then finish the render - and then it will freeze for good, and Blender will just stop - like if it was killed.
I tried using the now available kernel 5.8.0-25 : when a freeze occurs, it is even more annoying since it freezes everything (except mouse) - I can't get the panel board of Cinnamon to come back - CTRL ALT F2 is the only option. I tried kernel 5.8 on 2.90.1 only though.
BUT :
on POWER mode (i.e. display on NVIDIA) : no issue at all -
Therefore I also tend to consider it is an issue with i915 intel driver.
I'd like to use that "MESA_LOADER_DRIVER_OVERRIDE=i965 blender" option... but I confess I don't understand how to use it !!
Removed subscriber: @kotrfa
Closed as duplicate of #80458