Blender Crashes during python modal operator #87223
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#87223
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: Windows
Short description of error
I did an addon which creates objects in modal mode during mesh editing. And I found that blender crashes during parameters changing. I recorded video.
I attached my addon and a test file.
If I comment a line 395 (vs_coll.objects.link(new_obj)) then there will be no crash. The crash happens during objects linking.
BSpheres.zip
tmp1.blend
tmp_vid1.mp4
Exact steps for others to reproduce the error
Crash.
Added subscriber: @PaulGeraskin
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm.
These might be related:
#84647 (Crash: Python/Undo related crash in BKE_scene_object_base_flag_sync_from_base) (adding manual undo push does not help)
#85436 (Separate by loose parts weird result.) (same backtrace)
Will tag
Core
module since this is Undo-related.Added subscriber: @mont29
Changed status from 'Confirmed' to: 'Archived'
the code of this addon is broken (if you do not return 'FINISHED' while changing the data, you skip generating the undo step while having modified data, which is invalid and will break undo system).
Please do not use this tracker for python development support.
Hi @mont29 , let me express some statements, please:
1 I've created a procedural mdeling tool and I'm using this code here https://blendermarket.com/products/bspheres
2 I donate to the Blender Foundation from every sale
3 I have to use a modal operator to achieve realtime performance.
4 Blender crashes. Not my addon. I assume this is a bug of Blender.
5 I reported a bug as I had a crash from Blender's side. I assume I reported correctly.
Thanks.
Blender crashes after using you addon, because said addon does not behave properly (as explained in previous comment). Support for proper python coding is not part of this tracker's targets.
An addon is a program, not a user interacting with the software, therefore it has more power, which comes with more responsibilities when it comes to not breaking the rest of the software. There are millions of ways to make Blender crash from python code, just as from changing its C code.