Page MenuHome

Blender crash
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.39

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-18 14:52, hash: rB38d4483c6a51
Worked: (optional)

Short description of error
Not so much an error but had a cylinder with 60 subdivisions with bevel and subdivision modifier and blender closed.

Exact steps for others to reproduce the error

  1. Create cylinder with 60 vertices going round it.
  2. Add bevel and subdivision modifier.
  3. Make sure that the subdivision is modifier is cranked up to that undoing will take a lot of time after applying the modifers
  4. Apply the modifers
  5. Hit undo quickly a few times and try to select something in the viewport while the viewport is frozen.
  6. Crash

Related Objects

Mentioned Here
P1050 T67454

Event Timeline

Sebastian Parborg (zeddb) lowered the priority of this task from Needs Triage by Developer to Needs Information from User.Jul 22 2019, 5:43 PM

So you can't reproduce this yourself again?

Not 100% however doing the same thing it crashed again seemed it did it when I was trying to undo some steps so I could delete and applied modifier. Maybe the subvision count was too high and blender and/or my pc couldn't handle it and crashed not sure if it's a bug of some kind or just one of those things pc's like to do.

Is there any crash log I can copy and paste?

I also had blender 2.8 rc2 crashed unexpectedly when I added a constraint to a bone. I recovered the session from auto-save and wasn't able to reproduce the issue afterward.

Can you please try the non RC build?

Can do, probably a stupid question but is the RC build not more stable than the latest beta build or is the beta build still be updated with bug fixes from the reports of the RC build?

Tried it in the latest Beta build (non RC) and same thing happened. Seems I can replicate it.

Can you provide the exact steps to make it crash. So for example:

  1. Add a cylinder with 60 edges
  2. Add a bevel modifer
  3. Add a subdivision modifier
  4. Change the subdivision in the modifer to 4
  5. Apply all modifers starting with bevel
  6. Crash

Sometimes seems to be when I try to undo. Sometimes if I press ctrl Z a few times it crashes especially after doing something like applying a modifier. Doesn't always happen though even when spamming ctrl Z which is when it usually crashes.

Ok, but can you tell me the exact steps?

  1. Add a cylinder with 60 edges
  2. Add a bevel modifier (weighted edges for the top and bottom edge of cylinder, 2 segments)
  3. Add a subdivision modifier, Change the subdivision in the modifier to 4
  4. Apply all modifiers starting with bevel
  5. Press ctrl Z repeatedly a few times and it crashes but doesn't seem to be all the time.

I might be to do with the undo operation as it's crashed when undoing other things too especially when I spam ctrl Z. It's as if it can't undo as quickly as I'm pressing ctrl Z.

I still can't reproduce this. Does this happen if you do a factory reset?

On what blender or my computer? I mean it could be an issue with an Addon maybe. Is there no crash log?

I think I can sort of reproduce something like that with consistency but the problem is the exact steps because it requires pressing Ctrl+Z quickly several times in a row, otherwise it just performs a normal Undo and not the crash.

  1. Add Cylinder with 80 Vertices, add Bevel and Subdivision Surface modifiers
  2. Switch to Sculpt Mode – to Edit Mode - to Sculpt Mode – to Edit Mode – to Object Mode
  3. Quickly press Ctrl+Z 4 times and click the left mouse button within 3D View. After a few seconds Blender will crash and give exception_access_violation error.
  4. If you do the same exact steps but wait for Blender to finish every Undo step it will work fine. It looks like something happens if you click on something while Undo steps are still in progress.
  5. The same trick is reproducible with the previous steps as well – add Cylinder with modifiers, apply them, quickly press Ctrl+Z four times and click your left mouse on a cylinder. It even gives the same exception_access_violation error as my example.

Aha, so clicking in the viewport is key to get it to crash?
I think I might be able to reproduce this.

I can reproduce the crash on Windows using those latest instructions on the current master branch.

Sebastian Parborg (zeddb) raised the priority of this task from Needs Information from User to Confirmed, Medium.

I can also reproduce on linux:

Assert:

BLI_assert failed: /home/zed/prog/blender/source/blender/depsgraph/intern/depsgraph_query.cc:159, DEG_get_evaluated_scene(), at 'scene_cow != __null && DEG::deg_copy_on_write_is_expanded(&scene_cow->id)'

If I ignore the assert I get this segfault.

Backtrace:

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x0000555557ecdb48 in BLI_findstring (listbase=0x55555ed74ec0 <R_engines>, id=0xadc <error: Cannot access memory at address 0xadc>, offset=16)
    at /home/zed/prog/blender/source/blender/blenlib/intern/listbase.c:649
649	    if (id[0] == id_iter[0] && STREQ(id, id_iter)) {
(gdb) bt
#0  0x0000555557ecdb48 in BLI_findstring (listbase=0x55555ed74ec0 <R_engines>, id=0xadc <error: Cannot access memory at address 0xadc>, offset=16)
    at /home/zed/prog/blender/source/blender/blenlib/intern/listbase.c:649
#1  0x0000555557ff8e30 in RE_engines_find (idname=0xadc <error: Cannot access memory at address 0xadc>)
    at /home/zed/prog/blender/source/blender/render/intern/source/external_engine.c:111
#2  0x0000555558c02e4c in ED_view3d_engine_type (scene=0x0, drawtype=3) at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_draw.c:1469
#3  0x00005555586a9548 in DRW_draw_select_loop (depsgraph=0x7fffcfbf53c8, ar=0x7fffe679dd88, v3d=0x7fffebbfe708, UNUSED_use_obedit_skip=false,
    draw_surface=true, UNUSED_use_nearest=true, rect=0x7fffffff35d0, select_pass_fn=0x555558c3807c <drw_select_loop_pass>,
    select_pass_user_data=0x7fffffff35f0, object_filter_fn=0x0, object_filter_user_data=0x0)
    at /home/zed/prog/blender/source/blender/draw/intern/draw_manager.c:2218
#4  0x0000555558c38bf8 in view3d_opengl_select (vc=0x7fffffff3ab0, buffer=0x7fffffff3b20, bufsize=10000, input=0x7fffffff3950,
    select_mode=VIEW3D_SELECT_PICK_NEAREST, select_filter=VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_view.c:1144
#5  0x0000555558c27840 in mixed_bones_object_selectbuffer (vc=0x7fffffff3ab0, buffer=0x7fffffff3b20, mval=0x7fffffffd7c0,
    select_filter=VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK, do_nearest=true) at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:1848
#6  0x0000555558c27cf1 in mixed_bones_object_selectbuffer_extended (vc=0x7fffffff3ab0, buffer=0x7fffffff3b20, mval=0x7fffffffd7c0,
    select_filter=VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK, use_cycle=true, enumerate=false, r_do_nearest=0x7fffffff3a12)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:1947
#7  0x0000555558c28aa8 in ed_object_select_pick (C=0x7fffeb891208, mval=0x7fffffffd7c0, extend=false, deselect=false, toggle=false, obcenter=false,
    enumerate=false, object=false) at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:2223
#8  0x0000555558c29c8b in view3d_select_exec (C=0x7fffeb891208, op=0x7fffd1543588)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:2580
#9  0x0000555558c29d9b in view3d_select_invoke (C=0x7fffeb891208, op=0x7fffd1543588, event=0x7fffd0512908)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:2610
#10 0x000055555822a4bd in wm_operator_invoke (C=0x7fffeb891208, ot=0x7fffe661b528, event=0x7fffd0512908, properties=0x7fffdc31bb68, reports=0x0,
    poll_only=false, use_last_properties=true) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1438
#11 0x000055555822c515 in wm_handler_operator_call (C=0x7fffeb891208, handlers=0x7fffe679ded0, handler_base=0x7fffe5682508, event=0x7fffd0512908,
    properties=0x7fffdc31bb68) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2275
#12 0x000055555822ce03 in wm_handlers_do_keymap_with_keymap_handler (C=0x7fffeb891208, event=0x7fffd0512908, handlers=0x7fffe679ded0,
    handler=0x7fffe5682508, keymap=0x7fffd263ad48, do_debug_handler=false)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2555
#13 0x000055555822d45c in wm_handlers_do_intern (C=0x7fffeb891208, event=0x7fffd0512908, handlers=0x7fffe679ded0)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2692
#14 0x000055555822e2f5 in wm_handlers_do (C=0x7fffeb891208, event=0x7fffd0512908, handlers=0x7fffe679ded0)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2945
#15 0x000055555822f8c9 in wm_event_do_handlers (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:3397
#16 0x0000555558222790 in WM_main (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm.c:417
#17 0x0000555557b7bb39 in main (argc=1, argv=0x7fffffffe018) at /home/zed/prog/blender/source/creator/creator.c:500

@Sergey Sharybin (sergey) I'm guessing that the depsgraph is in an invalid state when you try to select in the viewport while the undo system is doing its thing? (Feel free to reassign as usual)

@Sebastian Parborg (zeddb), you can't just disable asserts, they are there for a very good reason...
Do you have backtrace of assert itself handy?

Here you have the backtrace to the assert:

Thread 1 "blender" received signal SIGABRT, Aborted.
0x00007ffff3180f1b in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff3180f1b in raise () from /lib64/libc.so.6
#1  0x00007ffff316a535 in abort () from /lib64/libc.so.6
#2  0x0000555557f2b7fe in DEG_get_evaluated_scene (graph=0x7fffccb2cf08) at /home/zed/prog/blender/source/blender/depsgraph/intern/depsgraph_query.cc:159
#3  0x00005555586a958b in DRW_draw_select_loop (depsgraph=0x7fffccb2cf08, ar=0x7fffe679dd88, v3d=0x7fffebbfe708, UNUSED_use_obedit_skip=false,
    draw_surface=true, UNUSED_use_nearest=true, rect=0x7fffffff35d0, select_pass_fn=0x555558c380e8 <drw_select_loop_pass>,
    select_pass_user_data=0x7fffffff35f0, object_filter_fn=0x0, object_filter_user_data=0x0)
    at /home/zed/prog/blender/source/blender/draw/intern/draw_manager.c:2217
#4  0x0000555558c38c64 in view3d_opengl_select (vc=0x7fffffff3ab0, buffer=0x7fffffff3b20, bufsize=10000, input=0x7fffffff3950,
    select_mode=VIEW3D_SELECT_PICK_NEAREST, select_filter=VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_view.c:1144
#5  0x0000555558c278ac in mixed_bones_object_selectbuffer (vc=0x7fffffff3ab0, buffer=0x7fffffff3b20, mval=0x7fffffffd7c0,
    select_filter=VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK, do_nearest=true) at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:1848
#6  0x0000555558c27d5d in mixed_bones_object_selectbuffer_extended (vc=0x7fffffff3ab0, buffer=0x7fffffff3b20, mval=0x7fffffffd7c0,
    select_filter=VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK, use_cycle=true, enumerate=false, r_do_nearest=0x7fffffff3a12)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:1947
#7  0x0000555558c28b14 in ed_object_select_pick (C=0x7fffeb891208, mval=0x7fffffffd7c0, extend=false, deselect=false, toggle=false, obcenter=false,
    enumerate=false, object=false) at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:2223
#8  0x0000555558c29cf7 in view3d_select_exec (C=0x7fffeb891208, op=0x7fffd1933ac8)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:2580
#9  0x0000555558c29e07 in view3d_select_invoke (C=0x7fffeb891208, op=0x7fffd1933ac8, event=0x7fffd0add888)
    at /home/zed/prog/blender/source/blender/editors/space_view3d/view3d_select.c:2610
#10 0x000055555822a529 in wm_operator_invoke (C=0x7fffeb891208, ot=0x7fffe661b528, event=0x7fffd0add888, properties=0x7fffd267ab28, reports=0x0,
    poll_only=false, use_last_properties=true) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1438
#11 0x000055555822c581 in wm_handler_operator_call (C=0x7fffeb891208, handlers=0x7fffe679ded0, handler_base=0x7fffe5682508, event=0x7fffd0add888,
    properties=0x7fffd267ab28) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2275
#12 0x000055555822ce6f in wm_handlers_do_keymap_with_keymap_handler (C=0x7fffeb891208, event=0x7fffd0add888, handlers=0x7fffe679ded0,
    handler=0x7fffe5682508, keymap=0x7fffd2636b88, do_debug_handler=false)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2555
#13 0x000055555822d4c8 in wm_handlers_do_intern (C=0x7fffeb891208, event=0x7fffd0add888, handlers=0x7fffe679ded0)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2692
#14 0x000055555822e361 in wm_handlers_do (C=0x7fffeb891208, event=0x7fffd0add888, handlers=0x7fffe679ded0)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2945
#15 0x000055555822f935 in wm_event_do_handlers (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:3397
#16 0x00005555582227fc in WM_main (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm.c:417
#17 0x0000555557b7bb39 in main (argc=1, argv=0x7fffffffe018) at /home/zed/prog/blender/source/creator/creator.c:500

My guess here is that it is due to undo and select operators being handled in the same event loop iteration, so the selection does not receive proper dependency graph even though it is supposed to.

Unfortunately, me and Sebastian couldn't reproduce the crash on my computer yet. Here is a possible fix for the problem: P1050

@Sebastian Parborg (zeddb), can you test it on your computer?

@Sergey Sharybin (sergey) that patch seems to do the trick. I can't get it to crash anymore.