Rank: Newbie
Groups: Guest
Joined: 6/3/2016(UTC) Posts: 7
|
I got a problem on creating Aurigma Bitmap form jpeg-stream: Exception thrown: 'System.InvalidCastException' in Aurigma.GraphicsMill.dll Additional information: Invalid type cast operation. at Aurigma.GraphicsMill.GMException.ThrowManagedException(IntPtr unmanagedException) at Aurigma.GraphicsMill.Codecs.ImageReader.SetupInternalDecoder(ImageDecoder* pDecoder, Stream stream) at Aurigma.GraphicsMill.Codecs.JpegReader..ctor(Stream stream) at Aurigma.GraphicsMill.Codecs.CodecsRegistry.CreateReader(FileFormat format, Object source) at Aurigma.GraphicsMill.Bitmap.Load(Stream stream) at Aurigma.GraphicsMill.Bitmap..ctor(Stream stream) Looks like original problem came from JpegReader. So I change my code to: var file = new JpegReader("failing_image.jpg"); Same issue, however I notice that before InvalidCastException is thrown I receive first chance exception: Exception thrown: 'System.Runtime.InteropServices.SEHException' in Aurigma.GraphicsMill.dll Additional information: External component has thrown an exception. at Aurigma.GraphicsMill.Codecs.ImageReader.SetupInternalDecoder(ImageDecoder* pDecoder, String fileName) Version info: <package id="Aurigma.GraphicsMill.Core.x64" version="7.2.26" targetFramework="net452" /> aklots attached the following image(s):
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Thank you for the bug report. We successfully reproduced the problem and will fix it shortly (Aurigma Bug #0022238). You can expect an update in 3-4 weeks. I will keep you informed of the status. Edited by user Monday, June 6, 2016 1:16:58 AM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 6/3/2016(UTC) Posts: 7
|
Hi Fedor, thank you for a response. Now I'm really curious, could you please share some information about what was the case with this image? Was the problem with the jpeg-file structure or with the image encoding itself? I tried different images (CMYK, with embedded color-profile but without exif-tag, etc.), but most of them were fine:) This issue appears only with this particular image. I also tried to spot some wierd thing via http://regex.info/exif.cgi, but nothing exceptional.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Quote:Now I'm really curious, could you please share some information about what was the case with this image? Was the problem with the jpeg-file structure or with the image encoding itself? The problem was in the resolution value of EXIF metadata. It is stored as a rational number (not as an integer one) in the provided JPEG file. We fixed the bug. You can expect the update in 1-2 weeks. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
We just released the version 8.1.43 where the problem is fixed. Edited by user Thursday, June 16, 2016 9:19:28 PM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 6/3/2016(UTC) Posts: 7
|
Yeap, I just tested. It works! Thank you!
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.