You are not logged in.

#1 2022-08-31 11:09:10

kashishme
Member
Registered: 2021-01-08
Posts: 175

GPU hang while using blender

I have been using blender since my fresh boot regularly but this issue is now getting very frustrating, as after some usage blender just freezes, i can't save, i can't select anything or do anything other than force closing using pkill command.

From preferences i have set the render device to nvidia cuda (which i found from looking at other questions from forums), still the issue persists.

My specs are:
i5 10th gen
8gb ddr4 ram (dual channel)
nvidia gtx 1650ti (4gb vram)
256gb + 1tb storage
I am on laptop dell g3 3590

here is the general outputs i am seeing and from what i know, blender is overloading the threads in my nvidia gpu and even in htop (while blender is frozen) atleast one core of my cpu is at 100% usage, which i quite weird as it stays there till i force kill blender.

here is output of 'sudo dmesg | grep -i blender':

[ 5044.639755] i915 0000:00:02.0: [drm] blender[3351] context reset due to GPU hang
[ 5044.651404] i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85df9ebf, in blender [3351]
[ 5259.679698] i915 0000:00:02.0: [drm] blender[3541] context reset due to GPU hang
[ 5259.709369] i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85df9ebf, in blender [3541]

and here is 'sudo journalctl -b': http://0x0.st/op2S.txt

Also, is this a software issue or hardware bottleneck? also here is my system preferences in case it is important: https://imgur.com/a/8zWBK0d

NOTE: I have noticed this that the freezing happens mostly when i keep changing my workspace or if i pause working on the project for a while so i just wanna know that can runtime d3 cause this problem because i am using it for battery management although it is not working with increasing my battery life but it does change the power delivery in the dGPU as even the documentation mentions that if an application stops using gpu for a while it shuts down for that time period, so powering back up might be some trouble

Last edited by kashishme (2022-09-01 06:17:24)

Offline

#2 2022-09-01 08:20:30

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: GPU hang while using blender

DDG Search results for 'nvidia GPU HANG ecode 9:1:85df9ebf blender' indicate this is probably a problem with the intel kernel module.

https://gitlab.freedesktop.org/drm/intel/-/issues/3125 lists a workaround .
Please try this out and report results.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2022-09-01 14:25:08

kashishme
Member
Registered: 2021-01-08
Posts: 175

Re: GPU hang while using blender

i followed that page and it seems to get better but i am not sure, because this still shows up in dmesg:

[ 9327.542043] ACPI Error: Thread 3333783552 cannot release Mutex [ECMX] acquired by thread 3443490816 (20210730/exmutex-378)
[ 9327.542066] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20210730/psparse-529)
[26314.917688] ACPI Error: Thread 3890806784 cannot release Mutex [ECMX] acquired by thread 3446865920 (20210730/exmutex-378)
[26314.917694] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20210730/psparse-529)

Or are the errors irrelevant?

Last edited by kashishme (2022-09-01 14:25:42)

Offline

#4 2022-09-01 14:36:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: GPU hang while using blender

These are irrelevant and happen on almost every system in one form or another.

Offline

#5 2022-09-02 04:38:57

kashishme
Member
Registered: 2021-01-08
Posts: 175

Re: GPU hang while using blender

oh alright, then i must say, it is working i think, but the changes said in the gitlab link ( https://gitlab.freedesktop.org/drm/intel/-/issues/3125 ) you sent, they reset after a reboot, any work around for that?

and do i have to type 'INTEL_DEBUG=reemit blender' in terminal everytime? do i have a way to start it that way directly from application launcher? (i am using awesome wm)

also, in the post they say to increase the value to 10000, if i increase it more, will that damage the system or be harmful in any way?

Last edited by kashishme (2022-09-02 11:02:03)

Offline

#6 2022-09-02 22:45:13

xerxes_
Member
Registered: 2018-04-29
Posts: 675

Re: GPU hang while using blender

You may do alias for "INTEL_DEBUG=reemit blender" or create text file in /usr/bin directory with that content and make it executable. The second should allow to start from application launcher.

For value in preempt_timeout_ms I don't know if it can be larger, but you can always test yourself.

Offline

#7 2022-09-03 04:46:15

kashishme
Member
Registered: 2021-01-08
Posts: 175

Re: GPU hang while using blender

xerxes_ wrote:

create text file in /usr/bin directory with that content and make it executable. The second should allow to start from application launcher.

how do i do it? the only thing i found is creating a '.sh' file

also do you know how to make the changes persistent? It resets everytime i reboot

Last edited by kashishme (2022-09-03 04:47:00)

Offline

#8 2022-09-03 17:47:46

xerxes_
Member
Registered: 2018-04-29
Posts: 675

Re: GPU hang while using blender

To make alias persistent write it in .bashrc file in home your directory, but you have to start it from terminal from bash.

The second method is just like I wrote previously: create new empty text file in /usr/bin directory, you may name it, for example, blender_ , write to it "INTEL_DEBUG=reemit blender" or better "INTEL_DEBUG=reemit /usr/bin/blender" and make it executable by command 'chmod a+x /usr/bin/blender'. Now you should be able to start it with your application launcher (I'm assuming awesome wm application launcher work similar to i3 application launcher, because I never used awesome). If it wouldn't work, you could still start it from terminal.

Last edited by xerxes_ (2022-09-03 17:55:36)

Offline

#9 2022-09-04 10:38:35

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: GPU hang while using blender

An alternative that does work in menus and can be set per-user is to copy the .desktop-file used to start blender to users homefolder and edit that to include the intel_debug var.
https://wiki.archlinux.org/title/Deskto … ktop_files has examples .

setting the timeout requires a different approach as this is systemwide and requires root rights .
systemd-tmpfiles could be used, but there's a good chance /sys isn't ready yet when that's run and it will fail.

create a script to set the value, and a simple systemd service to run the script.
See https://wiki.archlinux.org/title/System … t_process?

Last edited by Lone_Wolf (2022-09-04 10:39:36)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB