Regression: Crash when creating a BMesh with "use_shape_key" on #97213

Closed
opened 2022-04-10 07:49:45 +02:00 by Rafael Navega · 11 comments

System Information
Operating system: Windows 8.1
Graphics card: Intel HD 520

Blender Version
Broken: 3.1.2 (2022-03-31)
Caused by 64cd927519

Short description of error
The program will crash if your Python script creates a BMesh instance using the 'use_shape_key' and 'shape_key_index' parameters to access the mesh data from a certain shape key of the mesh.

Exact steps for others to reproduce the error

  • Create a cube;
  • Click the "create shape key" button a few times to add some shape keys;
  • With the cube selected, run the following in the Python Console editor:
import bmesh
bm = bmesh.new()
bm.from_mesh(C.object.data, use_shape_key=True, shape_key_index=0) # Crashes at this line.

Thank you for your time.

**System Information** Operating system: Windows 8.1 Graphics card: Intel HD 520 **Blender Version** Broken: 3.1.2 (2022-03-31) Caused by 64cd927519 **Short description of error** The program will crash if your Python script creates a BMesh instance using the 'use_shape_key' and 'shape_key_index' parameters to access the mesh data from a certain shape key of the mesh. **Exact steps for others to reproduce the error** - Create a cube; - Click the "create shape key" button a few times to add some shape keys; - With the cube selected, run the following in the Python Console editor: ``` import bmesh bm = bmesh.new() bm.from_mesh(C.object.data, use_shape_key=True, shape_key_index=0) # Crashes at this line. ``` Thank you for your time.
Author

Added subscriber: @RNavega

Added subscriber: @RNavega
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 confirm the crash.

Checking...

Thanks for the report. I can confirm the crash. Checking...
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Bisecting points me to 64cd927519
@HooglyBoogly ^

Bisecting points me to 64cd927519 @HooglyBoogly ^
Philipp Oeser changed title from Crash when creating a BMesh with "use_shape_key" on to Regression: Crash when creating a BMesh with "use_shape_key" on 2022-04-12 09:50:15 +02:00

This issue was referenced by 77db370cb6

This issue was referenced by 77db370cb6e032d477bf48dbeb8bb608ba2b643f
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Hans Goudey self-assigned this 2022-04-12 18:09:36 +02:00
Author

Hi @HooglyBoogly, I see that the fix was committed to the master branch.
Does this mean that if I grab any daily build from here (https://builder.blender.org/download/daily/) it will come with that fix?

Hi @HooglyBoogly, I see that the fix was committed to the master branch. Does this mean that if I grab any daily build from here (https://builder.blender.org/download/daily/) it will come with that fix?
Member

The build happens at the end of the day in central European time, so yeah, the daily build should include this fix. If not, today's build would have it.

The build happens at the end of the day in central European time, so yeah, the daily build should include this fix. If not, today's build would have it.
Author

Ok, thanks a lot!

Ok, thanks a lot!
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
4 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#97213
No description provided.