Modeling context causes Blender to freeze with 100% CPU, even when set to GPU rendering #113096

Closed
opened 2023-10-01 00:31:45 +02:00 by ben-little · 4 comments

System Information
Operating system: Manjaro Linux (kernel 6.1.53-1)
Graphics card: Two separate cards: NVidia GeForce1080Ti and 1070

Blender Version
Broken: 3.6.2
Worked: Never

Short description of error

Blender crashes (UI freezes) and one CPU core goes to 100%.

Exact steps for others to reproduce the error

Simply use the modeling context (object mode, edit mode, maybe others). Moving vertices and using the "Move the view" tool seem more likely to cause it.

More Info

Even simple geometry (cube with 8 vertices) can cause it.

I have set the system preferences "Cycle Render Devices" to use CUDA. However nvidia-smi indicates that blender is not using either of my GPUs. I'm not sure if this is relevant because the problem occurs during modeling, not during render.

My guess is that this an infinite loop. It would be useful to understand which function call is causing the issue, but running blender --verbose 9 and blender --verbose debug aren't giving any output.

**System Information** Operating system: Manjaro Linux (kernel 6.1.53-1) Graphics card: Two separate cards: NVidia GeForce1080Ti and 1070 **Blender Version** Broken: 3.6.2 Worked: Never **Short description of error** Blender crashes (UI freezes) and one CPU core goes to 100%. **Exact steps for others to reproduce the error** Simply use the modeling context (object mode, edit mode, maybe others). Moving vertices and using the "Move the view" tool seem more likely to cause it. **More Info** Even simple geometry (cube with 8 vertices) can cause it. I have set the system preferences "Cycle Render Devices" to use CUDA. However `nvidia-smi` indicates that blender is not using either of my GPUs. I'm not sure if this is relevant because the problem occurs during modeling, not during render. My guess is that this an infinite loop. It would be useful to understand which function call is causing the issue, but running `blender --verbose 9` and `blender --verbose debug` aren't giving any output.
ben-little added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-10-01 00:31:46 +02:00
Member

Hi, thanks for the report. Does it happen with simple objects? Try factory reset in case an add-on is interfering: File > Defaults > Load Factory Settings

However nvidia-smi indicates that blender is not using either of my GPUs.

Print system info to find out which GPU is used: Help > Save System Info
Also check memory utilization to figure this out.

Hi, thanks for the report. Does it happen with simple objects? Try factory reset in case an add-on is interfering: `File > Defaults > Load Factory Settings` > However nvidia-smi indicates that blender is not using either of my GPUs. Print system info to find out which GPU is used: `Help > Save System Info` Also check memory utilization to figure this out.
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-10-02 06:30:32 +02:00
Author

Does it happen with simple objects?

Yes, it happens with the default file (cube with 8 vertices).

Try factory reset in case an add-on is interfering

I have not manually installed any add-ons. I am a first-time blender user.

Print system info to find out which GPU is used

Looks like it's using the CPU:

GPU:
====================================

renderer:	'Mesa Intel(R) UHD Graphics 630 (CFL GT2)'
vendor:		'Intel'
version:	'4.6 (Core Profile) Mesa 23.1.7-1'
device type:	'INTEL'
backend type:	'OPENGL'
extensions:
...

Also check memory utilization to figure this out

Memory use is negligible according to top:

PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                         
161182 ben       20   0   10.4g 563864 271668 R 100.0   1.7   0:48.78 blender                                                         

I ran gdb on it and did a backtrace during the freeze. Not sure if this helps. Looks like an ioctl call where it's getting stuck, which could be anything based on my limited understanding of ioctl.

