System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00
Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: rB211b6c29f771
Worked: None
Short description of error
In text editor, the below code work fines :-
override = {'window': window, 'screen': screen, 'area': area}
bpy.ops.screen.screen_full_area(override)
#bpy.ops.screen.screen_full_area(override)However, if I uncomment the line, Blender will crash.
Exact steps for others to reproduce the error
Try to run this script :-
import os.path
import bpy
print("=========BEGIN ====")
str_contextName='VIEW_3D'
bool_found = False
for window in bpy.context.window_manager.windows:
screen = window.screen
for area in screen.areas:
if area.type == str_contextName:
print(" ==> found context ")
bpy.context.window.scene = bpy.context.scene
override = {'window': window, 'screen': screen, 'area': area}
bpy.ops.screen.screen_full_area(override)
bpy.ops.screen.screen_full_area(override) #: try to uncomment = crash
#^ will get "exception_access_violation" when exit this XXX.py
bool_found=True
break
print("=========END====")