Crash when Undo after Removing color attribute #102875

Closed
opened 2022-11-30 13:06:18 +01:00 by Alex Zhornyak · 14 comments

System Information
Operating system: macOS-12.4-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 76.3

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: a2d59b2dac

Short description of error

  1. Crash when Undo after Remove Color Layer - bpy.ops.geometry.color_attribute_remove()
  2. Crash when accessing bmesh vents in depsgraph_update_post handler after Remove Color Layer

Exact steps for others to reproduce the error
Option 1:

  1. Load zen_button_test_color_del.blend
  2. Execute Remove Color Layer - bpy.ops.geometry.color_attribute_remove()
  3. Execute Undo

Option 2 (it acctually breaks my add-on):

  1. Load zen_button_test_color_del.blend
  2. Load and Run script test_color_layer_remove.py
  3. Execute Remove Color Layer - bpy.ops.geometry.color_attribute_remove()

[Based on zen_button_test_color_del.blend]

P.S. It was also on Windows 3.3.1 and Windows 3.4 beta, the crash is happened there too

zen_button_test_color_del.blend

test_color_layer_remove.py

Screen Recording 2022-11-30 at 13.32.53.mp4

**System Information** Operating system: `macOS-12.4-arm64-arm-64bit 64 Bits` Graphics card: `Apple M1 Apple 4.1 Metal - 76.3` **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: `a2d59b2dac` **Short description of error** 1. Crash when Undo after Remove Color Layer - bpy.ops.geometry.color_attribute_remove() 2. Crash when accessing bmesh vents in depsgraph_update_post handler after Remove Color Layer **Exact steps for others to reproduce the error** Option 1: 1. Load **zen_button_test_color_del.blend** 2. Execute Remove Color Layer - bpy.ops.geometry.color_attribute_remove() 3. Execute Undo Option 2 (it acctually breaks my add-on): 1. Load **zen_button_test_color_del.blend** 2. Load and Run script **test_color_layer_remove.py** 3. Execute Remove Color Layer - bpy.ops.geometry.color_attribute_remove() [Based on zen_button_test_color_del.blend] P.S. It was also on Windows 3.3.1 and Windows 3.4 beta, the crash is happened there too [zen_button_test_color_del.blend](https://archive.blender.org/developer/F13981842/zen_button_test_color_del.blend) [test_color_layer_remove.py](https://archive.blender.org/developer/F13981897/test_color_layer_remove.py) [Screen Recording 2022-11-30 at 13.32.53.mp4](https://archive.blender.org/developer/F13981869/Screen_Recording_2022-11-30_at_13.32.53.mp4)
Author

Added subscriber: @azhornyak

Added subscriber: @azhornyak

Added subscriber: @mod_moder

Added subscriber: @mod_moder

Checking...

Checking...
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Thanks for the report. I can redo the crash in 3.3.1 but not in current master/3.4
I'll check in latest 3.3.2 build and find the resolving commit if it has not been pushed to LTS branch


Sorry @mod_moder, didn't see your comment. Are you bisecting too?

Thanks for the report. I can redo the crash in 3.3.1 but not in current master/3.4 I'll check in latest 3.3.2 build and find the resolving commit if it has not been pushed to LTS branch - - - Sorry @mod_moder, didn't see your comment. Are you bisecting too?

(I suspected that you were on duty right now. :) )
At the beginning of the month it was at 3.3 and at 3.4
I was just downloading the 3.3 candidate release to test
Since in 3.4 today this is not.
I suspect it's just not fixed in 3.3

(I suspected that you were on duty right now. :) ) At the beginning of the month it was at 3.3 and at 3.4 I was just downloading the 3.3 candidate release to test Since in 3.4 today this is not. I suspect it's just not fixed in 3.3
Member

Thanks @mod_moder
I can repro in current 3.3 branch. Will bisect.

Thanks @mod_moder I can repro in current 3.3 branch. Will bisect.

It was in 3.5. I bisect to find a fix

It was in 3.5. I bisect to find a fix

It fixed (2022-11-22 00:01, hash: 89349067b6) -- (2022-11-23 18:35, hash: f4e1f62c62) for 3.4 and 3.5

It fixed (2022-11-22 00:01, hash: `89349067b6`) -- (2022-11-23 18:35, hash: `f4e1f62c62`) for 3.4 and 3.5

Potential fix: {461cb550cc07}

Potential fix: {461cb550cc07}
Author

I can confirm that bug is not reproduced on version: 3.4.0 Beta, branch: blender-v3.4-release, commit date: 2022-11-29 22:36, hash: b7d27ce914. So only 3.3 issue

I can confirm that bug is not reproduced on version: 3.4.0 Beta, branch: blender-v3.4-release, commit date: 2022-11-29 22:36, hash: `b7d27ce914`. So only 3.3 issue
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Hans Goudey was assigned by Pratik Borhade 2022-11-30 15:06:20 +01:00
Member

@mod_moder, that was fast :)
indeed the same commit has fixed the crash 461cb550cc
@azhornyak, fix is already mentioned in LTS list, will be backported soon.
I'm closing your report.

@mod_moder, that was fast :) indeed the same commit has fixed the crash 461cb550cc @azhornyak, fix is already mentioned in LTS list, will be backported soon. I'm closing your report.
Thomas Dinges added this to the 3.3 LTS milestone 2023-02-08 15:37:44 +01:00
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#102875
No description provided.