unity3d-jp / AnimeToolbox

398 stars 18 forks source link

KeyNotFoundException for PatchPanelNode on Project Reopen #34

Closed ShiinaRinne closed 4 months ago

ShiinaRinne commented 6 months ago

Describe the bug When closing the project and reopening it, PatchPanelNode will cause an error

To Reproduce Steps to reproduce the behavior:

  1. Create a Graph file and add a PatchPanelNode
  2. Save the project and close it.
  3. Reopen the project. At this point, the KeyNotFoundException error is immediately triggered.

Expected behavior The PatchPanelNode should maintain its state across project sessions without causing a KeyNotFoundException.

Screenshots 45bce81e55d600ea5fc47c174c15aa5f

Unity (please complete the following information):

Additional context Deleting and recreating the PatchPanelNode resolves the issue temporarily, but the error reoccurs when the project is reopened. It appears the cause of the problem is that PatchPanelNode's initialization method InitInternalV is only called upon creation. so, when the project is reopened, the node lacks proper initialization, leading to the aforementioned error. image

Source Project VisualCompositor-PatchPanelBug.zip

sindharta-tanuwijaya commented 6 months ago

Thank you for the report. We'll look into it.

sindharta-tanuwijaya commented 4 months ago

This has been fixed in com.unity.visual-compositor@0.30.6-preview Would you please kindly check ?

ShiinaRinne commented 4 months ago

Thank you for your assistance in resolving this issue, it has now been fixed!