Crash adding a shape in a new collection while still being in edit mode in hidden collection #64008

Closed
opened 2019-04-30 10:34:17 +02:00 by Jakub · 6 comments

System Information
Operating system: Windows 10 N, 10.0.17763 Build 17763
Graphics card: Geforce GTX1060 OC

Blender Version
Broken: blender-2.80.0-git.546e20f5a2c0-windows64
Worked: (optional)

Short description of error
If you are in edit mode and you disable current collection (with eye icon) and then (while still being in edit mode activated in old collection) you try to add a new shape (shift + a) and change its properties (like iterations, position) with bottom left window blender will crash.

Exact steps for others to reproduce the error

  1. Enter edit mode (tab) - enters cube edit mode
  2. Hide active collection (with eye icon)
  3. Create new collection (without exiting edit mode)
  4. Select created collection
  5. Add new shape (shift + a) eg. Ico Sphere
  6. In window called Add Ico Sphere change any property
**System Information** Operating system: Windows 10 N, 10.0.17763 Build 17763 Graphics card: Geforce GTX1060 OC **Blender Version** Broken: blender-2.80.0-git.546e20f5a2c0-windows64 Worked: (optional) **Short description of error** If you are in edit mode and you disable current collection (with eye icon) and then (while still being in edit mode activated in old collection) you try to add a new shape (shift + a) and change its properties (like iterations, position) with bottom left window blender will crash. **Exact steps for others to reproduce the error** 1. Enter edit mode (tab) - enters cube edit mode 2. Hide active collection (with eye icon) 3. Create new collection (without exiting edit mode) 4. Select created collection 5. Add new shape (shift + a) eg. Ico Sphere 6. In window called Add Ico Sphere change any property
Author

Added subscriber: @jakubo

Added subscriber: @jakubo
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Confirmed, checking...

Confirmed, checking...
Campbell Barton was assigned by Philipp Oeser 2019-04-30 12:30:01 +02:00
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Member
  • in mesh_undosys_step_decode, MeshUndoStep->elems- [x].obedit_ref.ptr is invalid in this case, leading to crash later (CLOG_WARN without valid object name)...
  • in the corresponding mesh_undosys_step_encode, BKE_view_layer_array_from_objects_in_edit_mode_unique_data will return no objects

Since the whole thing seems to work fine and it is just crashing with CLOG_WARN the invalid object name, maybe we should just check for a valid object and warn something else instead?
(not doing the warning actually seems to work fine...)

1   __strlen_avx2                                                 0x7ffff0bd1a67 
2   vfprintf                                                      0x7ffff0ac3327 
3   vsnprintf                                                     0x7ffff0aeabc4 
4   clg_str_vappendf                   clog.c               189   0x1db0024      
5   CLG_logf                           clog.c               501   0x1db0aa6      
6   ED_undo_object_set_active_or_warn  ed_undo.c            670   0x2b09140      
7   mesh_undosys_step_decode           editmesh_undo.c      772   0x2b7cde9      
8   undosys_step_decode                undo_system.c        204   0x2b1cab6      
9   BKE_undosys_step_undo_with_data_ex undo_system.c        679   0x2b1e428      
10  BKE_undosys_step_undo_with_data    undo_system.c        701   0x2b1e596      
11  ed_undo_step                       ed_undo.c            170   0x2b07f0b      
12  ED_undo_pop_op                     ed_undo.c            272   0x2b08316      
13  ED_undo_operator_repeat            ed_undo.c            492   0x2b089bc      
14  ED_undo_operator_repeat_cb_evt     ed_undo.c            547   0x2b08bd1      
15  ui_apply_but_funcs_after           interface_handlers.c 816   0x2598999     

Since this is undo-related: @ideasman42 is this for you?

- in `mesh_undosys_step_decode`, `MeshUndoStep->elems- [x].obedit_ref.ptr` is invalid in this case, leading to crash later (CLOG_WARN without valid object name)... - in the corresponding `mesh_undosys_step_encode`, `BKE_view_layer_array_from_objects_in_edit_mode_unique_data` will return no objects Since the whole thing seems to work fine and it is just crashing with CLOG_WARN the invalid object name, maybe we should just check for a valid object and warn something else instead? (not doing the warning actually seems to work fine...) ``` 1 __strlen_avx2 0x7ffff0bd1a67 2 vfprintf 0x7ffff0ac3327 3 vsnprintf 0x7ffff0aeabc4 4 clg_str_vappendf clog.c 189 0x1db0024 5 CLG_logf clog.c 501 0x1db0aa6 6 ED_undo_object_set_active_or_warn ed_undo.c 670 0x2b09140 7 mesh_undosys_step_decode editmesh_undo.c 772 0x2b7cde9 8 undosys_step_decode undo_system.c 204 0x2b1cab6 9 BKE_undosys_step_undo_with_data_ex undo_system.c 679 0x2b1e428 10 BKE_undosys_step_undo_with_data undo_system.c 701 0x2b1e596 11 ed_undo_step ed_undo.c 170 0x2b07f0b 12 ED_undo_pop_op ed_undo.c 272 0x2b08316 13 ED_undo_operator_repeat ed_undo.c 492 0x2b089bc 14 ED_undo_operator_repeat_cb_evt ed_undo.c 547 0x2b08bd1 15 ui_apply_but_funcs_after interface_handlers.c 816 0x2598999 ``` Since this is undo-related: @ideasman42 is this for you?
Philipp Oeser changed title from 2.8 Adding a shape in a new collection while still being in edit mode in hidden collection to Crash adding a shape in a new collection while still being in edit mode in hidden collection 2019-04-30 12:30:32 +02:00

Closed as duplicate of #62450

Closed as duplicate of #62450
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#64008
No description provided.