Page MenuHome

Compositing: crash when enable OpenCL, on mesa GPU
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-5.17.5-hardened1-1-hardened-x86_64-with-glibc2.35 64 Bits
Graphics card: Mesa Intel(R) Iris(R) Plus Graphics (ICL GT1.5) Intel 4.6 (Core Profile) Mesa 22.0.2

Blender Version
Broken: version: 3.2.0 Beta, branch: master, commit date: 2022-05-02 20:13, hash: rB62ef1c08af9a
Broken: version: 3.1.2
Broken: version: 3.0.1
Worked: (newest version of Blender that worked as expected)

Short description of error
Compositing: blender crash when enable OpenCL, on intel mesa GPU
blender-softwaregl is also crash finally

but on another Linux laptop (has an NVIDIA GPU), it works fine:

System Information
Operating system: Linux-5.17.5-hardened1-1-hardened-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.68.02

Blender Version
version: 3.2.0 Beta, branch: master, commit date: 2022-05-04 19:23, hash: rBf11dba88923f

Exact steps for others to reproduce the error
based on the default sense, has at least 1 camera

  1. go to compositing workspace, select Use Nodes option
  2. go to Options -> Performance panel, select OpenCL option
  3. render image
  4. blender crash

debug logs:

(...)
UI_menutype_draw: opening menu "IMAGE_MT_editor_menus"
wm_window_make_drawable: set drawable 1
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "NODE_MT_editor_menus"
UI_menutype_draw: opening menu "DOPESHEET_MT_editor_menus"
wm_window_make_drawable: set drawable 2
UI_menutype_draw: opening menu "IMAGE_MT_editor_menus"
munmap_chunk(): invalid pointer
[1]    49602 IOT instruction (core dumped)  ./blender --debug-all

logs without --debug-all:

(...)
double free or corruption (out)
[1]    50184 IOT instruction (core dumped)  ./blender
(...)
munmap_chunk(): invalid pointer
[1]    50295 IOT instruction (core dumped)  ./blender

I can't find /tmp/*.crash.txt after crash


^ created with blender 3.2.0, render image causes crash

Event Timeline

sbchild (sbchild) updated the task description. (Show Details)
Omar Emara (OmarSquircleArt) changed the task status from Needs Triage to Needs Information from User.May 9 2022, 8:31 AM

Mesa's Clover driver, which you are probably using, doesn't support images and is thus not fully featured enough to work with Blender. There is a replacement fro Clover in the works that supports, so this might work in the future.
Can you confirm that this is the case? You can use the tool clinfo to enumerate the devices and drivers you have.

sbchild (sbchild) closed this task as Resolved.May 11 2022, 3:06 AM
sbchild (sbchild) claimed this task.

problem solved after install some packages

sudo pacman -Sy
sudo pacman -R xf86-video-intel
sudo pacman -S mesa xf86-video-intel vulkan-intel libva-intel-driver libvdpau-va-gl intel-compute-runtime lib32-vulkan-intel lib32-mesa intel-gpu-tools libva-mesa-driver llvm-libs

thank you