Page 1 of 1

Crash on Application Exit

Posted: Tue Oct 17, 2017 2:49 pm
by mmasood
Hi,

I am seeing a Process has stopped working error when I close my application randomly may be 30-40% of the time. Following are the details of the error that I get:
Faulting application name: MyApp.exe, version: 5.13.0.71, time stamp: 0x59e10b80
Faulting module name: PDFXCoreAPI.x86.dll_unloaded, version: 6.0.322.5, time stamp: 0x595a5bee
Exception code: 0xc0000409
Fault offset: 0x008b470c
Faulting process id: 0xa94
Faulting application start time: 0x01d34458042fca9d
Faulting application path: C:\Program Files (x86)\MyApp\MyApp.exe
Faulting module path: PDFXCoreAPI.x86.dll
Report Id: 1e4ffa60-b04f-11e7-81af-02d5df3b493b
Faulting package full name:
Faulting package-relative application ID:
I am using VB6 and i am setting the variables that I use to Nothing in the Form_Unload method. I am calling the "pInst.Finalize" method in the unload function as well.

What am I missing out here?

Regards,
M

Re: Crash on Application Exit

Posted: Fri Oct 20, 2017 4:22 pm
by Tracker Supp-Stefan
Hello M,

I've checked with a colleague from the dev team, and he says that unfortunately only with the description we can not help much.
We would need a sample project as well. Can you please prepare that one for us?

Cheers,
Stefan

Re: Crash on Application Exit

Posted: Wed Oct 25, 2017 5:36 pm
by mmasood
Hi Stefan,

The application that is causing this behavior is very large and complex and unfortunately I cannot create a stripped down version of it to provide to you. Are there any best practices that I can go through and see if anything is missing in my code that might be causing this issue?

Regards,
M

Re: Crash on Application Exit

Posted: Thu Oct 26, 2017 7:35 am
by Sasha - Tracker Dev Team
Hello mmasood,

Well I'm almost 100% sure that some object is being left alive when you call Finalize. Check in that direction - I'm afraid that we can't tell anything else.

Cheers,
Alex

Re: Crash on Application Exit

Posted: Thu Dec 21, 2017 5:56 pm
by mmasood
Hi Alex,

I have been working on this and have a pattern and code to reproduce this issue.

I am using the VB6 and the latest version of Core Api 6.0.322.7 (per web page) or 7.0.323.2 (per the actual file that is installed). However i can reproduce this issue with older versions of Core Api.

Just let the attached exe run for approximately 15 mins and close the application to produce the issue.

Please let me know if you are able to reproduce the issue.

Regards,
M

Re: Crash on Application Exit

Posted: Fri Dec 22, 2017 1:16 pm
by Tracker Supp-Stefan
Hello M,

Thanks for the sample project.
I will pass it along to Alex, but he said that because of some tasks he has today - he will be able to investigate this only tomorrow.
We will post here as soon as there are any news!

Happy holidays,
Stefan

Re: Crash on Application Exit

Posted: Sat Dec 23, 2017 6:55 am
by Sasha - Tracker Dev Team
Hello mmasood,

We will try to look at this one on Monday, when our developer who can investigate VB6 code will be available.

Cheers,
Alex

Re: Crash on Application Exit

Posted: Tue Dec 26, 2017 2:13 pm
by mmasood
Hi Alex,

Did you have any success figuring out the issue so far? This issue is causing problems with our clients in production.

Regards,
M

Re: Crash on Application Exit

Posted: Wed Dec 27, 2017 9:54 am
by Sasha - Tracker Dev Team
Hello mmasood,

We were able to reproduce the crash itself (not from the first time though), and are trying to see whether we will have a possibility to debug this.

Cheers,
Alex

Re: Crash on Application Exit

Posted: Thu Dec 28, 2017 2:15 pm
by mmasood
Hi Alex,

Were you able to make any progress on this issue?

Regards,
M

Re: Crash on Application Exit

Posted: Fri Dec 29, 2017 7:46 am
by Sasha - Tracker Dev Team
Hello mmasood,

Well what we can say is that some thread is still alive after shutdown and this causes this exception. We are not sure whether the problem is in VB engine or somewhere in our code that conflicts with the VB. We will try to investigate further.

Cheers,
Alex

Re: Crash on Application Exit

Posted: Mon Jan 01, 2018 2:00 pm
by mmasood
Hi Alex,

Have you been able to find a fix for this? This is affecting our clients in Production and they are pressing hard for a fix. Can you give me an estimate that I can update my clients with?

Regards,
M

Re: Crash on Application Exit

Posted: Tue Jan 02, 2018 3:57 pm
by Sasha - Tracker Dev Team
Hello mmasood,

There are no estimates on this cause - we are trying to find out the root of the problem though still no luck.

Cheers,
Alex

Re: Crash on Application Exit

Posted: Thu Jan 04, 2018 5:06 pm
by whoit
Hi Alex -

Can you see if there is at least a work-around for this problem?

Our clients run this unattended in Production, and it can lock up their system for hours when it happens.
It's not something we have been able to trap, so unless a person is actively shutting the app down and is also
there to handle the error, then we have a lock up problem...

Thanks,
Wayne

Re: Crash on Application Exit

Posted: Sat Jan 06, 2018 4:59 am
by Roman - Tracker Supp
Hi,
The issue has been resolved. As this is a blocking issue for you we can provide an out-of-order build of the Core API SDK on Monday.

Re: Crash on Application Exit

Posted: Mon Jan 08, 2018 3:55 pm
by whoit
Hi Roman -

Yes this is a showstopper for some, so a fix today (or tomorrow) would be terrific!

Thanks for addressing this so quickly,
Wayne

Re: Crash on Application Exit

Posted: Mon Jan 08, 2018 4:23 pm
by Tracker Supp-Stefan
Hi Wayne,

I've asked Roman to prepare the custom build - and share it with you as soon as possible!

Cheers,
Stefan

Re: Crash on Application Exit

Posted: Mon Jan 08, 2018 7:16 pm
by Roman - Tracker Supp
Hi Wayne,
Here it is. Please replace the original SDK DLLs with ones from the attached ZIP.
Actually for your VB6 application you need only 32-bit SDK DLL (PDFXCoreAPI.x86.dll).
Please let us know the outcome.

Re: Crash on Application Exit

Posted: Mon Jan 08, 2018 7:28 pm
by whoit
Hi Roman -

Great, thanks!
We'll download and test it - it'll take a couple days to verify everything and we'll let you know the results.

Thanks Again,
Wayne

Re: Crash on Application Exit

Posted: Tue Jan 09, 2018 7:59 am
by Sasha - Tracker Dev Team
Hello Wayne,

Do notify us if everything worked for you.

Cheers,
Alex

Re: Crash on Application Exit

Posted: Thu Jan 11, 2018 7:00 pm
by whoit
Hi -

We've done a bunch of internal testing and the problem seems to be resolved.
We have yet to install it into a client environment for further testing, but it looks good so far!

Thanks Again!

-Wayne

Re: Crash on Application Exit

Posted: Fri Jan 12, 2018 1:02 pm
by Tracker Supp-Stefan
Thanks Wayne,

Glad to hear that the problem seems to be gone!

Cheers,
Stefan