Zen Sets 3.0.2 causes recursive depsgraph updates and crashes when entering Edit Mode in Blender 5.1

村上乃司

Hi, I found a possible Blender 5.1 compatibility issue with Zen Sets 3.0.2.

In one specific large .blend file, entering Edit Mode causes Blender to freeze and sometimes crash. This happens in both Blender 5.1.0 and 5.1.2. Disabling Zen Sets completely prevents the problem. Other projects and new files are unaffected.

I cannot share the file because it contains commercial assets, but the selected mesh is small (228 vertices), so mesh size itself does not appear to be the cause.

The crash report repeatedly shows:


sets/init.py:622
zen_sets_depsgraph_update_post()

sets/edit_mesh_handlers.py:145
ctx.evaluated_depsgraph_get()


These calls repeat until:


RecursionError: maximum recursion depth exceeded
Fatal Python error: Segmentation fault


It looks like evaluated_depsgraph_get() may re-enter the Zen Sets depsgraph_update_post handler. Could you check whether this handler needs a re-entry guard?
I can provide the crash report and additional logs if needed.
Imported from Discord

AlexZhornyak

Hi, could you check with the only Zen Sets enabled? I would like to confirm that there is no race with some other addon
Imported from Discord

村上乃司

I checked this with a clean temporary Blender config and only Zen Sets enabled.

Result:
With only Zen Sets enabled, the issue did NOT reproduce. The file entered Edit Mode normally.

The crash/freeze happens in my normal addon environment with Zen Sets enabled. If I disable Zen Sets, the same file can enter Edit Mode normally.

So yes, there may be an interaction with another addon or with my normal Blender user configuration. However, the crash report still repeatedly points to Zen Sets here:

sets/init.py:622
zen_sets_depsgraph_update_post()

sets/edit_mesh_handlers.py:145
ctx.evaluated_depsgraph_get()

These repeat until RecursionError / segmentation fault.

(Please forgive me for using a translation app, as I am not very good at English.)
Imported from Discord

AlexZhornyak

Ok, then some addon do not use depsgraph_handler in Blender API properly. I would offer to enable addons one by one to understand who is the reason

This is our free tool to temporarily switch off all other addons and then enable them one by one

  1. Save your exsisting addons into a preset
  2. Disable all but Zen Sets
  3. Restart Blender
  4. Check
  5. Enable other addons 1 by 1
    Imported from Discord

村上乃司

Thank you.
I am currently juggling another project, so it may take some time to check this, but I will review it later.

I will get back to you with an update.
Imported from Discord

村上乃司

Sorry to trouble you again.

I previously purchased “Add-ons Presets” from SuperHive.
This is my first time using it; I wanted to record the activation status of my numerous add-ons, so I selected “Export To Json.” However, after the save dialog appeared, the system became extremely sluggish—to the point where I couldn’t even type in a file name.

I managed to save the file by pasting a pre-typed name from Notepad, but upon checking the resulting JSON file, it contained only “null,” indicating that the export had not succeeded.

I am using Blender version 5.1.2 on macOS 26.
I am using a Mac Studio M1 Ultra, so I do not believe the issue is due to insufficient specifications.
The add-on version is 2.0.0.0 (the latest version).
I have already tried uninstalling and reinstalling the add-on, as well as restarting Blender, but the issue persists.

Since I couldn’t find a specific channel for this, could you please provide support here?
Imported from Discord

AlexZhornyak

Which addon did you try to export?
Imported from Discord

村上乃司

I have a huge number of add-ons enabled, so I can’t even keep track of exactly which ones they are.
I would like to export a list of the currently enabled add-ons, as I want to revert everything to its original state after testing.
Imported from Discord

AlexZhornyak

after pressing “Export to Json”, did you see the dialog?

Look, “Export to Json” - exports the settings of 1 addon

It seems that you need an option to save the state of addons into a preset

the Enabled state

Imported from Discord

村上乃司

Ah, I see.
I had misunderstood the situation. My apologies.

So, I just need to add a preset to save the activation status!
Thank you for your support.
I believe I’ve successfully saved the current add-on activation status, so I’ll give it a test run.
Imported from Discord

AlexZhornyak

don’t worry, feel free to ask questions
Imported from Discord

村上乃司

Thank very much!

When I click “Disable All,” Blender freezes and crashes :smiling_face_with_tear:.
I’ve tried it several times, but it seems to freeze every time.

I plan to disable the add-ons manually for now, but I wanted to share this information just in case.
Imported from Discord

AlexZhornyak

Seems like some addon causes it, maybe it is present in a couple of places, or something like that
Imported from Discord

村上乃司

After clicking “Disable All” and experiencing a freeze, I restarted Blender to find that all add-ons had been disabled; however, it seems that all add-on settings—such as Pie Menu Editor presets and individual add-on keyboard shortcuts—have been reset to their defaults.
Imported from Discord

AlexZhornyak

Disable All does not touch any settings, just toggle Enable option
Imported from Discord

村上乃司

Throughout this process, the only actions I’ve taken are saving presets in “Addon Presets” and clicking the “Disable All” button.
Aside from that, I’ve only restarted Blender after it froze.
I haven’t performed any other operations, such as manually enabling or disabling add-ons.

Although I managed to restore the settings from Time Machine, it seems I might not be able to use “Addon Presets” in my current environment.
Imported from Discord