mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-04 23:37:21 +00:00
[PR #43] [MERGED] Fix ModelVBAR __del__ shutdown error (control is None) #81
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-aimdo#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-aimdo/pull/43
Author: @tvukovic-amd
Created: 4/29/2026
Status: ✅ Merged
Merged: 4/30/2026
Merged by: @rattus128
Base:
master← Head:fix/model-vbar-del-shutdown📝 Commits (1)
bcb97b6fix_vbar_del_attributeerror📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
comfy_aimdo/model_vbar.py(+4 -2)📄 Description
On interpreter shutdown, Python prints ignored exceptions from
ModelVBAR.__del__:Root cause
When Python exits, it clears module variables in an unpredictable order. The name control can already be
Nonewhen__del__runs. The old check usedcontrol.lib, which raises the error above because you cannot read.libonNone.Fix
getattr(control, "lib", None)and only callvbar_freeif that value is notNone.self._ptrwithgetattr(self, "_ptr", None)and only free if it is set.vbar_freeon that validated library object so teardown does not depend on a possibly cleared module-level lib alias.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.