Title: CTRL-Z from edit into sculpt mode causes crash if mesh has shape-keys #80301

Open
opened 2020-09-01 02:26:33 +02:00 by Roman Aichele · 7 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 980 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-31 03:47, hash: 6879798202
Worked: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: 77d23b0bd7

Short description of error
Blender crashes when you CTRL-Z back to sculpt mode when the mesh has shape-keys. This bug happens in 2.83.0 and up, only in the Windows builds. Tested in Linux Mint 19.3 and had no crash there.

Exact steps for others to reproduce the error
Add basis shape-key on any mesh -> change to sculpt mode -> Change mode to edit -> Undo back -> This causes a crash when it undoes back to sculpt mode.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 980 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-31 03:47, hash: `6879798202` Worked: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: `77d23b0bd7` **Short description of error** Blender crashes when you CTRL-Z back to sculpt mode when the mesh has shape-keys. This bug happens in 2.83.0 and up, only in the Windows builds. Tested in Linux Mint 19.3 and had no crash there. **Exact steps for others to reproduce the error** Add basis shape-key on any mesh -> change to sculpt mode -> Change mode to edit -> Undo back -> This causes a crash when it undoes back to sculpt mode.
Author

Added subscriber: @RomanA

Added subscriber: @RomanA

Added subscriber: @Josephbburg

Added subscriber: @Josephbburg

I've also tested this on Windows 10 and Kubuntu 20.04. No crash in Kubuntu, crash in Windows 10 in LTS and in 2.91. Didn't test 2.90

I've also tested this on Windows 10 and Kubuntu 20.04. No crash in Kubuntu, crash in Windows 10 in LTS and in 2.91. Didn't test 2.90

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

Changed status from 'Needs Triage' to: 'Confirmed'
read access violation.
ret was 0x1C5E7B37FF8.
>	blender.exe!BLI_mempool_iterstep(BLI_mempool_iter * iter) Line 681	C

 	blender.exe!key_block_get_data(Key * key, KeyBlock * actkb, KeyBlock * kb, unsigned char * * freedata) Line 582	C
 	blender.exe!cp_key(const int start, int end, const int tot, unsigned char * poin, Key * key, KeyBlock * actkb, KeyBlock * kb, float * weights, const int mode) Line 670	C
 	blender.exe!key_evaluate_relative(const int start, int end, const int tot, unsigned char * basispoin, Key * key, KeyBlock * actkb, float * * per_keyblock_weights, const int mode) Line 847	C
 	blender.exe!do_mesh_key(Object * ob, Key * key, unsigned char * out, const int tot) Line 1341	C
 	blender.exe!BKE_key_evaluate_object_ex(Object * ob, int * r_totelem, float * arr, unsigned __int64 arr_size) Line 1533	C
 	blender.exe!deformVerts(ModifierData * UNUSED_md, const ModifierEvalContext * ctx, Mesh * UNUSED_mesh, float- [x] * vertexCos, int numVerts) Line 49	C
 	blender.exe!mesh_calc_modifiers(Depsgraph * depsgraph, Scene * scene, Object * ob, int useDeform, const bool need_mapping, const CustomData_MeshMasks * dataMask, const int index, const bool use_cache, const bool allow_shared_mesh, Mesh * * r_deform, Mesh * * r_final) Line 991	C
 	blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1802	C
 	blender.exe!mesh_get_eval_final(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask) Line 1953	C
 	blender.exe!BKE_sculpt_update_object_for_edit(Depsgraph * depsgraph, Object * ob_orig, bool need_pmap, bool need_mask, bool need_colors) Line 1722	C
 	blender.exe!sculpt_init_session(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 8052	C
 	blender.exe!ED_object_sculptmode_enter_ex(Main * bmain, Depsgraph * depsgraph, Scene * scene, Object * ob, const bool force_dyntopo, ReportList * reports) Line 8110	C
 	blender.exe!sculpt_undosys_step_decode(bContext * C, Main * bmain, UndoStep * us_p, int dir, bool UNUSED_is_final) Line 1502	C
 	blender.exe!undosys_step_decode(bContext * C, Main * bmain, UndoStack * ustack, UndoStep * us, int dir, bool is_final) Line 214	C
 	blender.exe!BKE_undosys_step_undo_with_data_ex(UndoStack * ustack, bContext * C, UndoStep * us, bool use_skip) Line 712	C
 	blender.exe!ed_undo_step_impl(bContext * C, int step, const unsigned char * undoname, int undo_index, ReportList * reports) Line 208	C
 	blender.exe!ed_undo_step_direction(bContext * C, int step, ReportList * reports) Line 272	C
 	blender.exe!ed_undo_exec(bContext * C, wmOperator * op) Line 407	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 1312	C
 	blender.exe!wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2131	C
 	blender.exe!wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const bool do_debug_handler) Line 2441	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2738	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2868	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3401	C
 	blender.exe!WM_main(bContext * C) Line 485	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 531	C
 	[External Code]	

