-
Notifications
You must be signed in to change notification settings - Fork 75
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
EXCEPTION_ACCESS_VIOLATION when selecting objects #212
Comments
how do you run the python code? Do you use |
Yes |
Just had a slightly different crash, with blender launching |
yup, thats #196 |
Heres a version of the part of the code that usually crashes blender for i in range(32):
# Parent the cameras to their respective group's null
bpy.ops.object.select_all(action='DESELECT')
bpy.data.objects[f'{str(i)}_camera1'].select_set(True)
bpy.data.objects[f'{str(i)}_camera2'].select_set(True)
bpy.data.objects[f'{str(i)}_camera3'].select_set(True)
bpy.data.objects[f'{str(i)}_null'].select_set(True)
bpy.context.view_layer.objects.active = bpy.data.objects[f'{str(i)}_null']
bpy.ops.object.parent_set(type='OBJECT', keep_transform=True) The objects referenced exist in the scene before this part of the code launches |
are you sure you do not need any depsgrah update between calls to
|
That completely solved the problem. Thanks! |
I am actually surprised it worked. Good for you. |
Seems to be still a problem. Its more related to whether or not I have a browser open in the background or not(My guess would be ram usage). But even then its sometimes successful |
When running it from the scripts editor inside blender it never crashed, even previously |
So most likely this is a problem with stability of current implementation of run script. |
I have been running into this (or a very similar) error for about 6 months, but I did not investigate it deeply. In my case, running my script from the native IDE did not cause any crashes, just like in @Wissotsky's situation. I've also had instances where running a script once works just fine, but a single subsequent run causes the issue, which I think points to a stability issue, as suggested. In other scripts the violation occurs only after several runs of the same script. Which is reminiscent of the for loop in this post causing issues. |
Same here, running script in blender is fine, but crash happened running in vscode. |
Script selects different groups of objects. seems to crash at a random interval.
Code to reproduce and Trace Blender 4.2.3
The text was updated successfully, but these errors were encountered: