You are not logged in.

#1 2024-06-04 02:43:54

mwooper
Member
Registered: 2023-09-22
Posts: 66

Blender crashes when launched via wofi

this is the output when I launch wofi through terminal
[meehir@mwoop ~]$ wofi -S drun -I
[meehir@mwoop ~]$ Read prefs: "/home/meehir/.config/blender/4.1/config/userpref.blend"
Writing: /tmp/blender.crash.txt

contents of blender.crash.txt:

# Blender 4.1.1, Commit date: 2024-04-15 15:11, Hash e1743a0317bc

# backtrace
/usr/bin/blender(+0x208445b) [0x636e1984545b]
/usr/bin/blender(+0x160fb59) [0x636e18dd0b59]
/usr/lib/libc.so.6(+0x3cae0) [0x762248850ae0]
/usr/lib/libEGL_mesa.so.0(+0x21a76) [0x762226caaa76]
/usr/lib/libEGL_mesa.so.0(+0x22c5c) [0x762226cabc5c]
/usr/lib/libEGL_mesa.so.0(+0x2600a) [0x762226caf00a]
/usr/lib/libEGL_mesa.so.0(+0x1b359) [0x762226ca4359]
/usr/lib/libEGL_mesa.so.0(+0x983c) [0x762226c9283c]
/usr/bin/blender(+0x3c9e682) [0x636e1b45f682]
/usr/bin/blender(+0x3c9d34f) [0x636e1b45e34f]
/usr/bin/blender(+0x3c78c01) [0x636e1b439c01]
/usr/bin/blender(+0x3c9b070) [0x636e1b45c070]
/usr/bin/blender(+0x3c9797c) [0x636e1b45897c]
/usr/bin/blender(+0x3c71988) [0x636e1b432988]
/usr/bin/blender(+0x212b629) [0x636e198ec629]
/usr/bin/blender(+0x212b895) [0x636e198ec895]
/usr/bin/blender(+0x20e6444) [0x636e198a7444]
/usr/bin/blender(+0x2102806) [0x636e198c3806]
/usr/bin/blender(+0x210926e) [0x636e198ca26e]
/usr/bin/blender(+0x160b1c6) [0x636e18dcc1c6]
/usr/lib/libc.so.6(+0x25c88) [0x762248839c88]
/usr/lib/libc.so.6(__libc_start_main+0x8c) [0x762248839d4c]
/usr/bin/blender(+0x160ada5) [0x636e18dcbda5]

# Python backtrace


But blender launches seamlessly when launched via terminal emulator

Last edited by mwooper (2024-06-08 01:57:58)

Offline

#2 2024-06-04 14:27:56

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

https://wiki.archlinux.org/title/Debuginfod
Same if you run the binary from "-S run" or only when using the desktop entry?
One significant difference could be that wofi might close stdin/stdout and blender doesn't like that?

Offline

#3 2024-06-04 15:15:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,323

Re: Blender crashes when launched via wofi

Tested it here with both wofi and rofi (in wayland mode).  Works okay on this system.

Intel processor.  Intel Iris graphics.  Swaywm.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2024-06-05 15:15:17

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

seth wrote:

Same if you run the binary from "-S run" or only when using the desktop entry?

Yup, it launches with wofi -S run
I'll report this bug then

Offline

#5 2024-06-05 15:24:56

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

ewaller wrote:

Tested it here with both wofi and rofi (in wayland mode).  Works okay on this system.

Intel processor.  Intel Iris graphics.  Swaywm.

Did you try it with wofi -S drun?

Offline

#6 2024-06-05 15:25:31

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

Here is the fix for it
wofi -S drun -Ddrun-disable_prime=true -I

Offline

#8 2024-06-06 09:58:02

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

Thank you!

Offline

#9 2024-06-06 14:57:57

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

The blender backtrace in your bug goes through vulkan and ultimately uses the nvidia driver via zink b/c of DRI_PRIME, you might want to explicitly specify the nvidia vulkan driver, https://wiki.archlinux.org/title/Vulkan … initialize in order to run blender on the GPU again.

Offline

#10 2024-06-06 15:16:11

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

seth wrote:

The blender backtrace in your bug goes through vulkan and ultimately uses the nvidia driver via zink b/c of DRI_PRIME, you might want to explicitly specify the nvidia vulkan driver, https://wiki.archlinux.org/title/Vulkan … initialize in order to run blender on the GPU again.

I have an AMD GPU (RX 7600S)

Offline

#11 2024-06-06 15:21:35

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

Then why is the nvidia library loaded in that backtrace?

lspci -k

Offline

#12 2024-06-06 15:36:35

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

Here is th output for lspci -k

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e8
	Subsystem: ASUSTeK Computer Inc. Device 1523
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 14e9
	Subsystem: ASUSTeK Computer Inc. Device 1523
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ed
	Subsystem: ASUSTeK Computer Inc. Device 1523
	Kernel driver in use: pcieport
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
	Subsystem: ASUSTeK Computer Inc. Device 1523
	Kernel driver in use: pcieport
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
	Subsystem: ASUSTeK Computer Inc. Device 1523
	Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
	Subsystem: ASUSTeK Computer Inc. Device 1523
	Kernel driver in use: pcieport
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel
	Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
	Kernel driver in use: pcieport
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
	Subsystem: Advanced Micro Devices, Inc. [AMD] Device 14eb
	Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
	Subsystem: Advanced Micro Devices, Inc. [AMD] Device 14eb
	Kernel driver in use: pcieport
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
	Subsystem: Advanced Micro Devices, Inc. [AMD] Device 14eb
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
	Subsystem: ASUSTeK Computer Inc. Device 1523
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: ASUSTeK Computer Inc. Device 1523
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f7
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev 12)
	Kernel driver in use: pcieport
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch (rev 12)
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
	Kernel driver in use: pcieport
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600] (rev c3)
	Subsystem: ASUSTeK Computer Inc. Device 232d
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 HDMI/DP Audio
	Subsystem: ASUSTeK Computer Inc. Device 232d
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: ASUSTeK Computer Inc. Device 208f
	Kernel driver in use: r8169
	Kernel modules: r8169
05:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter
	Subsystem: AzureWave Device 4680
	Kernel driver in use: mt7921e
	Kernel modules: mt7921e
06:00.0 Non-Volatile memory controller: Micron Technology Inc 2400 NVMe SSD (DRAM-less) (rev 03)
	Subsystem: Micron Technology Inc Device 2100
	Kernel driver in use: nvme
	Kernel modules: nvme
67:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c1)
	Subsystem: ASUSTeK Computer Inc. Device 232d
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
67:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
	Subsystem: ASUSTeK Computer Inc. Device 232d
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
67:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device
	Subsystem: ASUSTeK Computer Inc. Device 1523
	Kernel driver in use: ccp
	Kernel modules: ccp
67:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b9
	Subsystem: ASUSTeK Computer Inc. Device 20af
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
67:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15ba
	Subsystem: ASUSTeK Computer Inc. Device 20af
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
67:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 63)
	Subsystem: ASUSTeK Computer Inc. Device 1513
	Kernel driver in use: snd_pci_ps
	Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63
67:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
	DeviceName: Realtek ALC256
	Subsystem: ASUSTeK Computer Inc. Device 1513
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
68:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
	Subsystem: ASUSTeK Computer Inc. Device 1523
68:00.1 Signal processing controller: Advanced Micro Devices, Inc. [AMD] AMD IPU Device
	Subsystem: Advanced Micro Devices, Inc. [AMD] AMD IPU Device
69:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
	Subsystem: ASUSTeK Computer Inc. Device 1523
69:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c0
	Subsystem: ASUSTeK Computer Inc. Device 20af
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
69:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c1
	Subsystem: ASUSTeK Computer Inc. Device 20af
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
69:00.5 USB controller: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #1
	Subsystem: ASUSTeK Computer Inc. Device 20af
	Kernel driver in use: thunderbolt
	Kernel modules: thunderbolt

Last edited by mwooper (2024-06-06 15:40:15)

Offline

#13 2024-06-06 15:38:53

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

Please use [code][/code] tags. Edit your post in this regard.
So where does there seem  to be

pacman -Qs nvidia

?
Remove the nvidia packages.

Offline

#14 2024-06-06 15:41:51

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

[meehir@mwoop ~]$ pacman -Qs nvidia
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/supergfxctl 5.2.1-1
    A utility for Linux graphics switching on Intel/AMD iGPU + nVidia dGPU laptops

libvdpau is required my ffmpeg and others
and supergfxctl just has "nvidia" in its description

Last edited by mwooper (2024-06-06 15:45:10)

Offline

#15 2024-06-06 15:46:10

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

https://todo.sr.ht/~scoopta/wofi/219 is your bug, right?
Why is there a libnvidia-glcore.so.550.76

pacman -Qo /usr/lib/libnvidia-glcore.so.550.76

Offline

#16 2024-06-06 15:48:02

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

[meehir@mwoop ~]$ pacman -Qo /usr/lib/libnvidia-glcore.so.550.76
error: No package owns /usr/lib/libnvidia-glcore.so.550.76

Perhaps its a blender bug ?

Offline

#17 2024-06-06 15:51:09

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

Plus I checked; there is no libnvidia in /usr/lib in my system

Offline

#18 2024-06-06 16:03:19

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

seth wrote:

https://todo.sr.ht/~scoopta/wofi/219 is your bug, right?
Why is there a libnvidia-glcore.so.550.76

pacman -Qo /usr/lib/libnvidia-glcore.so.550.76

Oh, nope that is some other person who had this same problem a month ago, the dev gave a solution to try but the reporter didn't respond, so I tried the solution and just responded that it works for me

My backtrace is the one that I have provided in the first post of this thread

Last edited by mwooper (2024-06-06 16:04:40)

Offline

#19 2024-06-06 16:12:06

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

Ah, ok - that explains that wink

You do have two amdgpu VGA devices though, so simple

DRI_PRIME=1 blender

crashes?

Offline

#20 2024-06-06 16:39:29

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

seth wrote:

Ah, ok - that explains that wink

You do have two amdgpu VGA devices though, so simple

DRI_PRIME=1 blender

crashes?

yeah one is the dGPU and other is the iGPU

[meehir@mwoop ~]$ DRI_PRIME=1 blender
Read prefs: "/home/meehir/.config/blender/4.1/config/userpref.blend"
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

Yup

Offline

#21 2024-06-06 17:14:01

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

DRI_PRIME=1 glxinfo

works?
Might be related to your wayland session, have you tried blender + DRI_PRIME on some X11 session (eg. openbox)?

Offline

#22 2024-06-08 16:44:50

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

Output of DRI_PRIME=1 glxinfo: http://0x0.st/Xb9D.txt

And I tried DRI_PRIME=1 blender in XFCE4 and it works there.


Plus I tried
"DRI_PRIME=1 brave" & "DRI_PRIME=1 godot" on Hyprland and they work fine.

Offline

#23 2024-06-08 19:05:43

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

So basicaly just a blender bug.
https://projects.blender.org/blender/bl … ues/119261 - but that'S w/ an nvidia GPU

Offline

#24 2024-06-09 02:20:33

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: Blender crashes when launched via wofi

Can this be fault of mesa's EGL library?

Last edited by mwooper (2024-06-09 02:22:27)

Offline

#25 2024-06-09 07:23:22

seth
Member
Registered: 2012-09-03
Posts: 60,801

Re: Blender crashes when launched via wofi

There's the other user w/ the same wofi problem on nvidia and the prime-related blender bug, also with nvidia.
It's somewhat unlikely to be a GL lib problem, but you'd need to use https://wiki.archlinux.org/title/Debuginfod to get some details on the problem.

Offline

Board footer

Powered by FluxBB