Crash calling Mesh.clear_geometry in edit-mode #90972
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#90972
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: Arch Linux
Graphics card: GTX 970
Blender Version
Broken: 2.93.1, 2.92.0, 2.83.13
Short description of error
While trying to figure out a workaround for #90798 stumbled upon a segfault apparently caused by a call to
bpy.ops.ed.undo()
while in edit mode.Exact steps for others to reproduce the error
GDB backtrace:
Added subscriber: @PaulMelis
Added subscriber: @rjg
This crash only seems to happen when Blender is started with the script from CLI, executing it it from the Scripting workspace doesn't result in the crash.
Blender master branch:
The undo call doesn't appear to be the issue. It's the
clear_geometry()
that seems to cause the problem.Added subscriber: @PratikPB2123
Commit should fix the issue (I think):
1b7c361fbb
I did not receive crash when running blender from CMD (without GUI)
Added subscribers: @ideasman42, @lichtwerk
Changed status from 'Needs Triage' to: 'Needs User Info'
I can confirm here.
However, this is somewhat expected. Let me explain:
So
3d16a268ee
should have brought basic support for undo in background mode back.But it also advises to do a "manual" undo push here to make it work properly. Doing so will get rid of the crash.
(i can also imagine this is specifically problematic, because
clear_geometry()
is not an operator that has an undo push for itself, but a mesh RNA function without undo push)Sooo, doing it with this script, I dont get crashes anymore:
@PaulMelis: does this work for you?
Well, that indeed doesn't crash. However, I had already found another workaround, but thanks anyway!
Changed status from 'Needs User Info' to: 'Archived'
Will close then.
Out of curiosity : which workaround did you use?
See https://developer.blender.org/T90798:
This makes sure the loop triangles are flagged to be recomputed, which is what I needed (as glTF export was broken for our scene)
Segfault when calling bpy.ops.ed.undo()to Crash calling Mesh.clear_geometry in edit-modeChanged status from 'Archived' to: 'Confirmed'
This crash also happens when undo isn't called.
This issue was referenced by
19e1b5c1fd
Changed status from 'Confirmed' to: 'Resolved'