``` read access violation. ret was 0x1C5E7B37FF8. ``` ```lines > blender.exe!BLI_mempool_iterstep(BLI_mempool_iter * iter) Line 681 C blender.exe!key_block_get_data(Key * key, KeyBlock * actkb, KeyBlock * kb, unsigned char * * freedata) Line 582 C blender.exe!cp_key(const int start, int end, const int tot, unsigned char * poin, Key * key, KeyBlock * actkb, KeyBlock * kb, float * weights, const int mode) Line 670 C blender.exe!key_evaluate_relative(const int start, int end, const int tot, unsigned char * basispoin, Key * key, KeyBlock * actkb, float * * per_keyblock_weights, const int mode) Line 847 C blender.exe!do_mesh_key(Object * ob, Key * key, unsigned char * out, const int tot) Line 1341 C blender.exe!BKE_key_evaluate_object_ex(Object * ob, int * r_totelem, float * arr, unsigned __int64 arr_size) Line 1533 C blender.exe!deformVerts(ModifierData * UNUSED_md, const ModifierEvalContext * ctx, Mesh * UNUSED_mesh, float- [x] * vertexCos, int numVerts) Line 49 C blender.exe!mesh_calc_modifiers(Depsgraph * depsgraph, Scene * scene, Object * ob, int useDeform, const bool need_mapping, const CustomData_MeshMasks * dataMask, const int index, const bool use_cache, const bool allow_shared_mesh, Mesh * * r_deform, Mesh * * r_final) Line 991 C blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1802 C blender.exe!mesh_get_eval_final(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask) Line 1953 C blender.exe!BKE_sculpt_update_object_for_edit(Depsgraph * depsgraph, Object * ob_orig, bool need_pmap, bool need_mask, bool need_colors) Line 1722 C blender.exe!sculpt_init_session(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 8052 C blender.exe!ED_object_sculptmode_enter_ex(Main * bmain, Depsgraph * depsgraph, Scene * scene, Object * ob, const bool force_dyntopo, ReportList * reports) Line 8110 C blender.exe!sculpt_undosys_step_decode(bContext * C, Main * bmain, UndoStep * us_p, int dir, bool UNUSED_is_final) Line 1502 C blender.exe!undosys_step_decode(bContext * C, Main * bmain, UndoStack * ustack, UndoStep * us, int dir, bool is_final) Line 214 C blender.exe!BKE_undosys_step_undo_with_data_ex(UndoStack * ustack, bContext * C, UndoStep * us, bool use_skip) Line 712 C blender.exe!ed_undo_step_impl(bContext * C, int step, const unsigned char * undoname, int undo_index, ReportList * reports) Line 208 C blender.exe!ed_undo_step_direction(bContext * C, int step, ReportList * reports) Line 272 C blender.exe!ed_undo_exec(bContext * C, wmOperator * op) Line 407 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 1312 C blender.exe!wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2131 C blender.exe!wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const bool do_debug_handler) Line 2441 C blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2738 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2868 C blender.exe!wm_event_do_handlers(bContext * C) Line 3401 C blender.exe!WM_main(bContext * C) Line 485 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 531 C [External Code] ```
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:20 +01:00

I'm also having crashes after pressing Ctrl+Z, and had the same in previous versions of Blender on a weaker computer and Windows 10.
The last time it happened was when I was playing with shaders and wasn't saving intentionally for some time, then I rapidly pressed "undo" several times and it crashed.

Currently:

Blender 3.6.2
Windows 11
Motherboard - Asus PRIME Z790-P WIFI
Processor - 3th Gen Intel(R) Core(TM) i7-13700KF 3.40 GHz
GPU - Nvidia GeForce RTX 4080
64 RAM

I'm also having crashes after pressing Ctrl+Z, and had the same in previous versions of Blender on a weaker computer and Windows 10. The last time it happened was when I was playing with shaders and wasn't saving intentionally for some time, then I rapidly pressed "undo" several times and it crashed. Currently: Blender 3.6.2 Windows 11 Motherboard - Asus PRIME Z790-P WIFI Processor - 3th Gen Intel(R) Core(TM) i7-13700KF 3.40 GHz GPU - Nvidia GeForce RTX 4080 64 RAM
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#80301
No description provided.