Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender crashes - project load #56

Open
dajuric opened this issue Dec 20, 2019 · 1 comment
Open

Blender crashes - project load #56

dajuric opened this issue Dec 20, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@dajuric
Copy link

dajuric commented Dec 20, 2019

There is a script test.py which only calls: bpy.ops.wm.open_mainfile(filepath=os.path.abspath("./myProject.blend"))

The evaluated file path is OK. While the call is being executed the following error happens:

Got GET: {'type': 'ping'}
127.0.0.1 - - [20/Dec/2019 07:23:45] "GET / HTTP/1.1" 200 -
Got POST: {'type': 'script', 'path': 'd:\\My Workspace\\test.py'}
127.0.0.1 - - [20/Dec/2019 07:23:45] "POST / HTTP/1.1" 200 -
Read blend: d:\My Workspace\myProject.blend
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FFC8A91FB74
Module  : c:\Program Files\Blender Foundation\Blender 2.81\python37.dll
The terminal process terminated with exit code: 11

after which, the Blender process crashes and test.py becomes read-only.

If a script is executed using a shell like:
blender --background --python test.py
everything executes OK

@Mateusz-Grzelinski Mateusz-Grzelinski added the bug Something isn't working label Aug 11, 2024
@Mateusz-Grzelinski
Copy link
Collaborator

Mateusz-Grzelinski commented Sep 5, 2024

import bpy, os

bpy.ops.wm.open_mainfile(filepath=os.path.abspath(r"E:\BlenderProjects\myProject.blend"))

I saved new file with blender 4.1
Results of run script:

  • crashes in: 2.83, 2.93
  • works in 3.6.14 (with some warnings)
  • files saved with 4.1 can not be opened in 3.3

I saved another file with 2.9. fails to open with the same version.

Therefore it might be related to #182 or simply issue with Blender itself. The second is more likely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants