Page MenuHome

Segfault when encountering exception with props dialog open.
Confirmed, NormalPublic

Description

System Information
Operating system: Linux
Graphics card: Intel

Blender Version
Broken: 2.92, 2.93.0

Short description of error
When an Exception is raised in the .invoke() method of an operator while a props dialog is open, Blender does a segfault:

Unhandled exception thrown: read access violation. op->type was nullptr.

>	blender.exe!ui_layout_operator_properties_only_booleans(const bContext * C, wmWindowManager * wm, wmOperator * op, int layout_flags) Line 2517	C
 	blender.exe!uiTemplateOperatorPropertyButs(const bContext * C, uiLayout * layout, wmOperator * op, eButLabelAlign label_align, short flag) Line 2560	C
 	blender.exe!wm_block_dialog_create(bContext * C, ARegion * region, void * userData) Line 1391	C
 	blender.exe!ui_popup_block_refresh(bContext * C, uiPopupBlockHandle * handle, ARegion * butregion, uiBut * but) Line 586	C
 	blender.exe!ui_block_region_refresh(const bContext * C, ARegion * region) Line 399	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 754	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 867	C
 	blender.exe!wm_draw_update(bContext * C) Line 1066	C
 	blender.exe!WM_main(bContext * C) Line 654	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 523	C

Exact steps for others to reproduce the error

  1. Open file
  2. Run script

Event Timeline

I kept running into another issue a while ago that was similar but with changing the Redo dialog instead, in between script updates and re-runs.

Unfortunately, I've since either trained myself or changed my project to avoid running into it, so I don't really know how to reproduce that one. But I wonder if it may be related, and I'll make another report if I figure out how to cause it.

I kept running into another issue a while ago that was similar but with changing the Redo dialog instead,

Separate report is preferable.

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Tue, Jun 8, 7:57 AM
Richard Antalik (ISS) updated the task description. (Show Details)