Crash on Application Exit

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

Crash on Application Exit

Post 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
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17820
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Crash on Application Exit

Post 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
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

Re: Crash on Application Exit

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Crash on Application Exit

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

Re: Crash on Application Exit

Post 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
Attachments
DeletePages For Tracker.zip
(5.07 KiB) Downloaded 123 times
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17820
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Crash on Application Exit

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Crash on Application Exit

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

Re: Crash on Application Exit

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Crash on Application Exit

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

Re: Crash on Application Exit

Post by mmasood »

Hi Alex,

Were you able to make any progress on this issue?

Regards,
M
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Crash on Application Exit

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

Re: Crash on Application Exit

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Crash on Application Exit

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: Crash on Application Exit

Post 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
User avatar
Roman - Tracker Supp
Site Admin
Posts: 303
Joined: Sun Nov 21, 2004 3:19 pm

Re: Crash on Application Exit

Post 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.
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: Crash on Application Exit

Post 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
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17820
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Crash on Application Exit

Post 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
User avatar
Roman - Tracker Supp
Site Admin
Posts: 303
Joined: Sun Nov 21, 2004 3:19 pm

Re: Crash on Application Exit

Post 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.
Attachments
PDFXCoreAPI.zip
(17.02 MiB) Downloaded 125 times
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: Crash on Application Exit

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Crash on Application Exit

Post by Sasha - Tracker Dev Team »

Hello Wayne,

Do notify us if everything worked for you.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: Crash on Application Exit

Post 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
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17820
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Crash on Application Exit

Post by Tracker Supp-Stefan »

Thanks Wayne,

Glad to hear that the problem seems to be gone!

Cheers,
Stefan
Post Reply