Page MenuHome

Blender crashes when dragging objects from appended scene
Closed, ResolvedPublic

Description

Blender crashes when attempting to add objects from an appended scene when dragging from scene in outline to viewport.

System Info:
OS: Windows 10 Education
Graphics Card: NVIDIA GeForce GTX 1070

Blender Version
Blender 2.8 Hash: 80ffa73b3f87

Steps to reproduce:

  1. Reset to Factory Settings

  1. Load test1.blend

  1. Select Append... Then select test2.blend, then Scene, then select Scene


  1. Select Scene View in Outliner

  1. Expand Hierarchy to show objects in Scene.001

  1. With test1 scene as Active Scene, drag Sphere object into 3D Viewport.

Result: Blender crashes.


Event Timeline

Ryan (mrleemrlee) updated the task description. (Show Details)
Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.

When appending the scene I get the following assert in the debug build:
BLI_assert failed: blender/source/blender/blenlib/intern/BLI_ghash.c:466, ghash_insert_ex(), at '(gh->flag & GHASH_FLAG_ALLOW_DUPES) || (BLI_ghash_haskey(gh, key) == 0)'

Without that assert, I can reproduce the crash. Here is the bt:

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x00005555575f0a9a in object_add_duplicate_internal (bmain=0x7fff9f752408, scene=0x7fffd16de008, view_layer=0x7fffe9d23ac8, ob=0x7fff9f7e9008, dupflag=1599)
    at /home/zed/programmering/blender_master/blender/source/blender/editors/object/object_add.c:2243
2243			basen->local_view_bits = base->local_view_bits;
(gdb) bt
#0  0x00005555575f0a9a in object_add_duplicate_internal (bmain=0x7fff9f752408, scene=0x7fffd16de008, view_layer=0x7fffe9d23ac8, ob=0x7fff9f7e9008,
    dupflag=1599) at /home/zed/programmering/blender_master/blender/source/blender/editors/object/object_add.c:2243
#1  0x00005555575f20d5 in add_named_exec (C=0x7ffff0030288, op=0x7fff9e03b048)
    at /home/zed/programmering/blender_master/blender/source/blender/editors/object/object_add.c:2592
#2  0x00005555570ec4df in wm_operator_invoke (C=0x7ffff0030288, ot=0x7fffead0ab08, event=0x7fff9dcb0108, properties=0x7fffde6c6f08, reports=0x0,
    poll_only=false, use_last_properties=true) at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:1343
#3  0x00005555570ecce2 in wm_operator_call_internal (C=0x7ffff0030288, ot=0x7fffead0ab08, properties=0x7fffde6c6f08, reports=0x0, context=0, poll_only=false,
    event=0x7fff9dcb0108) at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:1576
#4  0x00005555570ef07f in wm_handlers_do_intern (C=0x7ffff0030288, event=0x7fff9dcb0108, handlers=0x7fff9e0615d8)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:2416
#5  0x00005555570ef860 in wm_handlers_do (C=0x7ffff0030288, event=0x7fff9dcb0108, handlers=0x7fff9e0615d8)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:2618
#6  0x00005555570f0f96 in wm_event_do_handlers (C=0x7ffff0030288)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:3093
#7  0x00005555570e5885 in WM_main (C=0x7ffff0030288) at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm.c:425
#8  0x00005555570e016e in main (argc=1, argv=0x7fffffffdd08) at /home/zed/programmering/blender_master/blender/source/creator/creator.c:520

Note that this has nothing to do with appending, from default blender start, add a new empty scene, and try to drag-and-drop cube from default scene in there from outliner also crashes. Dummy mistake actually.