Page MenuHome

Combination of dialog + wm.open_mainfile causes crash
Closed, ResolvedPublic


The enclosed addon script pops up a trivial dialog, and when the “OK” button is clicked, it executes bpy.ops.wm.open_mainfile("EXEC_DEFAULT", filepath = to reopen the .blend file. For some reason, this causes a crash. If the dialog is taken out, there is no crash, and the .blend file is successfully reopened.

Steps to reproduce:

  1. Install this addon.
  2. Enable it.
  3. Load any Blender document. (This and previous step may be done in either order.)
  4. Select the item this addon appends to the “File” menu.
  5. Click the “OK” button in the dialog which pops up.
  6. Crash.