Page MenuHome

Display Mode > New Window is crashing
Closed, ResolvedPublicKNOWN ISSUE


System Information
Operating system: Linux-4.15.0-52-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.26

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-06-29 14:01, hash: rBf566212aa237

Description of issue
I've been experiencing this problem from months now. What really draws my attention is that it continues to happen in recent builds, as it seems like such a basic and common feature.

  • From the Render Menu, set the Display Mode to New Window
  • Start a Render with F12

_ The current layout in use is completely broken, staying in the Image Editor with a blank canvas showing the grid. The actual image is rendered and stored in the 'Render Result' slot, but is not set as the current image in use.
_ The new window is actually created, but totally blank, with no user interface and no rendered image.
_ Even worse, if you launch the render manually from the User Interface, it makes Blender to crash. Instead of pressing F12, just go to Render > Render Image: It crashes.

Before Blender crashes with a segmentation fault, this error occurs:

internal error: modal gizmo-map handler has invalid area

And when Blender closes it generates the log:

Blender 2.80 (sub 74), Commit date: 2019-06-29 14:01, Hash f566212aa237
bpy.context.scene.render.display_mode = 'WINDOW' # Property
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(BLI_system_backtrace+0x1d) [0x135ebed]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender() [0x1147e79]
/lib/x86_64-linux-gnu/ [0x7efc055a8f20]
/lib/x86_64-linux-gnu/ [0x7efc0561b646]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(PyUnicode_FromFormatV+0x5ba) [0x17db96a]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(PyErr_FormatV+0x1d) [0x180a9cd]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(PyErr_Format+0x87) [0x1809ec7]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender() [0x13d3eb6]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender() [0x13d89a0]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(PyObject_SetAttr+0x4f) [0x17874df]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(_PyEval_EvalFrameDefault+0x4533) [0x113f713]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(_PyEval_EvalCodeWithName+0xae3) [0x17f8483]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(_PyFunction_FastCallDict+0xb7) [0x1743a57]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender() [0x13db2be]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender() [0x14e77e7]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(ED_region_header_layout+0x145) [0x2d3d935]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(wm_draw_update+0x34d) [0x150bc4d]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(WM_main+0x30) [0x1509530]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender(main+0x2fe) [0x10b56be]
/lib/x86_64-linux-gnu/ [0x7efc0558bb97]
./blender-2.80-f566212aa237-linux-glibc217-x86_64/blender() [0x114479c]

Event Timeline

yain vieyra (chaos) updated the task description. (Show Details)
Brecht Van Lommel (brecht) lowered the priority of this task from 90 to 30.Jun 30 2019, 2:05 PM

Does this happen with factory settings, or is there something specific in your preferences or you startup file affecting this?

You're right. It seems that something was corrupt somehow. By returning all to factory settings it works normally.

I investigated a bit further and discovered that this happens when the operator of RENDER_OT_render receives a copy of the current context as an override.
Like this:

bpy.ops.render.render(bpy.context.copy(), "INVOKE_DEFAULT")

Then, all above symptoms replicate. It only occurs when the display mode is in New Window. With all other display modes, passing the override to the operator works just fine.

Brecht Van Lommel (brecht) raised the priority of this task from 30 to 90.Jul 1 2019, 12:02 PM
Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.Jul 1 2019, 12:24 PM

I can confirm that the UI gets into a weird state when running:

bpy.ops.render.render(bpy.context.copy(), "INVOKE_DEFAULT")

I also get a crash if I close the empty render window that pops up:

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x000055555825d764 in ghost_event_proc (evt=0x7fffd04fef40, C_void_ptr=0x7fffeb891208)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_window.c:1395
1395	            BKE_icon_changed(screen->id.icon_id);
(gdb) bt
#0  0x000055555825d764 in ghost_event_proc (evt=0x7fffd04fef40, C_void_ptr=0x7fffeb891208)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_window.c:1395
#1  0x0000555559025304 in GHOST_CallbackEventConsumer::processEvent (this=0x7fffeb7ffec0, event=0x7fffd04fef40)
    at /home/zed/prog/blender/intern/ghost/intern/GHOST_CallbackEventConsumer.cpp:41
#2  0x000055555903ed43 in GHOST_EventManager::dispatchEvent (this=0x7fffeb86b6c0, event=0x7fffd04fef40)
    at /home/zed/prog/blender/intern/ghost/intern/GHOST_EventManager.cpp:85
#3  0x000055555903edcc in GHOST_EventManager::dispatchEvent (this=0x7fffeb86b6c0) at /home/zed/prog/blender/intern/ghost/intern/GHOST_EventManager.cpp:95
#4  0x000055555903ee0f in GHOST_EventManager::dispatchEvents (this=0x7fffeb86b6c0) at /home/zed/prog/blender/intern/ghost/intern/GHOST_EventManager.cpp:101
#5  0x0000555559036246 in GHOST_System::dispatchEvents (this=0x7fffeb88b300) at /home/zed/prog/blender/intern/ghost/intern/GHOST_System.cpp:220
#6  0x0000555559023ec3 in GHOST_DispatchEvents (systemhandle=0x7fffeb88b300) at /home/zed/prog/blender/intern/ghost/intern/GHOST_C-api.cpp:219
#7  0x000055555825e00a in wm_window_process_events (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_window.c:1599
#8  0x0000555558220c27 in WM_main (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm.c:414
#9  0x0000555557b7a8a9 in main (argc=1, argv=0x7fffffffdff8) at /home/zed/prog/blender/source/creator/creator.c:500

@Brecht Van Lommel (brecht) who to assign this to?

Brecht Van Lommel (brecht) lowered the priority of this task from 50 to Low.Jul 3 2019, 4:18 PM

No one, this is low priority.

Brecht Van Lommel (brecht) changed the subtype of this task from "Report" to "Known Issue".Jan 27 2020, 11:46 AM

Can we fix this now? Blender is more stable and the new versions of my addons still have to deal with this unsolved issue.

I believe this seems to be related to this bug:
with an screencast add-on enabled, I get:

internal error: modal gizmo-map handler has invalid area
internal error: modal gizmo-map handler has invalid area

spam in the Linux console, it prints the line in a tight loop (~ 100% CPU load) until I stop the add-on.