Crash in BM_mesh_bm_to_me after a few simple face edit operations including bevel #104379

Closed
opened 2023-02-06 15:39:31 +01:00 by Eric Cosky · 4 comments
Contributor

System Information
Operating system: Windows 11
Graphics card: RTX3080

Blender Version
Broken: commit 329eeacc66 (HEAD -> master, origin/master, origin/HEAD) [Note: Crash probably has nothing to do with that commit, this is just what my local repo is currently synced to]
Worked: not sure exactly but I think it's been about a month since I last built from latest. I did not try to do these specific steps before, I was just goofing around as a post-build check of basic functionality and hit the crash.

Blender built from source after deleting the previous build folder build_windows_Full_x64_vc17_Release. No additional addins, completely stock.

Short version:
Crashes after entering face mode, doing a few extrusions, bevels and selects.

Exact steps for others to reproduce the error
Start with the default scene.

After launching either the release or debug build of Blender,
enter face edit mode,
select the single face on the default cube perpendicular to x axis,
press E, and then X, and to do a few extrusions along the X axis. Alternate with scale to shrink the face a bit.
control-b to activate bevel mode,
spin mousewheel to adjust bevel face count, and adjust the bevel depth to cross between positive and negative ranges.
maybe alt-left click to select ring of faces,
keep doing this a bit and it's crashed for me pretty consistently.
It seems to be related to the use of bevel, possibly when the faces are bevelled "backwards" in a way people probably don't usually use bevel.

In this image, it crashed after an extrusion, extrusion paired with a scale, a bevel that isn't really visible, and then another extrusion: image.png

I was able to get it to crash in the debugger, down in BM_mesh_bm_to_me on this line:
bmesh_mesh_convert.cc:1041 need_vertsel |= BM_ELEM_CD_GET_BOOL(l, vertsel_offset);

From what I can tell, it looks like this is happening because this assignment on line 1024 sets vertsel_layer_index to -1.

  int vertsel_layer_index = CustomData_get_named_layer_index(

image.png

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

**System Information** Operating system: Windows 11 Graphics card: RTX3080 **Blender Version** Broken: commit 329eeacc66d13c9007e22f200304ebe902737abb (HEAD -> master, origin/master, origin/HEAD) [Note: Crash probably has nothing to do with that commit, this is just what my local repo is currently synced to] Worked: not sure exactly but I think it's been about a month since I last built from latest. I did not try to do these specific steps before, I was just goofing around as a post-build check of basic functionality and hit the crash. Blender built from source after deleting the previous build folder build_windows_Full_x64_vc17_Release. No additional addins, completely stock. Short version: Crashes after entering face mode, doing a few extrusions, bevels and selects. **Exact steps for others to reproduce the error** Start with the default scene. After launching either the release or debug build of Blender, enter face edit mode, select the single face on the default cube perpendicular to x axis, press E, and then X, and to do a few extrusions along the X axis. Alternate with scale to shrink the face a bit. control-b to activate bevel mode, spin mousewheel to adjust bevel face count, and adjust the bevel depth to cross between positive and negative ranges. maybe alt-left click to select ring of faces, keep doing this a bit and it's crashed for me pretty consistently. It seems to be related to the use of bevel, possibly when the faces are bevelled "backwards" in a way people probably don't usually use bevel. In this image, it crashed after an extrusion, extrusion paired with a scale, a bevel that isn't really visible, and then another extrusion: ![image.png](https://archive.blender.org/developer/F14252797/image.png) I was able to get it to crash in the debugger, down in BM_mesh_bm_to_me on this line: bmesh_mesh_convert.cc:1041 need_vertsel |= BM_ELEM_CD_GET_BOOL(l, vertsel_offset); From what I can tell, it looks like this is happening because this assignment on line 1024 sets vertsel_layer_index to -1. ``` int vertsel_layer_index = CustomData_get_named_layer_index( ``` ![image.png](https://archive.blender.org/developer/F14252764/image.png) **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible).
Author
Contributor

Added subscriber: @ecosky

Added subscriber: @ecosky

I think I followed the steps correctly, but I can't replicate the crash.
image

Could it be that the problem has already been fixed?

Please try the latest daily build: https://builder.blender.org/download/

If the problem persists, please let us know so we can re-open the report. Don't forget to mention the specific version you tested again.

I think I followed the steps correctly, but I can't replicate the crash. ![image](/attachments/0fbb9814-166e-4eaf-8b4b-46660ade31ed) Could it be that the problem has already been fixed? Please try the latest daily build: https://builder.blender.org/download/ If the problem persists, please let us know so we can re-open the report. Don't forget to mention the specific version you tested again.
Germano Cavalcante added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-02-07 22:22:13 +01:00
Member

Hi, call stack looks identical to #104501 (also crash occurs on same line in both reports)
I guess we can consider this as duplicate.

Hi, call stack looks identical to #104501 (also crash occurs on same line in both reports) I guess we can consider this as duplicate.
Pratik Borhade added
Status
Duplicate
and removed
Status
Needs Information from User
labels 2023-02-09 19:09:55 +01:00
Author
Contributor

Thanks for checking @mano-wii . I synced to the latest ( 91346755ce ) and I am no longer able to make it crash. I may have pulled before the bug was fixed or perhaps experienced some kind of transient build issue.

Thanks for checking @mano-wii . I synced to the latest ( 91346755cefd262f5540270cfc9cd69af33d7073 ) and I am no longer able to make it crash. I may have pulled before the bug was fixed or perhaps experienced some kind of transient build issue.
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#104379
No description provided.