Page MenuHome

2.8 grease pencil crash when added to hidden collection
Closed, ResolvedPublic

Description

Operating system: Windows 10
Graphics card: GTX 1070

Blender Version
Broken: 2.8 2018-12-30 15:30, d96596de294e

Short description of error
If a collection that is marked as hidden is selected, and you add a grease pencil object to it using SHIFT + A > Grease pencil > [any option] Blender will crash.

Exact steps for others to reproduce the error

  1. Add new collection
  2. Disable viewport visibility in new collection
  3. With new collection selected, hit SHIFT + A > Grease Pencil > [select any option]
  4. Blender will crash

Details

Type
Bug

Event Timeline

Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.

Backtrace:

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x000055555757f98a in ED_gpencil_create_monkey (C=0x7ffff0c30288, mat=0x7fffffffd350)
    at /home/zed/programmering/blender_master/blender/source/blender/editors/gpencil/gpencil_add_monkey.c:544
544		bGPdata *gpd = (bGPdata *)ob->data;
(gdb) bt
#0  0x000055555757f98a in ED_gpencil_create_monkey (C=0x7ffff0c30288, mat=0x7fffffffd350)
    at /home/zed/programmering/blender_master/blender/source/blender/editors/gpencil/gpencil_add_monkey.c:544
#1  0x000055555751e852 in object_gpencil_add_exec (C=0x7ffff0c30288, op=0x7fffd3acb108)
    at /home/zed/programmering/blender_master/blender/source/blender/editors/object/object_add.c:1046
#2  0x0000555557021748 in wm_operator_invoke (C=0x7ffff0c30288, ot=0x7fffeb899808, event=0x0, properties=0x7fffffffd570, reports=0x0, poll_only=false,
    use_last_properties=true) at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:1337
#3  0x0000555557021de5 in wm_operator_call_internal (C=0x7ffff0c30288, ot=0x7fffeb899808, properties=0x7fffffffd570, reports=0x0, context=7, poll_only=false,
    event=0x0) at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:1534
#4  0x0000555557022008 in WM_operator_name_call_ptr (C=0x7ffff0c30288, ot=0x7fffeb899808, context=7, properties=0x7fffffffd570)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:1582
#5  0x000055555735a5aa in ui_apply_but_funcs_after (C=0x7ffff0c30288)
    at /home/zed/programmering/blender_master/blender/source/blender/editors/interface/interface_handlers.c:769
#6  0x0000555557373439 in ui_popup_handler (C=0x7ffff0c30288, event=0x7fffd3b19d08, userdata=0x7fffd3981608)
    at /home/zed/programmering/blender_master/blender/source/blender/editors/interface/interface_handlers.c:9885
#7  0x000055555701f4a9 in wm_handler_ui_call (C=0x7ffff0c30288, handler=0x7fffd3acb108, event=0x7fffd3b19d08, always_pass=0)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:573
#8  0x0000555557024073 in wm_handlers_do_intern (C=0x7ffff0c30288, event=0x7fffd3b19d08, handlers=0x7fffebab2320)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:2374
#9  0x0000555557024a3c in wm_handlers_do (C=0x7ffff0c30288, event=0x7fffd3b19d08, handlers=0x7fffebab2320)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:2607
#10 0x0000555557025df3 in wm_event_do_handlers (C=0x7ffff0c30288)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:2997
#11 0x000055555701ab69 in WM_main (C=0x7ffff0c30288) at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm.c:427
#12 0x00005555570154ce in main (argc=1, argv=0x7fffffffdd28) at /home/zed/programmering/blender_master/blender/source/creator/creator.c:521
Antonio Vazquez (antoniov) closed this task as Resolved.

Resolved with commit a30bdcc142f1

Thanks to @Habib Gahbiche (zazizizou) for the fix.