Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to debug through Acrobat.dll

New Here ,
Apr 20, 2017 Apr 20, 2017

Hello,

I am having a problem with searching through comments in highlight annotation.

Problem behavior is somewhat strange.

First time when it searches through the comments, it does it successfully.

When I search second time and scroll a document little bit then Acrobat crashes.

When I try to debug, at some point, it gives me error that Acrobat.pdb is not loaded and hence I can not debug it further.

I want to debug it further (in Acrobat.dll) because I think I can get some clue for crash.

How can I load this Acrobat.pdb and debug in Acrobat.dll?

Here is my code to search though the comments:

ASText searchKey = ASTextNew();

searchKey = ASTextFromUnicode((ASUTF16Val*)reqText, kUTF16HostEndian);

SearchQueryDataRec srcQuery;

memset(&srcQuery, 0, sizeof(SearchQueryDataRec));

srcQuery.size = sizeof(SearchQueryDataRec);

srcQuery.query = searchKey;

srcQuery.type = kSearchActiveDoc;

//Search through comments of Highlight annotation

srcQuery.scope = kSearchDocumentText | kSearchMarkup;

srcQuery.path = NULL;

srcQuery.fs = NULL;

srcQuery.maxDocs = 1;

ASBool ret = SearchExecuteQueryEx(&srcQuery);

ASTextDestroy(searchKey);

Thank you in advance!

TOPICS
Acrobat SDK and JavaScript
957
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 21, 2017 Apr 21, 2017

Any updates on this?

For your more information, when Acrobat crashes when I scroll, and if use the Acrobat debug option to debug it, it gives me below error:

But for my above logic, there is not any callbacks that I have written.

And Acrobat crashes when It is scrolled somewhat.

What is the cause of this error?

Thank you in advance!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 21, 2017 Apr 21, 2017

I saw the call  stack when acrobat crashed.

Here it is:

>00000000()Unknown
[Frames below may be incorrect and/or missing]
Acrobat.dll!554d506d()Unknown
Acrobat.dll!55b169a2()Unknown
Acrobat.dll!55b1678a()Unknown
Acrobat.dll!55e8bc79()Unknown
Acrobat.dll!554f1431()Unknown
Acrobat.dll!554f1317()Unknown
Acrobat.dll!5550b449()Unknown
Acrobat.dll!5550ad24()Unknown
Acrobat.dll!5544e4f6()Unknown
Acrobat.dll!5544e37b()Unknown
Acrobat.dll!5544d0ee()Unknown
Acrobat.dll!5544d03f()Unknown
Acrobat.dll!5544cf48()Unknown
Acrobat.dll!5544c2e2()Unknown
Acrobat.dll!5544c1a5()Unknown
[External Code]
Acrobat.dll!5543e0d0()Unknown
Acrobat.dll!5543e01e()Unknown
Acrobat.dll!553f6300()Unknown
[External Code]
Acrobat.dll!5544c83d()Unknown
Acrobat.dll!5544c1a5()Unknown
[External Code]
Acrobat.dll!5544bebb()Unknown
Acrobat.dll!55ad948c()Unknown
Acrobat.dll!55b98fd2()Unknown
Acrobat.dll!56446cff()Unknown
Annots.api!213e5adb()Unknown
Annots.api!213e5a5e()Unknown
Annots.api!213f2d89()Unknown
Acrobat.dll!55e5d0c3()Unknown
Acrobat.dll!55e5edf0()Unknown
Acrobat.dll!55b6b51e()Unknown
Acrobat.dll!55b6be04()Unknown
Acrobat.dll!5551cc8d()Unknown
Acrobat.dll!5551cc23()Unknown
Acrobat.dll!5551cba7()Unknown
Acrobat.dll!5551c96e()Unknown
Acrobat.dll!5551c58e()Unknown
Acrobat.dll!5551bfd3()Unknown
Acrobat.dll!5551a5a5()Unknown
Acrobat.dll!55519ca3()Unknown
Acrobat.dll!55519bba()Unknown
Acrobat.dll!55507118()Unknown
Acrobat.dll!55b7bd3a()Unknown
Acrobat.dll!55b202af()Unknown
[External Code]
Acrobat.dll!55b22bf3()Unknown
Acrobat.dll!55b22d72()Unknown
[External Code]
Acrobat.dll!5544c685()Unknown
Acrobat.dll!5544c1a5()Unknown
[External Code]
Acrobat.dll!5545c39f()Unknown
Acrobat.dll!5545c1b1()Unknown
Acrobat.dll!553f0956()Unknown
Acrobat.dll!553f0410()Unknown
Acrobat.exe!01274aef()Unknown
[External Code]

Can you please help with this ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 21, 2017 Apr 21, 2017

Any update please?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2017 Apr 21, 2017
LATEST

The application crashes somewhere in Acrobat, not in your own plug-in. You don't have the source code to Acrobat, and therefore cannot debug what is happening inside Acrobat. However, chances are that something you do in your plug-in is causing this crash. Do you have appropriate DURING/HANDLER wrappers around anything that could potentially cause an exception? You can step through your code to figure out which line in your plug-in is causing the crash, and then investigate if you are using that API call correctly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines