Bug 30165

Summary: blender crashes attempting any save/export
Product: Mageia Reporter: Barry Jackson <zen25000>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: NEW --- QA Contact:
Severity: critical    
Priority: Normal CC: fri, yvesbrungard
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: blender-2.83.10-3.1.mga8.src.rpm, libx11-1.7.0-1.2.mga8.src.rpm CVE:
Status comment:
Attachments: debug output from terminal

Description Barry Jackson 2022-03-12 21:48:28 CET
Description of problem:
As summary

Version-Release number of selected component (if applicable):


How reproducible:
Every time

Steps to Reproduce:
1. Start blender
2. Import an .stl file
3. Edit the file by moving a selection
4. Use File -> Export
Poof! core dumped.
Comment 1 Barry Jackson 2022-03-12 21:53:09 CET
Created attachment 13174 [details]
debug output from terminal
Barry Jackson 2022-03-12 21:53:55 CET

Severity: normal => critical

Comment 2 Lewis Smith 2022-03-13 10:13:36 CET
Thank you for the report, Barry.
Looking at the end of the debug attachment, 'xcb' does not occur earlier in the log, only at the end. It suggests an external cause.
Searching threw up:

 https://developer.blender.org/T90247
"Blender often crashes with xcb-related error messages"
Worth a read since the problem *has become* widespread. "Considering past versions of Blender are crashing now too (which were very stable on my system), I guess this is not related to a change in Blender itself." "How other people are even using Blender now with this bug ?"
https://developer.blender.org/T90247#1266773 says:
The issue was fixed upstream in LibX11 see https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/58a52fcbf698895f46d7e141cc162593c1f1218f
but that is oldish: 'Committed by Frediano Ziglio 1 year ago'
Two work-arounds to try:
"Current solution I found is to use Wayland instead of X11"
"workaround for now is to configure Blender to *not* open a new window, configured with Edit > Preferences > Interface > Editors > Temporary Editors > Render In : "Keep User Interface""

 https://forum.manjaro.org/t/blender-crashes-all-the-time/100320
"Blender crashes all the time"
Another workaround?: "Possible solution, though I’m still testing… I have put the rendering on “workbench” instead of “evee”… No crashes so far"

Our M8 version 2.83.10 of Blender is only 15 months old, but it has advanced since in Cauldron: 2.83.13 March 2021, 2.93.0 June 2021, 2.93.7 June & Dec (?) 2021. But the problem does not seem to be Blender version related.

Blender is officially with DavidG, so assigning accordingly. CC'ing tv who looks to be the main packager for libx11.
+ lib64x11_6-1.7.0-1.2.mga8
+ lib64x11-xcb1-1.7.0-1.2.mga8
from libx11-1.7.0-1.2.mga8.src.rpm

Source RPM: blender-2.83.10-3.1.mga8.src.rpm => blender-2.83.10-3.1.mga8.src.rpm, libx11-1.7.0-1.2.mga8.src.rpm
Assignee: bugsquad => geiger.david68210
CC: (none) => thierry.vignaud

Comment 3 Morgan Leijström 2022-09-12 18:14:50 CEST
@Barry, does it work now?
I see mga8 have 2.83.10

3.3 LTS is released.
Something to land in backport?

Quick test: I told flatpak to install blender, and it got me "stable" which turned out to be 3.3.  Boots up, not tested more then that.

CC: (none) => fri

Comment 4 Lewis Smith 2022-09-18 20:55:50 CEST
In Dec 2021 wally updated Cauldron to version 2.93.7; would this be eligible for Mageia 8?
Since then, we have v3.x.y which will be for Mageia 9.

It was not wise to assign this to daviddavid. Different people have maintained Blender recently, so re-assigning this bug globally.

Assignee: geiger.david68210 => pkg-bugs
CC: (none) => lewyssmith

Comment 5 papoteur 2022-09-21 10:18:18 CEST
According to the bug report cited above in blender T90247. the solution comes from applying a patch to libX11:
https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/113
included in 1.7.4
and to mesa
https://gitlab.freedesktop.org/mesa/mesa/-/commit/ae710f33296c5bf673fbe4b4c6a720d5552b4554

CC: (none) => yves.brungard_mageia

Comment 6 Lewis Smith 2022-09-23 21:26:12 CEST
Thanks for this very helpful info.
Thierry/tv was already CC'd; he does both libX11 & mesa, so changing the assignment to him.

CC: lewyssmith, thierry.vignaud => (none)
Assignee: pkg-bugs => thierry.vignaud