**Environment: **Windows 10, Blender 5.2.3 LTS, Zen UV 5.4.1, and Physical Starlight and Atmosphere (PSA) 1.9.6. Reproduced with both Vulkan and OpenGL in Solid viewport mode.
Steps to reproduce
1. Enable Zen UV and PSA in Blender’s default scene.
2. Add the PSA atmosphere.
3. In the PSA Sun panel, change Rotation → Vertical from approximately −87.035° to −86°.
Expected behavior: The sun and atmosphere update, and Blender remains responsive.
Actual behavior: Blender exits with EXCEPTION_STACK_OVERFLOW immediately after the value changes. Dragging the field, typing a single value, and setting the sun’s X rotation through Python all reproduced the crash. PSA alone and Zen UV with a standard Blender Sun lamp both passed the same rotation test.
Cause and proposed fix
In ZenUV/ui/gizmo_draw.py, the zenuv_depsgraph_ui_update callback calls bpy.context.evaluated_depsgraph_get() from inside a depsgraph_update_post handler. When PSA updates the sun and atmosphere during the same dependency graph update, that call can trigger another evaluation. Instrumentation confirmed that the Zen UV callback was re-entered recursively before its previous invocation returned.
Use the dependency graph Blender passes to the handler. Change the callback signature to def zenuv_depsgraph_ui_update(scene, depsgraph):, remove the call to bpy.context.evaluated_depsgraph_get(), and use the supplied depsgraph for the existing depsgraph.updates loop.
I tested this change in an isolated copy of Zen UV with unmodified PSA 1.9.6. All six consecutive sun rotation changes completed successfully.