TiffAddToMultiPageFile returns GenericError

Discussions about image processing and document imaging.
Post Reply
sandor
Posts: 5
Joined: Tue Mar 12, 2019 4:33 pm

TiffAddToMultiPageFile returns GenericError

Post by sandor » Tue Mar 12, 2019 5:03 pm

Hi,

I'm using GDPicture for scanning images and saving them in PDF.
When using TiffAddToMultiPageFile in iteration at the 46th call I get a GenericError and in the resulted PDF this page will be black or faulty as seen in the attachments.

There are two ways of reproducing this error: Iteration with 50 pictures at 600 dpi or an iteration with 200-300 pictures at 200dpi. In the last case the error will appear much later.. around 90%.
The error is present in the 14.1.0.8 version too.

I'm looking forward for your help
Best regards:
Sandor
Attachments
GDPicture version 14.1.png
GDPicture version 14.1.png (8.91 KiB) Viewed 193 times
GDPicture version 14.0.png
GDPicture version 14.0.png (1.27 KiB) Viewed 193 times
Last edited by sandor on Wed Mar 13, 2019 11:51 am, edited 1 time in total.

sandor
Posts: 5
Joined: Tue Mar 12, 2019 4:33 pm

Re: TiffAddToMultiPageFile returns GenericError

Post by sandor » Tue Mar 12, 2019 6:46 pm

The sourcecode:

Code: Select all

            SetActualImage(0);
            int mpt = imaging.CreateClonedGdPictureImage(actualImage.handle);
            GdPictureStatus gdst = imaging.TiffSaveAsMultiPageFile(mpt, filename, TiffCompression.TiffCompressionNONE);

            for (int i = 1; i < imagesInTifFiles.Count; i++)
            {
                SetActualImage(i);
                gdst = imaging.TiffAddToMultiPageFile(mpt, actualImage.handle);
                if (gdst != GdPictureStatus.OK)
                {
                    //Error shows here: "GenericError"
                    logger.Error(String.Format("TiffAddToMultiPageFile status: {0}", gdst.ToString()));
                }
            }

            imaging.TiffCloseMultiPageFile(mpt);
            imaging.ReleaseGdPictureImage(mpt);
Changing TiffCompression in TiffSaveAsMultiPageFile to TiffCompressionAUTO seems to resolve the problem, but I don't think that's a good solution.

Gabriela
Posts: 378
Joined: Wed Nov 22, 2017 9:52 am

Re: TiffAddToMultiPageFile returns GenericError

Post by Gabriela » Wed Mar 13, 2019 10:03 am

Hello,

To be able to replicate the issue exactly as you do we need the complete and compilable code snippet and the source document.
Could you share those materials? Is it document related?
Or you can also create a ticket on our support forum https://support.gdpicture.com with all those materials if they are sensitive to share.
Please be sure we can run your code "as is" and it should demonstrate the issue.
Thank you for understanding.
Kind regards,

Gabriela
GdPicture Team

sandor
Posts: 5
Joined: Tue Mar 12, 2019 4:33 pm

Re: TiffAddToMultiPageFile returns GenericError

Post by sandor » Wed Mar 13, 2019 11:50 am

Dear Gabriela,

I've modified one of your demo applications and put it here:
https://drive.google.com/file/d/1P1R44w ... sp=sharing
The sample image is there too. You have to select the sample.tif and a destination folder in the application and hit Start to reproduce the error.
Looking forward for your help.
Sandor

Gabriela
Posts: 378
Joined: Wed Nov 22, 2017 9:52 am

Re: TiffAddToMultiPageFile returns GenericError

Post by Gabriela » Wed Mar 13, 2019 12:51 pm

Hi,

I can definitively confirm, that we have reproduced the issue and it has been transmitted to the development team for further analysis. I will keep you informed about any potential progress here.
Kind regards,

Gabriela
GdPicture Team

sandor
Posts: 5
Joined: Tue Mar 12, 2019 4:33 pm

Re: TiffAddToMultiPageFile returns GenericError

Post by sandor » Thu Mar 14, 2019 11:40 am

It is good to hear that!
Could you please let us know usually how long does it take to fix an issue like this?
Thanks

Gabriela
Posts: 378
Joined: Wed Nov 22, 2017 9:52 am

Re: TiffAddToMultiPageFile returns GenericError

Post by Gabriela » Thu Mar 14, 2019 8:01 pm

Hi,

I cannot give you any time frame now, the issue is reported, but it has not been analysed still. I will update you immediately when there will be any potential progress. Thank you for your patience.
Kind regards,

Gabriela
GdPicture Team

sandor
Posts: 5
Joined: Tue Mar 12, 2019 4:33 pm

Re: TiffAddToMultiPageFile returns GenericError

Post by sandor » Fri Apr 12, 2019 11:22 am

Dear Gabriela,

Do you have any news about the progress? Our corporate client with hundreds of users is waiting for this bugfix. Is there any way to speed up the process?

Kind regards,
Sandor

Gabriela
Posts: 378
Joined: Wed Nov 22, 2017 9:52 am

Re: TiffAddToMultiPageFile returns GenericError

Post by Gabriela » Mon Apr 15, 2019 9:56 am

Hello,

I'm sorry, but there is no way to speed up the process. I have increased the priority and I have left a note on your request, the only way is to wait. I do not have any further details, so I cannot say you more. It looks like there are other priorities to solve. The issue is reported and if any details will come, I will update you immediately. Thank you for your patience.
Kind regards,

Gabriela
GdPicture Team

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests