Fatal Crashes when open & close PDF multiple times - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Fatal Crashes when open & close PDF multiple times

Fatal Crashes when open & close PDF multiple times 3 years 10 months ago #8189

  • oemilk
  • oemilk's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0
Hi.

This is not "Document close" crash..

1. heap corruption detected by dlfree (Fatal signal 6 (SIGABRT))
2. signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr
3. signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00002308
- /data/app-lib/com.access_company.android.docdrive-2/librdpdf.so (Java_com_radaee_pdf_Page_renderToBmp+278)
Attachments:

Please Log in or Create an account to join the conversation.

Fatal Crashes when open & close PDF multiple times 3 years 10 months ago #8191

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
yes, i think it is render page after Document closed:
correct:
Page page = Document.GetPage(pageno);
page.RenderToBmp();
page.Close();
Document.Close();
incorrect:
Page page = Document.GetPage(pageno);
Document.Close();
page.RenderToBmp();
page.Close();
you can write log in Document.Close() and Page.RenderXXX() and Page.Close(), and PageObjsStart().
and so on.
got sequence of logs.

Please Log in or Create an account to join the conversation.

Fatal Crashes when open & close PDF multiple times 3 years 10 months ago #8200

  • oemilk
  • oemilk's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0
I understand third crash.

(3. signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00002308
- /data/app-lib/com.access_company.android.docdrive-2/librdpdf.so (Java_com_radaee_pdf_Page_renderToBmp+278))

So I fixed it like below codes.
if(doc.IsOpen){
  Page page = doc.GetPage(pageno);
  page.ObjsStart();
  .....
}

But I do not understand others.

I think "heap corruption detected by dlfree" is not "Document close" problem...

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum