Blender often crashes with xcb-related error messages #90247
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
16 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#90247
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Manjaro Linux (current) on X11 (KDE Plasma)
Graphics card: Intel HD Graphics 3000 (Mesa drivers)
Blender Version
Broken: 2.93.1
Short description of error
After a fresh install, Blender often crashes with xcb-related errors. Sometimes immediately after launch (after the UI shows briefly), sometimes when opening Edit -> Preferences.
Console output at moment of crash:
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
blender: xcb_io.c:269: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
It seems like this bug is most often triggered when an additional window is opened (preferences, render, etc.)
Added subscriber: @intrr
#91918 was marked as duplicate of this issue
#90813 was marked as duplicate of this issue
Added subscriber: @scurest
Added subscriber: @EAW
Triaging Note: This comment describing the cause and fix of the same xcb error in this repository might be helpful.
https://github.com/rust-windowing/winit/issues/458#issuecomment-395132897
Added subscribers: @lichtwerk, @iss
I am not really familiar in X11 system and how we interface with that, but this doesn't sound like Blender bug. Not sure even what would be the best place to report this issue.
@lichtwerk any idea?
Backtrace of crash in GDB immediately after hitting F12 (render), in case it helps.
Added subscribers: @Evan-9, @PratikPB2123, @arrow_x86
Added subscriber: @leoplaw
I am seeing the same crash intermittently, with Blender 2.93 and 3.0 alpha.
Operating System: openSUSE Tumbleweed 20210515
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.13.1-1-default
OS Type: 64-bit
Graphics Platform: X11
Processors: 32 × Intel® Xeon® CPU E5-2690 0 @ 2.90GHz
Memory: 62.7 GiB of RAM
Graphics Processor: AMD CEDAR
Added subscriber: @Ponchman
Added subscriber: @3DiRK
Added subscriber: @leonidussaks
Added subscriber: @blendear
Kubuntu 21.10
KDE Plasma Version: 5.22.5 / KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2 / Kernel Version: 5.13.0-21-generic (64-bit)
Same here. Any additional window (save,import,export,prefs) crashes blender with ~75-80% percent probability making it totally unusable.
Also all past versions are affected now too back to 2.83 (I stopped trying at that point) so I can't even fall back.
Since I have a pretty vanilla system (Ubuntu+KDE) I expect this bug to affect lots of users.
Some info I found:
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.
Interesting thing is, the following thread goes back to 2018. Why did this bug catch Blender now ?
FreeCAD, Libreoffice, Pidgin, GIMP are some of the other crashing apps with the same error message in this thread:
https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/1808710
A comment from that thread:
https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/5914/xcb-most-likely-this-is-a-multi-threaded-client-and-xinitthreads-has-not-been-called
Explanation from that thread:
I confirm this crashing situation is the same in BLENDER 3.0 too (not surprising considering it is GTK related).
Anyone has a suggestion for a solution ?
How other people are even using Blender now with this bug ?
Added subscriber: @Blendify
The issue was fixed upstream in LibX11 see
58a52fcbf6
I suppose this requires updating the library on the build bots? Im not sure how we handle the version of libx11 we build with
Added subscriber: @SpaceOne
I also had the exact same problem when opening any popup window from Blender 3.0 (like Blender preferences or Render Image) when using latest up to date X11 in Manjaro with
libxcb 1.14 and libx11 1.7.3.1 (which already include "Fix poll_for_response race condition" from above gitlab link, so it seems 1 year old fix didn't fully help or something else broke in the meanwhile).
Current solution I found is to use Wayland instead of X11. With Wayland I never experienced the issue, with X11 I had crashes all the time.
Going back to donut tutorial now :).
Added subscriber: @tpecar
I'm also affected by this issue on Arch Linux with Blender 3.0.0, libx11 1.7.3.1-1 and libxcb 1.14-1.
I'm using KDE + i3 as the window manager (as per https://userbase.kde.org/Tutorials/Using_Other_Window_Managers_with_Plasma) under X11.
The main issue seems to be that when F12 is pressed, the default configuration is to open a new window, which also grabs focus and changes cursor location. It seems that some of these actions upset the X11 event handler and it aborts the application.
While this is not a Blender issue per-se, I assume that a workaround could be made on Blenders side to prevent the race condition.
My current 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"
Added subscriber: @hhausman
Thanks as ever for blender, it's great. Very grateful for the impressive efforts of this community, always.
Got blender 3.0 today, first time using it on a newly built machine.
f12
reliably dumps core w/ this message:Setup is vanilla ubuntu 21.10, though I also have installed and am using
i3
.@tpecar suggests a workaround that works for me--- happy to provide more details or try anything else out to help devs reproduce/fix this issue.
Added subscriber: @taschentuch
Blender 3.0.1 (3.0.1+dfsg-7 from Debian sid): same error as above, "blender: ../../src/xcb_io.c:269: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.", after attempt to render via F12. Almost 100% sure crash, if moving around a light before pressing F12. Saving and reopening Blender before pressing F12, almost certain no crash (at least not in this scene). Also Intel gpu, i915.
Hope this helps anyhow.
@taschentuch - very interesting. What window manager are you using?
@hhausman : fluxbox
Added subscriber: @OmarEmaraDev
Looks like there is a patch to implement a workaround in XCB https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/113, seems to match the trace mentioned above.
Changed status from 'Needs Triage' to: 'Needs User Info'
It seems a fix was merged into LibX11. @intrr Can you retest with the latest
mesa-git
AUR package and see if that fixes the issue?Sorry, the Manjaro installation doesn't exist anymore. :(
@intrr Okay, no problem. Maybe another user can help with that. @blendear @tpecar @SpaceOne can any of you help test this?
Ok, I have some time to kill, so I went ahead and checked if I can still reproduce the crash on the original system that exhibited this.
Note that the system (Thinkpad X230 with i5-3320M CPU @ 2.60GHz) hasn't been updated for some time and still has Blender 3.0.1 installed.
With the system as-is (Blender 3.0.1, i3 window manager), and Blender configured with "Temporary Editors > Render In > New Window", using a new General workspace (default cube) I can cause it to crash by hitting F12 (3-4 times, don't need to close the Render window between attempts) and moving the mouse within the window.
This happens regardless of the i3 window tiling configuration (crashes when Blender window either in tiled or tabbed configuration).
Providing version info for all dependencies, generated with
blender-3.0.1-5-pactree-versions.txt
blender-3.0.1-5-pactree.txt
blender-3.0.1-5-crash-msg.txt
blender-3.0.1-5-mesa.txt
I'll update the system (possibly try with mesa-git as advised) and report the differences in the next post.
Ok, I've updated the system, Blender 3.1.0 with standard system packages still crashes.
Providing version info
blender-3.1.0-2-pactree-versions.txt
blender-3.1.0-pactree.txt
blender-3.1.0-2-mesa.txt
Will now try with mesa-git
Built mesa-git as-is, and Blender 3.1.0 still crashes.
Attaching build log and crash message.
mesa-git-build2.txt
blender-3.1.1-2-crash-msg-mesa.txt
At this point I would ask for assistance on how to proceed. I assume the fix was not included in this mesa-git build, isn't helping, or is provided by some other package?
(Note: blender-3.1.1-2-crash-msg-mesa.txt actually refers to Blender 3.1.0, there's a typo in the filename)
@tpecar The fix is actually provided by the
libx11-git
package, which is a make dependency tomesa-git
, but as far as I can tell from the log, that was not installed, so maybe my assumption is wrong and this needs to be done manually.We mainly just want to test the
mesa-git
when linked againstlibx11-git
, so if you can make sure its the former uses the latter during compilation, that would be the way to do.Ok, I've installed
libx11-git
and rebuiltmesa-git
, and yes, this had indeed fixed the issue!Blender 3.1.0 is stable now when I try the procedures that had previously reliably invoked the xcb related crash.
I didn't check it for previous versions of Blender due to dependency issues, but I assume this would also fix it for previous versions, since it was a library issue.
For info, I've built both packages without any modifications / special flags. Given that these track development branches, the exact commits when I built the packages were
libx11-git
8a368d80, which includes the 257927c5 fixmesa-git
ae710f33Now these changes still need to propagate into the standard prebuilt releases (of libx11, mesa), so I don't know if we should close the issue just yet, but otherwise we can consider it resolved.
Providing the build log
libx11-git-mesa-git-build.txt
Changed status from 'Needs User Info' to: 'Archived'
As we are not really aligned with releases of those libraries, we will just archive this issue for now, we can always reopen if the issue resurface.
@tpecar Thank you for your help!
✅ For anyone looking for information about the resolution of this bug:
I can confirm that problem is solved after upgrading my system to Kubuntu 22.04 LTS without any additional steps (X11 / Mesa 22.0.1 / KDE).
Tested with Blender 3.0.1 installed from the default repository.