Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
aklots  
#1 Posted : Friday, June 3, 2016 5:23:59 AM(UTC)
aklots

Rank: Newbie

Groups: Member
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):
failing_image.jpg
Fedor  
#2 Posted : Friday, June 3, 2016 1:43:21 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
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
aklots  
#3 Posted : Monday, June 6, 2016 1:33:15 AM(UTC)
aklots

Rank: Newbie

Groups: Member
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.
Fedor  
#4 Posted : Friday, June 10, 2016 3:20:25 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
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
Fedor  
#5 Posted : Thursday, June 16, 2016 9:11:32 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
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
aklots  
#6 Posted : Monday, June 20, 2016 5:01:14 AM(UTC)
aklots

Rank: Newbie

Groups: Member
Joined: 6/3/2016(UTC)
Posts: 7

Yeap, I just tested. It works!
Thank you!
Users browsing this topic
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.