buddhi1980 / mandelbulber2

Official repository for Mandelbulber v2
GNU General Public License v3.0
893 stars 116 forks source link

Crash to desktop when attempting to set OpenCL toggle (Linux AUR package) #955

Open prmbittencourt opened 8 months ago

prmbittencourt commented 8 months ago
System information (version)
Detailed description

The application immediately crashes whenever I attempt to set the "OpenCL enable..." toggle in File> Program Preferences> OpenCL (GPU).

Steps to reproduce

Attempt to set the toggle above at any moment after having launched the application, regardless of what else was or wasn't done before.

System Information

System: Kernel: 6.6.8-zen1-1-zen arch: x86_64 bits: 64 Desktop: KDE Plasma v: 5.27.10 Distro: EndeavourOS Machine: Type: Desktop Mobo: ASRock model: X570 Phantom Gaming 4 UEFI: American Megatrends v: P5.01 date: 01/18/2023 Memory: System RAM: total: 32 GiB CPU: Info: 8-core model: AMD Ryzen 7 5700X bits: 64 type: MT MCP cache: L2: 4 MiB Graphics: Device-1: AMD Navi 22 [Radeon RX 6700 XT] driver: amdgpu v: kernel Display: server: X.Org v: 23.2.3 with: Xwayland v: 23.2.3 driver: X: loaded: amdgpu unloaded: modesetting,vesa dri: radeonsi gpu: amdgpu resolution: 1920x1080~60Hz

buddhi1980 commented 8 months ago

To be able to use OpenCL you need to install amdgpu-pro driver. You can find it here: https://www.amd.com/en/support/linux-drivers In former times I had AMD gpu and it was painful. The driver worked only with Ubuntu, so I couldn't use my favorite Debian. I don't know if this driver is prepared for Arch Linux.

raisingw commented 7 months ago

Just as a viable option that has worked very well for me it is possible to use rusticl to run OpenCL, avoiding the need to use the -pro driver.

As you have a single AMD GPU you should be able to run with environment variable RUSTICL_ENABLE=radeonsi:0 and select rusticl from the devices list in Mandelbulber.

I've edited my .desktop file so I don't have to think about it.

Screenshot_20240127_230652

prmbittencourt commented 7 months ago

Thank you for your reply. I'm having some trouble compiling mesa-rusticl-git but as soon as I can, I'll try this solution and report if it works.

Turns out the AUR packages are quite out-of-date. I downloaded the latest AppImage release and everything is working fine.