Page MenuHome

Infinite scene reload on calling `bpy.ops.wm.open_mainfile` with `load_ui=False` from integrated python console
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Arch Linux
Graphics card: Intel(R) HD Graphics 4600 (HSW GT2)

Blender Version
Broken:

  • 2.82a Stable, 375c7dc4caf4, 2020-03-12
  • 2.83 Beta, c036ef136960, 2020-05-05
  • 2.90 Alpha, b0d6b0376324, 2020-05-05

Short description of error
When trying to open .blend file from python console using bpy.ops.wm.open_mainfile(filepath='/path/to/my/file.blend', load_ui=False), it freezes. From blender output in the terminal I can see that it reloads my file in the infinite loop:

Read blend: /path/to/my/file.blend
Read blend: /path/to/my/file.blend
Read blend: /path/to/my/file.blend
...

Exact steps for others to reproduce the error

  1. Open Python console in Blender
  2. Run (with correct filepath):
bpy.ops.wm.open_mainfile(filepath='/path/to/any/valid/file.blend', load_ui=False)