Skip to content

[Probable race condition bug] Blender crashes on plugin startup #704

@ErickEM9

Description

@ErickEM9

Every issue should include 3 things:

  1. i7-12700h, rx6900xt, nvidia rtx 3050ti (unused) - archlinux
  2. a project is not needed
  3. I expect blender to not crash, it crashes instead.

When I enable the addon blender crashes.
Therefore, in an attempt to discover the faulting component, I ran blender in gdb and as a result the addon works: i suspect the plugin loading code has an unidentified race condition.

Issue

The problem is blender crashes and it manifests when I enabled the plugin or simply start blender(while not running in gdb).

The issue is always reproducible when running outside gdb and never reproducible when running in gdb.

Steps to Reproduce

Install addon from zip file and enable it.

System Setup (Environment)

Archlinux: linux 6.12.7-zen1
Intel i7-12700h
AMD rx6900xt
nvidia rtx 3050ti (unused)

blender -v:

Blender 4.3.2
        build date: 2024-12-22
        build time: 23:13:54
        build commit date: 2024-12-16
        build commit time: 21:10
        build hash: 32f5fdce0a0a
        build branch: makepkg (modified)
        build platform: Linux
        build type: Release
        build c flags:  -Wall -Werror=implicit-function-declaration -Wstrict-prototypes -Werror=return-type -Werror=vla -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness -Wrestrict -Wno-stringop-overread -Wno-stringop-overflow -Wnonnull -Wabsolute-value -Wuninitialized -Wredundant-decls -Wshadow -Wimplicit-fallthrough=5 -Wno-error=unused-but-set-variable -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/blender/src=/usr/src/debug/blender -march=x86-64-v2 -fopenmp -std=gnu11 -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off  
        build c++ flags:  -Wuninitialized -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow -Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -g -ffile-prefix-map=/build/blender/src=/usr/src/debug/blender -march=x86-64-v2 -fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off  
        build link flags:  -Wl,--version-script='/build/blender/src/blender/source/creator/symbols_unix.map' -latomic
        build system: CMake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions