Crash when undo a loop cut #67902

Closed
opened 2019-07-29 21:26:57 +02:00 by Danilo · 19 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 750/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-24 14:22, hash: 507ffee6e1

Short description of error
I was working on Blender and it crashed when I undoed a Loop Cut. I've tried to recreate the bug on a default file but I coudn't, so I deleated everything on the scene and left just a square.

Exact steps for others to reproduce the error
loop.blend

It happens randomly, just do a loop cut and undo it. Some times it happens on the first try, but I also get it with 30 tries.

Debug output:
blender_debug_output.txt

I don't know if it's related to #67454 , but it just happens with Loop Cut, I tried the same with Extrude and Bevel and it didn't crash.

**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 750/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-24 14:22, hash: `507ffee6e1` **Short description of error** I was working on Blender and it crashed when I undoed a Loop Cut. I've tried to recreate the bug on a default file but I coudn't, so I deleated everything on the scene and left just a square. **Exact steps for others to reproduce the error** [loop.blend](https://archive.blender.org/developer/F7636208/loop.blend) It happens randomly, just do a loop cut and undo it. Some times it happens on the first try, but I also get it with 30 tries. Debug output: [blender_debug_output.txt](https://archive.blender.org/developer/F7636212/blender_debug_output.txt) I don't know if it's related to [#67454 ](https://developer.blender.org/T67454), but it just happens with Loop Cut, I tried the same with Extrude and Bevel and it didn't crash.
Author

Added subscriber: @danilolc

Added subscriber: @danilolc

#69568 was marked as duplicate of this issue

#69568 was marked as duplicate of this issue

This issue was referenced by 3566b81c8b

This issue was referenced by 3566b81c8bfa8c69d542a5de29ecb8d5af3ccb3d

Added subscriber: @MarcinTwarowski

Added subscriber: @MarcinTwarowski

Can confirm. It doesn't happen when I use ctrl+r. Only when I use loop cut tool from the shelf.

blender_system_info.txt
blender_debug_output.txt

Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF79F9167B8

System Information
Operating system: Windows-10-10.0.16299 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-24 14:22, hash: 507ffee6e1

Can confirm. It doesn't happen when I use ctrl+r. Only when I use loop cut tool from the shelf. [blender_system_info.txt](https://archive.blender.org/developer/F7637090/blender_system_info.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F7637089/blender_debug_output.txt) ``` Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF79F9167B8 ``` **System Information** Operating system: Windows-10-10.0.16299 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-24 14:22, hash: `507ffee6e1`
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Unable to reproduce here (db0782e946, linux 5.1.16-300.fc30.x86_64, nvidia 970m 430.26 drivers)

Unable to reproduce here (db0782e946, linux 5.1.16-300.fc30.x86_64, nvidia 970m 430.26 drivers) - does this still fail with a current build from https://builder.blender.org/download/?

Just tested on 2.81 (sub 0), branch: master, commit date: 2019-07-29 20:43, hash: 1178046ed2
The problem is still there. Crash seems to happen only (or at least a lot more often) in wireframe mode.
blender_debug_output.txt

Just tested on 2.81 (sub 0), branch: master, commit date: 2019-07-29 20:43, hash: `1178046ed2` The problem is still there. Crash seems to happen only (or at least a lot more often) in wireframe mode. [blender_debug_output.txt](https://archive.blender.org/developer/F7637279/blender_debug_output.txt)

Added subscriber: @RalfDietrich

Added subscriber: @RalfDietrich

Can confirm. Happens too with 2.81 (See Video)

2019-07-30 12-27-17- Blender crash loopcut undo.mov

Can confirm. Happens too with 2.81 (See Video) [2019-07-30 12-27-17- Blender crash loopcut undo.mov](https://archive.blender.org/developer/F7637306/2019-07-30_12-27-17-_Blender_crash_loopcut_undo.mov)
Member

Well, I cant get it to crash, but maybe someone on windows can?

Well, I cant get it to crash, but maybe someone on windows can?

I posted a proof here just a few minutes ago as a video

I posted a proof here just a few minutes ago as a video
Member

Ok, hammered it like a mad man [you have to be quick!] and could get it, too:

BMEdge *eed = BM_edge_at_index(data->vc.em->bm, index); will return garbage, asserts, too
BLI_assert failed: /blender/source/blender/bmesh/intern/bmesh_mesh.h:103, BM_edge_at_index(), at '(index >= 0) && (index < bm->totedge)'

1  _bm_elem_flag_test                   bmesh_inline.h                42   0x2dfce05 
2  mesh_foreachScreenEdge__mapFunc      view3d_iterators.c            201  0x2dfce05 
3  BKE_mesh_foreach_mapped_edge         mesh_iterators.c              82   0x207a93f 
4  mesh_foreachScreenEdge               view3d_iterators.c            257  0x2dfd09e 
5  EDBM_edge_find_nearest_ex            editmesh_select.c             653  0x2b7f458 
6  gizmo_preselect_edgering_test_select view3d_gizmo_preselect_type.c 308  0x2df8425 
7  gizmo_find_intersected_3d            wm_gizmo_map.c                642  0x2405cdf 
8  wm_gizmomap_highlight_find           wm_gizmo_map.c                754  0x2406142 
9  wm_handlers_do_intern                wm_event_system.c             2793 0x23ce408 
10 wm_handlers_do                       wm_event_system.c             2945 0x23cec23 
11 wm_event_do_handlers                 wm_event_system.c             3397 0x23d00cd 
12 WM_main                              wm.c                          417  0x23c397b 
13 main                                 creator.c                     500  0x1d83286

will check a little more...

Ok, hammered it like a mad man [you have to be quick!] and could get it, too: `BMEdge *eed = BM_edge_at_index(data->vc.em->bm, index);` will return garbage, asserts, too `BLI_assert failed: /blender/source/blender/bmesh/intern/bmesh_mesh.h:103, BM_edge_at_index(), at '(index >= 0) && (index < bm->totedge)'` ``` 1 _bm_elem_flag_test bmesh_inline.h 42 0x2dfce05 2 mesh_foreachScreenEdge__mapFunc view3d_iterators.c 201 0x2dfce05 3 BKE_mesh_foreach_mapped_edge mesh_iterators.c 82 0x207a93f 4 mesh_foreachScreenEdge view3d_iterators.c 257 0x2dfd09e 5 EDBM_edge_find_nearest_ex editmesh_select.c 653 0x2b7f458 6 gizmo_preselect_edgering_test_select view3d_gizmo_preselect_type.c 308 0x2df8425 7 gizmo_find_intersected_3d wm_gizmo_map.c 642 0x2405cdf 8 wm_gizmomap_highlight_find wm_gizmo_map.c 754 0x2406142 9 wm_handlers_do_intern wm_event_system.c 2793 0x23ce408 10 wm_handlers_do wm_event_system.c 2945 0x23cec23 11 wm_event_do_handlers wm_event_system.c 3397 0x23d00cd 12 WM_main wm.c 417 0x23c397b 13 main creator.c 500 0x1d83286 ``` will check a little more...
Sergey Sharybin was assigned by Philipp Oeser 2019-07-31 10:46:33 +02:00
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

Since this is also fixed by D5343, will assign to @Sergey so he can close this along with the other reports when landing D5343...

Since this is also fixed by [D5343](https://archive.blender.org/developer/D5343), will assign to @Sergey so he can close this along with the other reports when landing [D5343](https://archive.blender.org/developer/D5343)...

Just checked if Bug is still open with nightly build (blender-2.81.0-git.af4dcc6073fa-windows64).

Blender ist still crashing after a few attempts ... so it is NOT fixed yet by D5343

Just checked if Bug is still open with nightly build (blender-2.81.0-git.af4dcc6073fa-windows64). Blender ist still crashing after a few attempts ... so it is NOT fixed yet by [D5343](https://archive.blender.org/developer/D5343)
Member

Well, D5343 has not landed yet [is still in review... but I applied the patch and tested...it seems to fix it :) ]

Well, [D5343](https://archive.blender.org/developer/D5343) has not landed yet [is still in review... but I applied the patch and tested...it seems to fix it :) ]

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @atarigsyah

Added subscriber: @atarigsyah
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
7 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#67902
No description provided.