DiffusionToolkit icon indicating copy to clipboard operation
DiffusionToolkit copied to clipboard

[Crash] when adding or removing pictures from album --> Exception: An Item with the same key has already been added. Key:0

Open trunksn1 opened this issue 7 months ago • 3 comments

Describe the bug Sometimes - not always when I add to or also when I remove pictures from an album I get this error and DT crashes

**Version: 1.9

To Reproduce: it happens sometimes, not always. I don't know how to reproduce. It happens with pictures I have generated with Forge, but also with the one made with comfy. Usually I move many pictures at once.

Error Popup

trunksn1 avatar May 18 '25 11:05 trunksn1

Same issues; I have not had it when removing pictures from an album but otherwise identical symptoms to trunksn1.

delcarsdungeon avatar May 28 '25 09:05 delcarsdungeon

I am able to add pictures to Albums without issue when in the 'Search' view. However if I am in a folder in the folder view and add pictures to an Album, the app gives the same error, freezes and then crashes out. When I reopen the app, they are showing as added to the album. This happens whether I right click on the image and select an album, or drag the image to an album in the tree. Haven't tried removing anything. I am on V1.9.1

Edit: actually looks to have been reported here already: https://github.com/RupertAvery/DiffusionToolkit/issues/298

jonk999 avatar Jun 06 '25 05:06 jonk999

Hello, I tested the latest unpublished version and the issue seems to be fixed. You need to download the entire code from GitHub as a ZIP file, extract it into a folder, then click on publish.cmd. A new folder named Build will be created with the latest up-to-date version.

Light-x02 avatar Aug 23 '25 13:08 Light-x02