Blender 2.81 - Crash when deleting scene from timers API #71422
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#71422
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: Linux-5.0.0-32-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21
Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-06 20:48, hash:
blender/blender@85637311c2
Short description of error
Blender crashes if scene is deleted from timers API
Exact steps for others to reproduce the error
scene_remove_crash.blend
Added subscriber: @simon_lusenc
Added subscriber: @mano-wii
I may be wrong, but I find it strange that
CTX_wm_window(C)
isNULL
in this case.Without getting into the real reason for the problem, this patch seems to solve the problem:
But I will wait for a second opinion.
Added subscriber: @lichtwerk
Note there are similar reports open blender/blender#62074 (2.8: Python API: crash due to missing window context in Application timer), blender/blender#71383 (2.8: Python API: window's workspace can't be set in Application timer).
Workaround [before the main issue id fixed] [next to the solution @mano-wii provided] is to use an operator with a custom context:
@mano-wii: think we should merge this into blender/blender#62074? (since the underlying problem is really the same here...)
(next to your solution which seems good to have anyways? -- but would be sure on this one either...)
Closed as duplicate of blender/blender#62074