(2.83.6 Beta) Crash when switching to Edit Mode #80530

Closed
opened 2020-09-06 19:44:08 +02:00 by Yevgeny Makarov · 17 comments

System Information
Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 455 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15

Blender Version
Broken: version: 2.83.6 Beta
Worked: 2.83.5

Caused by 79945c8126

Short description of error
Crash when switching to Edit Mode,
or when switching workspace to Modeling, UV Editing.

**System Information** Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 455 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15 **Blender Version** Broken: version: 2.83.6 Beta Worked: 2.83.5 Caused by 79945c8126 **Short description of error** Crash when switching to Edit Mode, or when switching workspace to Modeling, UV Editing.
Author
Member

Added subscriber: @jenkm

Added subscriber: @jenkm

#80287 was marked as duplicate of this issue

#80287 was marked as duplicate of this issue

Added subscriber: @TakeshiFunahashi

Added subscriber: @TakeshiFunahashi

I can confirm same issue. with recent 2.83.6 build (As I reported) (LTS version not crash)
https://developer.blender.org/T80287

I supposed if it only happen with some Nvidia video cards, but it seems not.
I may close my report, if it is confirmed by developer, as duplicate.

If need to send movie which reploduce it, I already made, so ask me please. (but I think quite a few user easy reproduce this crash with current 2.83.6

I can confirm same issue. with recent 2.83.6 build (As I reported) (LTS version not crash) https://developer.blender.org/T80287 I supposed if it only happen with some Nvidia video cards, but it seems not. I may close my report, if it is confirmed by developer, as duplicate. If need to send movie which reploduce it, I already made, so ask me please. (but I think quite a few user easy reproduce this crash with current 2.83.6
Member

Added subscribers: @lichtwerk, @iss

Added subscribers: @lichtwerk, @iss
Member

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

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

Added subscribers: @Jeroen-Bakker, @ideasman42

Added subscribers: @Jeroen-Bakker, @ideasman42
Member

Can confirm in the 2.83 branch

me->runtime.edit_data is NULL

1  mesh_render_data_create               draw_cache_extract_mesh.c 155  0x3458324 
2  mesh_buffer_cache_create_requested    draw_cache_extract_mesh.c 4672 0x34788c9 
3  DRW_mesh_batch_cache_create_requested draw_cache_impl_mesh.c    1412 0x34300c9 
4  uvedit_get_batches                    uvedit_draw.c             210  0xaca7c89 
5  ED_uvedit_draw_main                   uvedit_draw.c             545  0xaca8de3 
6  image_main_region_draw                space_image.c             679  0x3d5734e 
7  ED_region_do_draw                     area.c                    538  0x3754401 
8  wm_draw_window_offscreen              wm_draw.c                 688  0x305abc3 
9  wm_draw_window                        wm_draw.c                 809  0x305b0bf 
10 wm_draw_update                        wm_draw.c                 1016 0x305b70d 
11 WM_main                               wm.c                      456  0x3058203 
12 main                                  creator.c                 528  0x2bfc3a0 

CC @ideasman42
CC @Jeroen-Bakker

Can confirm in the 2.83 branch `me->runtime.edit_data` is NULL ``` 1 mesh_render_data_create draw_cache_extract_mesh.c 155 0x3458324 2 mesh_buffer_cache_create_requested draw_cache_extract_mesh.c 4672 0x34788c9 3 DRW_mesh_batch_cache_create_requested draw_cache_impl_mesh.c 1412 0x34300c9 4 uvedit_get_batches uvedit_draw.c 210 0xaca7c89 5 ED_uvedit_draw_main uvedit_draw.c 545 0xaca8de3 6 image_main_region_draw space_image.c 679 0x3d5734e 7 ED_region_do_draw area.c 538 0x3754401 8 wm_draw_window_offscreen wm_draw.c 688 0x305abc3 9 wm_draw_window wm_draw.c 809 0x305b0bf 10 wm_draw_update wm_draw.c 1016 0x305b70d 11 WM_main wm.c 456 0x3058203 12 main creator.c 528 0x2bfc3a0 ``` CC @ideasman42 CC @Jeroen-Bakker
Yevgeny Makarov changed title from (2.83.6 Beta) Crash when switching to UV Editing workspace to (2.83.6 Beta) Crash when switching to Edit Mode 2020-09-07 15:56:44 +02:00
Author
Member

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

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

Oops. @lichtwerk please correct the status/priority.

Oops. @lichtwerk please correct the status/priority.
Member

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

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

Btw if I start scene without any mesh, then change layout as UV editing, (start from empty scene), crash not happen.
Then I load mesh , activate go to edit-mode to check UV blender crash.

Btw if I start scene without any mesh, then change layout as UV editing, (start from empty scene), crash not happen. Then I load mesh , activate go to edit-mode to check UV blender crash.

I haven't refreshed page before merging. I can reproduce crash in 2.91 following these steps:

  • New General template
  • Go to UV Editing workspace
  • Toggle to object mode
  • Save File
  • Open file
  • Go to Sculpting > UV Editing > Sculpting workspace
    Blender crashes
>	blender.exe!MEM_lockfree_freeN(void * vmemh) Line 131	C

 	blender.exe!CustomData_free(CustomData * data, int totelem) Line 2326	C
 	blender.exe!BM_mesh_bm_to_me(Main * bmain, BMesh * bm, Mesh * me, const BMeshToMeshParams * params) Line 610	C
 	blender.exe!EDBM_mesh_load_ex(Main * bmain, Object * ob, bool free_data) Line 379	C
 	blender.exe!ED_object_editmode_load_ex(Main * bmain, Object * obedit, const bool freedata) Line 524	C
 	blender.exe!ED_object_editmode_exit_ex(Main * bmain, Scene * scene, Object * obedit, int flag) Line 615	C
 	blender.exe!ED_object_editmode_exit(bContext * C, int flag) Line 661	C
 	blender.exe!editmode_toggle_exec(bContext * C, wmOperator * op) Line 800	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1313	C
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1514	C
 	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1563	C
 	blender.exe!WM_operator_name_call(bContext * C, const unsigned char * opstring, short context, PointerRNA * properties) Line 1568	C
 	blender.exe!ED_object_mode_compat_set(bContext * C, Object * ob, eObjectMode mode, ReportList * reports) Line 160	C
 	blender.exe!sculpt_mode_toggle_exec(bContext * C, wmOperator * op) Line 8261	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1313	C
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1514	C
 	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1563	C
 	blender.exe!ED_object_mode_set_ex(bContext * C, eObjectMode mode, bool use_undo, ReportList * reports) Line 211	C
 	blender.exe!ED_object_mode_set(bContext * C, eObjectMode mode) Line 227	C
 	blender.exe!ED_workspace_change(WorkSpace * workspace_new, bContext * C, wmWindowManager * wm, wmWindow * win) Line 159	C
 	blender.exe!WM_window_set_active_workspace(bContext * C, wmWindow * win, WorkSpace * workspace) Line 2406	C
 	blender.exe!wm_event_do_notifiers(bContext * C) Line 449	C
 	blender.exe!WM_main(bContext * C) Line 488	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 531	C
 	[External Code]	

First I got similar backtrace to what @lichtwerk posted. But it looks that it is quite random. So I am not quite sure if it's same issue as reported here or if it is even same issue as reported in #80287.

I haven't refreshed page before merging. I can reproduce crash in 2.91 following these steps: - New General template - Go to UV Editing workspace - Toggle to object mode - Save File - Open file - Go to Sculpting > UV Editing > Sculpting workspace Blender crashes ``` > blender.exe!MEM_lockfree_freeN(void * vmemh) Line 131 C blender.exe!CustomData_free(CustomData * data, int totelem) Line 2326 C blender.exe!BM_mesh_bm_to_me(Main * bmain, BMesh * bm, Mesh * me, const BMeshToMeshParams * params) Line 610 C blender.exe!EDBM_mesh_load_ex(Main * bmain, Object * ob, bool free_data) Line 379 C blender.exe!ED_object_editmode_load_ex(Main * bmain, Object * obedit, const bool freedata) Line 524 C blender.exe!ED_object_editmode_exit_ex(Main * bmain, Scene * scene, Object * obedit, int flag) Line 615 C blender.exe!ED_object_editmode_exit(bContext * C, int flag) Line 661 C blender.exe!editmode_toggle_exec(bContext * C, wmOperator * op) Line 800 C blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1313 C blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1514 C blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1563 C blender.exe!WM_operator_name_call(bContext * C, const unsigned char * opstring, short context, PointerRNA * properties) Line 1568 C blender.exe!ED_object_mode_compat_set(bContext * C, Object * ob, eObjectMode mode, ReportList * reports) Line 160 C blender.exe!sculpt_mode_toggle_exec(bContext * C, wmOperator * op) Line 8261 C blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1313 C blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1514 C blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1563 C blender.exe!ED_object_mode_set_ex(bContext * C, eObjectMode mode, bool use_undo, ReportList * reports) Line 211 C blender.exe!ED_object_mode_set(bContext * C, eObjectMode mode) Line 227 C blender.exe!ED_workspace_change(WorkSpace * workspace_new, bContext * C, wmWindowManager * wm, wmWindow * win) Line 159 C blender.exe!WM_window_set_active_workspace(bContext * C, wmWindow * win, WorkSpace * workspace) Line 2406 C blender.exe!wm_event_do_notifiers(bContext * C) Line 449 C blender.exe!WM_main(bContext * C) Line 488 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 531 C [External Code] ``` First I got similar backtrace to what @lichtwerk posted. But it looks that it is quite random. So I am not quite sure if it's same issue as reported here or if it is even same issue as reported in #80287.
Campbell Barton was assigned by Dalai Felinto 2020-09-08 11:46:55 +02:00
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58

There was a mistake applying the fix to 2.83-LTS as this bug doesn't exist in master, see 79945c8126 for detail (fix attached).


I ran into some bugs in master relating to switching workspaces that look closer to the backtrace from @iss, although they don't involve edit-mode, so I'll open a new report for that.

There was a mistake applying the fix to `2.83-LTS` as this bug doesn't exist in master, see 79945c8126 for detail (fix attached). ----- I ran into some bugs in master relating to switching workspaces that look closer to the backtrace from @iss, although they don't involve edit-mode, so I'll open a new report for that.

This issue was referenced by 1f58b0bbf7

This issue was referenced by 1f58b0bbf7e822f49a13bf26bd01c8df396a9e66
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
8 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#80530
No description provided.