The official Blender project repository.
Go to file
Omar Emara b9dbf2959d Fix: Crash with a BadAccess X_GLXMakeCurrent error
Blender crashes when opening files that invokes the interactive
compositor on file load with a BadAccess X_GLXMakeCurrent error.

This is caused by the same system GPU context being active in two
threads at the same time, which happens when the GPU context for the
compositor is created in the main thread, it is made current during
creation, but it is not reset to the main GPU context of the drawable
because it is null. So when the GPU compositor actually executes, it
makes the GPU context current again but in its own thread, causing a
BadAccess error in X11 and potentially other window systems.

So the root cause is that the drawable is nullptr, and an attempt to fix
this was committed in 0a70360eb6 but was reverted in 98722773da because
it caused serious issue that were not obvious.

This patch attempts another fix by simply releasing the system GPU
context created when calling the RE_system_gpu_context_ensure. This is
more robust anyways because callers do not expect the context to be
bound form an API point of view.

Pull Request: #129793
2024-11-04 16:17:17 +01:00
.gitea Issue template: Use bug label for Python API reports 2024-08-22 04:28:52 +02:00
.github Funding: Add FUNDING.yml to link to fund.blender.org on GitHub mirror 2024-07-31 10:03:57 +02:00
build_files Build: Update Harfbuzz to 10.0.1 2024-11-03 12:57:58 +01:00
doc Merge branch 'blender-v4.3-release' 2024-11-03 22:04:51 +11:00
extern Fix #129162: High idle CPU usage with PulseAudio in Linux 2024-10-29 16:19:07 +01:00
intern Merge branch 'blender-v4.3-release' 2024-11-04 11:34:05 +01:00
lib Libs: macOS arm64/x64: Update autopep8 to 2.3.1 2024-10-16 23:39:46 +02:00
locale I18N: Update UI translations from git/weblate repository (61be8de535853d8). 2024-10-29 11:35:53 +01:00
release Merge branch 'blender-v4.3-release' 2024-11-03 22:04:44 +11:00
scripts Merge branch 'blender-v4.3-release' 2024-11-04 03:17:14 +01:00
source Fix: Crash with a BadAccess X_GLXMakeCurrent error 2024-11-04 16:17:17 +01:00
tests Merge branch 'blender-v4.3-release' 2024-11-03 22:04:44 +11:00
tools Merge branch 'blender-v4.3-release' 2024-11-03 22:04:44 +11:00
.clang-format Clang-Format: Ensure single new line at the end of files 2024-02-22 14:42:10 +01:00
.clang-tidy Cleanup: match declaration names, avoid shadowing & clear trailing space 2024-10-03 12:12:08 +10:00
.editorconfig editorconfig: add HTML entry 2023-12-08 13:28:13 +11:00
.git-blame-ignore-revs Cleanup: add commit to .git-blame-ignore-revs 2023-05-03 20:31:11 +10:00
.gitignore Switch SVN to Git submodules using Git-LFS 2024-02-22 13:50:55 +01:00
.gitmodules Revert "Release cycle: Blender 4.3 Beta" 2024-10-02 12:35:26 +02:00
AUTHORS AUTHORS: add 1 new author (via override) 2024-10-29 14:43:10 +11:00
CMakeLists.txt Merge branch 'blender-v4.3-release' 2024-10-31 16:05:22 +01:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile make license: command to update the license file 2024-10-18 17:09:43 +02:00
make.bat make license: command to update the license file 2024-10-18 17:09:43 +02:00
pyproject.toml pyproject.toml: correct autopep8 configuration for 2.3.1 2024-10-16 20:55:03 +11:00
README.md Docs: Replace most wiki links with links to new developer docs 2024-01-18 16:49:38 +01:00

Blender

Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.

Blender screenshot

Project Pages

Development

License

Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.

See blender.org/about/license for details.