blender_vscode icon indicating copy to clipboard operation
blender_vscode copied to clipboard

Opening a blend file crashes Blender

Open RealTachyon opened this issue 1 month ago • 2 comments

Description

When trying to open a new Blender file, from within a running Blender instance, Blender crashes.

How to reproduce the error

  1. Write a new .py file with the content down below.
  2. Run the Blender: Start command
  3. Run the Blender: Run Script command while having the new .py file active
  4. Notice that Blender crashes, and the following message is printed to the console
Read blend: "<A VALID PATH TO A .BLEND FILE>"
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF611911637
Module  : blender.exe
Thread  : 0000a0fc
Writing: C:\Users\USER\AppData\Local\Temp\blender\debug_logs\File to load V1.crash.txt

The .py file's content (replace <A VALID PATH TO A .BLEND FILE> with your own path):

import bpy
BLEND_FILE_TO_LOAD_PATH = "<A VALID PATH TO A .BLEND FILE>"
bpy.ops.wm.open_mainfile(filepath=BLEND_FILE_TO_LOAD_PATH)

Here is the automatically generated crash log by Blender File to load V1.crash.txt

I have tested running the script in a normal Blender instance without using the VSCode addon. In that case, the opening of the file functions normally.

RealTachyon avatar Nov 17 '25 16:11 RealTachyon