0x00007fffe530c9df in ioctl () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007fffe530c9df in ioctl () at /usr/lib/libc.so.6
#1  0x00007fffafdda2a0 in  () at /usr/lib/dri/iris_dri.so
#2  0x00007fffaf5f9f2c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007fffaf3aac9e in  () at /usr/lib/dri/iris_dri.so
#4  0x00007fffaf3ab334 in  () at /usr/lib/dri/iris_dri.so
#5  0x00007fffaf3ab484 in  () at /usr/lib/dri/iris_dri.so
#6  0x0000555558a7b07c in  ()
#7  0x00005555589ed6c1 in  ()
#8  0x00005555589ec445 in  ()
#9  0x00005555564b669f in  ()
#10 0x00005555564b7351 in  ()
#11 0x000055555648d482 in  ()
#12 0x000055555648dbfd in  ()
#13 0x000055555648ea69 in  ()
#14 0x00005555564818b0 in  ()
#15 0x0000555555d90441 in  ()
#16 0x00007fffe5227cd0 in  () at /usr/lib/libc.so.6
#17 0x00007fffe5227d8a in __libc_start_main () at /usr/lib/libc.so.6
#18 0x0000555555db3965 in  ()
> Does it happen with simple objects? Yes, it happens with the default file (cube with 8 vertices). > Try factory reset in case an add-on is interfering I have not manually installed any add-ons. I am a first-time blender user. > Print system info to find out which GPU is used Looks like it's using the CPU: ``` GPU: ==================================== renderer: 'Mesa Intel(R) UHD Graphics 630 (CFL GT2)' vendor: 'Intel' version: '4.6 (Core Profile) Mesa 23.1.7-1' device type: 'INTEL' backend type: 'OPENGL' extensions: ... ``` > Also check memory utilization to figure this out Memory use is negligible according to `top`: ``` PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 161182 ben 20 0 10.4g 563864 271668 R 100.0 1.7 0:48.78 blender ``` --- I ran `gdb` on it and did a backtrace during the freeze. Not sure if this helps. Looks like an ioctl call where it's getting stuck, which could be anything based on my limited understanding of ioctl. ``` 0x00007fffe530c9df in ioctl () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007fffe530c9df in ioctl () at /usr/lib/libc.so.6 #1 0x00007fffafdda2a0 in () at /usr/lib/dri/iris_dri.so #2 0x00007fffaf5f9f2c in () at /usr/lib/dri/iris_dri.so #3 0x00007fffaf3aac9e in () at /usr/lib/dri/iris_dri.so #4 0x00007fffaf3ab334 in () at /usr/lib/dri/iris_dri.so #5 0x00007fffaf3ab484 in () at /usr/lib/dri/iris_dri.so #6 0x0000555558a7b07c in () #7 0x00005555589ed6c1 in () #8 0x00005555589ec445 in () #9 0x00005555564b669f in () #10 0x00005555564b7351 in () #11 0x000055555648d482 in () #12 0x000055555648dbfd in () #13 0x000055555648ea69 in () #14 0x00005555564818b0 in () #15 0x0000555555d90441 in () #16 0x00007fffe5227cd0 in () at /usr/lib/libc.so.6 #17 0x00007fffe5227d8a in __libc_start_main () at /usr/lib/libc.so.6 #18 0x0000555555db3965 in () ```
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-10-04 11:35:05 +02:00

I assume this is same issue as #80458, #108875, #112880, and maybe #107642. Probably only solution is to configure your X server to use one of your dedicated GPUs

Will close as duplicate.

I assume this is same issue as #80458, #108875, #112880, and maybe #107642. Probably only solution is to configure your X server to use one of your dedicated GPUs Will close as duplicate.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-10-10 22:19:08 +02:00
Author

As suggested by the reporter of #112880, I checked the system journal with journalctl | grep -i blender and got

kernel: i915 0000:00:02.0: [drm] blender[9692] context reset due to GPU hang
kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85df9e9f, in blender [9692]

So this is a likely a duplicate of that issue, which seems to be caused by a known bug in i915 firmware. https://gitlab.freedesktop.org/drm/intel/-/issues/2024

As suggested by the reporter of #112880, I checked the system journal with `journalctl | grep -i blender` and got ``` kernel: i915 0000:00:02.0: [drm] blender[9692] context reset due to GPU hang kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85df9e9f, in blender [9692] ``` So this is a likely a duplicate of that issue, which seems to be caused by a known bug in i915 firmware. https://gitlab.freedesktop.org/drm/intel/-/issues/2024
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113096
No description provided.