Mike Chaney's Tech Corner

Mike's Software => Qimage => Topic started by: mshand on June 14, 2009, 06:42:52 AM



Title: invalid embedded profile causes hang
Post by: mshand on June 14, 2009, 06:42:52 AM
Mike,

I was just looking at some old folders of scanned family photos which I have not opened in Qimage for perhaps several years, and on opening some of them found that Qimage gave an error message relating to NTDLL.DLL or an access violation at address 1000B544 in lcms.dll at address 8 and then hung. Only way to get out was to kill it via the task manager.

On investigation I discovered that the cause was some images (some jpg, some tif).  Qimage hangs on trying to generate the thumb for any of those images.

I tried opening the images in photoshop (an old version) and it politely says "The embedded ICC profile cannot be used because the ICC profile is invalid. Ignoring the profile", and then opens the file OK. The TIFs give that message twice before opening.

So I'm guessing that these images have some weird profile inserted by whatever old scanner I was using at the time.

They used to open fine in Qimage (but it is probably several years since I last did that), but now I have this problem.  I've recently upgraded to studio, if that makes a difference.

I'm resaving the images from photoshop, which presumably has removed the offending profile, and that seems to work fine.

But I'm wondering if it is possible to make Qimage a bit more defensive and report an error identifying the offending image rather than just hanging. It took me quite a while to identify the offending images by reintroducing them one by one. Now I know the problem I can probably use photoshop to identify them once Qimage has hung.

I appreciate that dealing with randomly "wrong" formats is difficult, but a more friendly behaviour would be desirable.

Mike S


Title: Re: invalid embedded profile causes hang
Post by: admin on June 14, 2009, 01:39:52 PM
I can't really tell anything without having one of the images.  Can you email one to me?  I can't always control what is going on in someone else's code but I can take a look.

Mike


Title: Re: invalid embedded profile causes hang
Post by: admin on June 14, 2009, 02:32:42 PM
Got the example, thanks.  I've fixed the problem and the fix will be in the next version (v2009.260).

Mike


Title: Re: invalid embedded profile causes hang
Post by: mshand on June 17, 2009, 08:34:15 AM
Just to confirm that 2009.260 does indeed fix the problem. It reads all the files which previously caused a hang.
Thanks for your speedy response Mike.


Mike S