PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)
Moderators: PDF-XChange Support , Daniel - PDF-XChange , Chris - PDF-XChange , Sean - PDF-XChange , Vasyl - PDF-XChange , Ivan - Tracker Software , Stefan - PDF-XChange
haviital
User
Posts: 11 Joined: Mon Oct 07, 2013 11:23 am
Post
by haviital » Mon Feb 17, 2014 9:16 am
Hi,
I happens very often in our system that the process hangs when I import an XFDF file on existing PDF by calling:
Code: Select all
szScriptCommand.AppendFormat( L"this.importAnXFDF(\"%s\");", szPathAndFileName );
CComBSTR bsScript( szScriptCommand );
CComBSTR bsResult;
m_ppdfxchange->RunJavaScript( bsScript, OUT &bsResult.m_str, 0, PXCVA_NoUI | PXCVA_Sync );
It never returns from RunJavaScript(). In Process Monitor logs I can see that it starts reading the file. This happens only in Windows 7 (Win7 Ultimate, SP1, 64-bit), Windows 8 works ok.
In our system there can be several XFDF "layers" that are loaded on the PDF for viewing.
I am using the latest PDF-XChange SDK.
Br,
Hannu
haviital
User
Posts: 11 Joined: Mon Oct 07, 2013 11:23 am
Post
by haviital » Mon Feb 17, 2014 10:33 am
One correction: I just checked that we are using the version 2.5.213.0 of PDFXCView.exe and PFDXViewAx.dll binaries. So we do not use the very latest version, if it matters related to this error.
haviital
User
Posts: 11 Joined: Mon Oct 07, 2013 11:23 am
Post
by haviital » Mon Feb 17, 2014 11:13 am
Here is the output of the Task Manager dump of the hanging PCFXCView.exe process, analyzed with WinDbg / "!analyze -v". Looks like it is waiting for an event(s). As I do not have the symbol files for PDFXCView.exe, I do not know which event that is.
Code: Select all
STACK_TEXT:
00000000`001cd858 00000000`770ea72a user32!NtUserCallNoParam+0xa
00000000`001cd860 00000000`770e8f89 user32!RealMsgWaitForMultipleObjectsEx+0x136
00000000`001cd900 00000000`770e62b2 user32!MsgWaitForMultipleObjectsEx+0x46
00000000`001cd940 00000000`770e62e0 user32!MsgWaitForMultipleObjects+0x20
00000000`001cd980 00000001`3f837d8d pdfxcview+0x267d8d
00000000`001cda00 00000001`3f9dc373 pdfxcview+0x40c373
00000000`001cda30 00000001`3f9b02a6 pdfxcview+0x3e02a6
00000000`001cda60 00000001`3f9cd6f7 pdfxcview+0x3fd6f7
00000000`001cdb00 00000001`3f8e25a6 pdfxcview+0x3125a6
00000000`001ce0f0 00000001`3f8e3c24 pdfxcview+0x313c24
00000000`001ce1c0 00000001`3fb62e25 pdfxcview+0x592e25
00000000`001ce350 00000001`3fb63fcf pdfxcview+0x593fcf
00000000`001ce570 00000001`3fb6d82a pdfxcview+0x59d82a
00000000`001ce6a0 00000001`3fb215b2 pdfxcview+0x5515b2
00000000`001ce6e0 00000001`3f8fab28 pdfxcview+0x32ab28
00000000`001ce730 00000001`3f8fd256 pdfxcview+0x32d256
00000000`001ce7c0 00000001`3f6bf510 pdfxcview+0xef510
00000000`001ce840 00000001`3f6c5cbe pdfxcview+0xf5cbe
00000000`001cebd0 000007fe`fdf4ff85 rpcrt4!Invoke+0x65
00000000`001cec50 000007fe`fdf44de2 rpcrt4!NdrStubCall2+0x32a
00000000`001cf270 000007fe`ff64f16e ole32!CStdStubBuffer_Invoke+0x8b
00000000`001cf2a0 000007fe`ff650ccd ole32!SyncStubInvoke+0x5d
00000000`001cf310 000007fe`ff650c43 ole32!StubInvoke+0xdb
00000000`001cf3c0 000007fe`ff50a4f0 ole32!CCtxComChnl::ContextInvoke+0x190
00000000`001cf550 000007fe`ff51d551 ole32!STAInvoke+0x91
00000000`001cf5a0 000007fe`ff65347e ole32!AppInvoke+0x1aa
00000000`001cf610 000007fe`ff65122b ole32!ComInvokeWithLockAndIPID+0x52b
00000000`001cf7a0 000007fe`ff653542 ole32!ComInvoke+0xae
00000000`001cf7d0 000007fe`ff51d42d ole32!ThreadDispatch+0x29
00000000`001cf800 000007fe`ff51d1d6 ole32!ThreadWndProc+0xaa
00000000`001cf880 00000000`770e9bd1 user32!UserCallWinProcCheckWow+0x1ad
00000000`001cf940 00000000`770e98da user32!DispatchMessageWorker+0x3b5
00000000`001cf9c0 00000001`3f85a05e pdfxcview+0x28a05e
00000000`001cfa00 00000001`3f85e183 pdfxcview+0x28e183
00000000`001cfda0 00000001`3fe810d4 pdfxcview+0x8b10d4
00000000`001cfe50 00000000`76e7652d kernel32!BaseThreadInitThunk+0xd
00000000`001cfe80 00000000`7740c541 ntdll!RtlUserThreadStart+0x1d
Br,
Hannu
Stefan - PDF-XChange
Site Admin
Posts: 19868 Joined: Mon Jan 12, 2009 8:07 am
Post
by Stefan - PDF-XChange » Mon Feb 17, 2014 12:59 pm
Hello Hannu,
Thanks for your report. Can you please first try with build 214.1 and see if that works, and then please also try with the stand alone Viewer (the end user version) and check if it hangs in there as well.
Then please provide us with a sample pdf + .xfdf for testing here at our end. If the files are sensitive you can send them to
support@pdf-xchange.com with a link back to this forum topic.
Regards,
Stefan
Vasyl - PDF-XChange
Site Admin
Posts: 2445 Joined: Thu Jun 30, 2005 4:11 pm
Post
by Vasyl - PDF-XChange » Mon Feb 17, 2014 5:26 pm
Hi, Hannu.
May be it is the same issue:
https://forum.pdf-xchange.com/ ... 36&t=19719
- we fixed it already and fix will be available in the new build (upcoming).
Best
Regards.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
haviital
User
Posts: 11 Joined: Mon Oct 07, 2013 11:23 am
Post
by haviital » Tue Feb 18, 2014 6:37 am
Hi,
Thanks for a very quick resolving!
Yes, it looks very much that it is the same bug as mine. The bug occurs easily when doing PDF loading and XFDF loading in fast sequence. When can we expect a new version containing the bug fix?
Br,
Hannu
Stefan - PDF-XChange
Site Admin
Posts: 19868 Joined: Mon Jan 12, 2009 8:07 am
Post
by Stefan - PDF-XChange » Tue Feb 18, 2014 11:28 am
Hi Hannu,
When can we expect a new version containing the bug fix?
Short answer - Yesterday
We just released build 214.2 of the Viewer SDK - so please download it and give it a try:
https://www.pdf-xchange.com/product ... ctivex-sdk
Regards,
Stefan
haviital
User
Posts: 11 Joined: Mon Oct 07, 2013 11:23 am
Post
by haviital » Thu Feb 20, 2014 8:39 am
Wow,
this must be a world record of product support in reacting to customer needs
Well done!
I could not get it to hang any more. We will still test it, but looks very promising.
Br,
Hannu
Stefan - PDF-XChange
Site Admin
Posts: 19868 Joined: Mon Jan 12, 2009 8:07 am
Post
by Stefan - PDF-XChange » Thu Feb 20, 2014 10:25 am
Glad to hear that Hannu!
And wishing you all your attempts to hang the SDK would be unsuccessful
Regards,
Stefan