Property search crash with python handlers #81697
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#81697
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
Windows-10-10.0.19041-SP0 64 Bits, Linux 5.8.12-200.fc32.x86_64, Fedora 32 |
Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-10-14 05:21, hash:
2d4f1afece
Short description of error
When typing on the Property Search textbox Blender crashes to the desktop.
Exact steps for others to reproduce the error
ASAN Report
Added subscriber: @dgsantana
Added subscriber: @ankitm
Edit: this report is unrelated and was fixed in
1cf8a4e5ea
I don't get a crash in debug build (macOS ), but UB warnings:
ct->texture is NULL
CTX_data_pointer_set(result, &ct->texture->id, &RNA_Texture, ct->texture);
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @dfelinto
I could not reproduce it in Linux, it may be Windows only.
I also think the crash is windows only, but I can also reproduce the ASAN report (although I think I remember seeing it before).
Maybe they're related though, I'll see.
Added subscriber: @JulianEisel
The ASan report should unrelated, it always appears when opening the texture tab.
Properties search basically opens these tabs off-screen, so any errors that usually only appear when opening these will appear on properties search.
Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'
Ray was not able to get a crash on lite build on windows, with
fecb276ef7
Added subscriber: @iss
No crash with
cf778a9e42
and with53792e32e7
here.Try enabling the Auto Tile Size addon, @HooglyBoogly, LazyDodo and me found out that the cause is something that an addon adds to the properties.
Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Indeed, enabling the auto tile size addon causes property search to crash. The problem is in
property_search_all_tabs
, where a new context is created withCTX_copy()
, then freed at the end of the function.Apparently in the next main loop, that context is still around and is accessed in
wm_event_do_notifiers
. I'm guessing this is because of this line in the addon:bpy.app.handlers.depsgraph_update_post.append(on_scene_update)
My best guess is that somehow using the duplicated context sets the
bpy.context
variable, which is then reused in the next main loop.Crash when typing on the new property searchto Property search crash with python handlersThis issue was referenced by
e7ab802ab0
Changed status from 'Confirmed' to: 'Resolved'