gimp_display_delete(): possible delay before image deletion.
Gimp 2.10.24 linux mint.
There's a problem with (gimp-image-list). It sometimes returns deleted images. These images then trip up script-fu calls to (gimp-image-get-filename) or (gimp-image-get-parasite-list), resulting in a error.
I try and filter out badness with (gimp-image-is-valid), however it'll let them through.
Here's an example that'll work most of the time. Some of the time it'll fail.
Is there anything more I can do to filter out those rogue results? Is there anything obviously wrong with my tests?
(allImages (gimp-image-list))
(imageCount (car allImages))
(while (< i imageCount)
(set! currImg (vector-ref (cadr allImages) i))
;test valid image
(when (> (car (gimp-image-is-valid currImg)) 0)
(gimp-message (string-append " before findImageTagged currImg -> " (number->string currImg)))
(set! imgName (car (gimp-image-get-filename currImg)))
(set! strLength (string-length imgName))
(when(> strLength 0)
(gimp-message (string-append " findImageTagged name -> " imgName))
; find the parasites on the current image
(set! parametersImage (gimp-image-get-parasite-list currImg))