Bug in 8bf plugin support (and crash)
Posted: Thu Apr 23, 2009 3:10 am
Hello
I've found that the 8bf plugin support don't take into account the valid image modes of each plugin.
XNView call the plugin even if the image mode is not accepted by the plugin.
Itest that with my own plugins (Ximagic Denoiser & Quantizer) with Harry's filters and with Flaming Pear Tachyon.
Fortunately the imageMode which xnview report to the plugin is OK (in filterRecord) and I can put a guard using it and avoid the problem.
The last version of my plugins show a message if the image mode is grayscale and avoid crashing.
But if someone try to use Harry's filters or Tachyon, with a grayscale image, xnview crash.
I suspect guarding against this problem is not usual, and if so there are a lot of plugins that could crash xnview used with grayscale images.
In Phostoshop, GIMP+PSPI and PhotoPaint the plugins which don't accept the image mode are disabled.
In IrfanView, grayscale and even RGB indexed images are send to the plugin as RGB color, which is not correct but avoid crashes.
Regards
Blas Rodriguez Somoza
I've found that the 8bf plugin support don't take into account the valid image modes of each plugin.
XNView call the plugin even if the image mode is not accepted by the plugin.
Itest that with my own plugins (Ximagic Denoiser & Quantizer) with Harry's filters and with Flaming Pear Tachyon.
Fortunately the imageMode which xnview report to the plugin is OK (in filterRecord) and I can put a guard using it and avoid the problem.
The last version of my plugins show a message if the image mode is grayscale and avoid crashing.
But if someone try to use Harry's filters or Tachyon, with a grayscale image, xnview crash.
I suspect guarding against this problem is not usual, and if so there are a lot of plugins that could crash xnview used with grayscale images.
In Phostoshop, GIMP+PSPI and PhotoPaint the plugins which don't accept the image mode are disabled.
In IrfanView, grayscale and even RGB indexed images are send to the plugin as RGB color, which is not correct but avoid crashes.
Regards
Blas Rodriguez Somoza



