Page MenuHome

Crash from undoing the copy-pasting of multiple data blocks
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows 10

Blender Version
Broken: 2.83 e5ace51295b9; 2.90 eaf7d36d66e5; 2.90 f9d0f59bed4d
Worked: Unknown

Reproduction

  1. New default file
  2. Copy & paste Camera and Cube in Outliner
  3. Ctrl-Z -> crash

Event Timeline

xing (xing) renamed this task from Crash from undo after pasting 2+ data blocks to Crash from undoing the copy-pasting of multiple data blocks.May 16 2020, 11:14 AM
xing (xing) created this task.
xing (xing) updated the task description. (Show Details)
xing (xing) added a comment.EditedMay 16 2020, 11:17 AM

Does not crash after toggling on the System Console. Does not crash after toggling the console back off.

xing (xing) updated the task description. (Show Details)May 16 2020, 12:04 PM

I can confirm the crash here. Note that this does NOT happen if using the old, legacy, undo system.

base->object is nullptr

blender.exe!BKE_scene_object_base_flag_sync_from_base(Base * base) Line 1606	C
blender.exe!BKE_scene_set_background(Main * bmain, Scene * scene) Line 786	C
blender.exe!setup_app_data(bContext * C, BlendFileData * bfd, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 384	C
blender.exe!setup_app_blend_file_data(bContext * C, BlendFileData * bfd, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 414	C
blender.exe!BKE_blendfile_read_from_memfile(bContext * C, MemFile * memfile, const BlendFileReadParams * params, ReportList * reports) Line 510	C
blender.exe!BKE_memfile_undo_decode(MemFileUndoData * mfu, const int undo_direction, const bool use_old_bmain_data, bContext * C) Line 87	C
blender.exe!memfile_undosys_step_decode(bContext * C, Main * bmain, UndoStep * us_p, int undo_direction, bool UNUSED_is_final) Line 192	C
blender.exe!undosys_step_decode(bContext * C, Main * bmain, UndoStack * ustack, UndoStep * us, int dir, bool is_final) Line 211	C
blender.exe!BKE_undosys_step_undo_with_data_ex(UndoStack * ustack, bContext * C, UndoStep * us, bool use_skip) Line 698	C
blender.exe!BKE_undosys_step_undo_with_data(UndoStack * ustack, bContext * C, UndoStep * us) Line 726	C
blender.exe!BKE_undosys_step_undo(UndoStack * ustack, bContext * C) Line 731	C
blender.exe!ed_undo_step_impl(bContext * C, int step, const unsigned char * undoname, int undo_index, ReportList * reports) Line 200	C
blender.exe!ed_undo_step_direction(bContext * C, int step, ReportList * reports) Line 264	C
blender.exe!ed_undo_exec(bContext * C, wmOperator * op) Line 399	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 1282	C
blender.exe!wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2102	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 2412	C
blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2707	C
blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2834	C
blender.exe!wm_event_do_handlers(bContext * C) Line 3356	C
blender.exe!WM_main(bContext * C) Line 453	C
Ankit Meel (ankitm) changed the task status from Needs Triage to Confirmed.May 17 2020, 11:51 AM

Doesn't happen if cmd + C, cmd + V is done in viewport. Specific to outliner.

Campbell Barton (campbellbarton) changed the subtype of this task from "Report" to "Bug".May 18 2020, 11:02 AM
Bastien Montagne (mont29) triaged this task as High priority.
Bastien Montagne (mont29) moved this task from Backlog to Bugs on the Pipeline, Assets & I/O board.