Page 1 of 1

[tmp solution]Blender hangs

PostPosted: Dec 5th, '23, 11:42
by tis
Hi,

I just would like to report and share:
Rarely I try to do some simple thing in blender and sometimes I try more complicated things too.

It is unpredictable, but there are time periods like cases when blender hang after scale mesh on mga9.
Code: Select all
blender-3.3.8-1.mga9
python3-3.10.11-1.mga9

Linux localhost.localdomain 6.5.11-desktop-5.mga9 #1 SMP PREEMPT_DYNAMIC Sun Nov 19 01:09:14 UTC 2023 x86_64 GNU/Linux


I had similar problems on mga8 with blender2.8?? (it quited on rotation/zoom when edited mesh), but I've downloaded a newer versions source code (v2.9.1) and built with my hw/sw environment, and that works better, so I've done the same and I think blender 3.5.0 works better now. Since then harder to reproduce the fault in the current mga version. (I know my vga not the best for this, Intel HD630, e.g. slower than Nvidia but useable)

Re: Blender hangs

PostPosted: Dec 5th, '23, 11:51
by tis
Another error I realized with all blender version on mga9 (I've tried blender 4.0.1 release from there website too), that when I tried this displacement, the eevee render hangs on render 4096x4096 img and then the popup dialogs are faulty. (the first render may look well, but the second will render something transparent, and there are rubbish in dialogs, until close/restating blender)
With Full_HD resolution it works well!

Screenshot_20231205_101843.png
example displacement
Screenshot_20231205_101843.png (233.98 KiB) Viewed 5088 times


I found in log that gpu hangs:
Code: Select all
dec 05 09:20:44 localhost.localdomain kernel: i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
dec 05 09:20:44 localhost.localdomain kernel: i915 0000:00:02.0: [drm] blender[359663] context reset due to GPU hang
dec 05 09:20:44 localhost.localdomain kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85dffffb, in blender [359663]
dec 05 09:20:50 localhost.localdomain kernel: i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
dec 05 09:20:50 localhost.localdomain kernel: i915 0000:00:02.0: [drm] blender[360833] context reset due to GPU hang
dec 05 09:20:50 localhost.localdomain kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85dffffb, in blender [360833]
dec 05 09:20:56 localhost.localdomain kernel: i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
dec 05 09:20:56 localhost.localdomain kernel: i915 0000:00:02.0: [drm] blender[360833] context reset due to GPU hang
dec 05 09:20:56 localhost.localdomain kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85dffffb, in blender [360833]


Screenshot_20231205_090351.png
After render
Screenshot_20231205_090351.png (921.31 KiB) Viewed 5088 times


I found a tmp solution to change timeout: https://devopsx.com/intel-gpu-hang/
so if i mod timeout to 10000 it creates the img well and no error and dialogs are perfect.
!!! the render will be very slow !!!! (maybe not because of the long time limit, because I haven't realized addition slowness yet)

Additional info, I can realize it with the current and the prev mesa/dri drivers.
Code: Select all
lib64mesagl-devel-23.1.7-1.mga9.x86_64 libmesaegl1-23.1.7-1.mga9.i586 libmesagl1-23.1.7-1.mga9.i586 libdri-drivers-23.1.7-1.mga9.i586 mesa-23.1.7-1.mga9.x86_64 lib64mesagl1-23.1.7-1.mga9.x86_64 lib64dri-drivers-23.1.7-1.mga9.x86_64 lib64mesaegl1-23.1.7-1.mga9.x86_64 lib64glapi-devel-23.1.7-1.mga9.x86_64 lib64gbm-devel-23.1.7-1.mga9.x86_64 libglapi0-23.1.7-1.mga9.i586 libgbm1-23.1.7-1.mga9.i586 lib64mesakhr-devel-23.1.7-1.mga9.x86_64 lib64gbm1-23.1.7-1.mga9.x86_64 lib64glapi0-23.1.7-1.mga9.x86_64 lib64mesavulkan-drivers-23.1.7-1.mga9.x86_64 lib64xatracker2-23.1.7-1.mga9.x86_64

lib64glapi0-23.1.9-1.mga9.tainted.x86_64libglapi0-23.1.9-1.mga9.i586 lib64gbm1-23.1.9-1.mga9.tainted.x86_64 lib64glapi-devel-23.1.9-1.mga9.tainted.x86_64 lib64mesakhr-devel-23.1.9-1.mga9.tainted.x86_64 lib64mesavulkan-drivers-23.1.9-1.mga9.tainted.x86_64 lib64dri-drivers-23.1.9-1.mga9.tainted.x86_64 lib64mesagl1-23.1.9-1.mga9.tainted.x86_64 mesa-23.1.9-1.mga9.tainted.x86_64 lib64mesagl-devel-23.1.9-1.mga9.tainted.x86_64 lib64gbm-devel-23.1.9-1.mga9.tainted.x86_64 lib64mesaegl1-23.1.9-1.mga9.tainted.x86_64 lib64xatracker2-23.1.9-1.mga9.tainted.x86_64 libdri-drivers-23.1.9-1.mga9.i586 libgbm1-23.1.9-1.mga9.i586 libmesaegl1-23.1.9-1.mga9.i586 libmesagl1-23.1.9-1.mga9.i586

Re: [tmp solution]Blender hangs

PostPosted: Dec 7th, '23, 14:30
by tis
I've closed this, as the recompile of blender solve the main problem. 'Till that it works well, I could make interesting things, like smoke:
smoke_kocka4k_29_e.jpg
Quick effect->smoke (modified settings+particle system) + displacement on cube - EEVEE render
smoke_kocka4k_29_e.jpg (314.93 KiB) Viewed 4980 times

#noai #noimageai

I've tried the mageia packaged blender too, not so easy but after some modification on e.g. a cylinder it hangs usually on scale (move/rotate/zoom).

I think the mentioned second fault happens because I asked too much from this card, but can be solved with changing driver timeout.

If you check this render with smoke, you can realize the shadow on cube is at wrong place. Caused by displacement in cube material, but only with eevee render. (with blender 3.3.8mga, 3.5.0mybuild, 4.0.1blenderbuild too)

Re: [tmp solution]Blender hangs

PostPosted: Dec 7th, '23, 19:52
by tis
Fast I created this remembrance about smoke and cube...

kep_c.jpg
A remembrance about smoke and cube in blender
kep_c.jpg (365.22 KiB) Viewed 4954 times

#noai #noimageai

Re: [tmp solution]Blender hangs

PostPosted: Dec 9th, '23, 16:04
by tis
Additional info:

If you don't increase the time limit, you can still get errors in log when edit objects in eevee viewport and it still hangs. I realized it with some displacement/bump in textures... So I can advice changing the rcs0 timeout...

Code: Select all
dec 09 14:51:25 localhost.localdomain kernel: i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
dec 09 14:51:25 localhost.localdomain kernel: i915 0000:00:02.0: [drm] blender[432310] context reset due to GPU hang
dec 09 14:51:25 localhost.localdomain kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85df9ebf, in blender [432310]


Example scene:
Screenshot_20231209_141504.png
Winter scene
Screenshot_20231209_141504.png (1.85 MiB) Viewed 4796 times

#noai #noimageai

Re: [tmp solution]Blender hangs

PostPosted: Dec 9th, '23, 23:09
by tis
I've downloaded the source of the latest blender v3.x (v3.6.5) and that also works well, I can use it for a while, but sometimes it also hangs with my VGA. I accept my card is slow and not enough for this type of projects... :-( (sometimes the 10000 timeout is also not enough)

Screenshot_20231209_215337.jpg
Current scene
Screenshot_20231209_215337.jpg (489.53 KiB) Viewed 4746 times

#noai #noimageai

I have displacement/bump in every textures. This is the shader for snow:
Screenshot_20231209_215209.jpg
Shader for snow
Screenshot_20231209_215209.jpg (273.62 KiB) Viewed 4746 times

#noai #noimageai

I can say I can use it and if I save when I've finished a state I can continue... :-) (have to restart+reload, works for hours or more time, depends on complexity)

Re: [tmp solution]Blender hangs

PostPosted: Dec 10th, '23, 12:57
by tis
I could finish the scene today in blender 3.6.5. It is still working since more than 3 hours.

fenyves6.jpg
Final scene
fenyves6.jpg (561.26 KiB) Viewed 4706 times

#noai #noimageai

Happy Holidays!


I've just would like to try blender and tree-gen :-)

I've created Snowman from 3 sphere, coals from flatten cylinders, nose from cone, hat from cylinder, arms with tree-gen.
Plane generated with ocean modifier on a plane.
Small pine trees generated with Sapling Tree Gen module.
Snow stain/balls generated with Real Snow module.

Cool :-)