Page MenuHome

Blender 2.8 Crashes when I click on undo and redo while working with image or image empty
Closed, ResolvedPublic

Description

System Information
Windows 10 Pro 64Bit
Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz, Intel® HD Graphics 4400 (Integrated)
8 GB RAM
Geforce nvidia 820m 2GB (Discrete GPU)

Blender Version
Broken: Blender 2.80.31 2c347ebbba9
Worked: (optional)

Short description of error
Blender Crashes When I click on undo and redo while working with image or image empty.

Exact steps for others to reproduce the error

  1. Opened Blender
  2. Added an Image from Add Menu, Add > Image or Add > Empty > Image
  3. Scaled the Image
  4. Then I clicked "Ctrl + Z = undo, Ctrl + Shift + Z = redo"
  5. Blender crashed

Here is the blend file.

Based on a (as simple as possible) attached .blend file with minimum amount of steps

Event Timeline

William Reynish (billreynish) triaged this task as Confirmed, Medium priority.

I can reproduce this crash consistently, yes.

Can confirm, getting

add_relation(Eval Order) - Could not find op_from (OperationKey(type: COPY_ON_WRITE, component name: '', operation code: COPY_ON_WRITE))
add_relation(Eval Order) - Failed, but op_to (OperationKey(type: COPY_ON_WRITE, component name: '', operation code: COPY_ON_WRITE)) was ok

looks like it's caused by rB33ac6c25b994, add_relation returns NULL, just checking for that survives (see P825)

backtrace when doing the redo steps provided:

1  DEG::DepsgraphRelationBuilder::build_copy_on_write_relations deg_builder_relations.cc 2496 0x2f09881 
2  DEG::DepsgraphRelationBuilder::build_copy_on_write_relations deg_builder_relations.cc 2342 0x2f09333 
3  DEG_graph_build_from_view_layer                              depsgraph_build.cc       259  0x2ee655c 
4  DEG_graph_relations_update                                   depsgraph_build.cc       320  0x2ee6763 
5  BKE_scene_graph_update_tagged                                scene.c                  1419 0x2b5f29e 
6  wm_event_do_depsgraph                                        wm_event_system.c        334  0x1c4941c 
7  wm_event_do_refresh_wm_and_depsgraph                         wm_event_system.c        359  0x1c49501

backtrace when opening provided file:

1   DEG::DepsgraphRelationBuilder::build_copy_on_write_relations deg_builder_relations.cc 2496 0x2f09881 
2   DEG::DepsgraphRelationBuilder::build_copy_on_write_relations deg_builder_relations.cc 2342 0x2f09333 
3   DEG_graph_build_from_view_layer                              depsgraph_build.cc       259  0x2ee655c 
4   DEG_graph_relations_update                                   depsgraph_build.cc       320  0x2ee6763 
5   BKE_scene_graph_update_tagged                                scene.c                  1419 0x2b5f29e 
6   wm_event_do_depsgraph                                        wm_event_system.c        334  0x1c4941c 
7   wm_file_read_post                                            wm_files.c               492  0x1c549b3 
8   WM_file_read                                                 wm_files.c               633  0x1c54d73 
9   wm_file_read_opwrap                                          wm_files.c               1821 0x1c5784c 
10  wm_open_mainfile_exec                                        wm_files.c               1881 0x1c57aad