Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

App Crashes when open & close PDF multiple times 9 years 4 months ago #8119

  • Kin Chung
  • Kin Chung's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
When I repeats opening different PDF files, it occassionally crashes as follow:

12-15 12:33:45.088 11385-11929/hk.hku.versitech.eform A/libc﹕ invalid address or address of corrupt block 0x7988cd90 passed to dlfree
12-15 12:33:45.088 11385-11929/hk.hku.versitech.eform A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 11929 (Thread-3847)

For every time opening a new PDF file, I invoked
pdfReader.PDFClose()
pdfReader = null
and then create a new PDFReader object to open

attached core dump (crash.txt)
Any way to troubleshoot for the problem?
Attachments:

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

App Crashes when open & close PDF multiple times 9 years 4 months ago #8121

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
i'm using PDFLayoutAct, seems no problems.
are u using demo project?

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

App Crashes when open & close PDF multiple times 9 years 4 months ago #8123

  • Kin Chung
  • Kin Chung's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
I'm not using the demo, but using my own activity to open PDF file.
I created a new PDFReader instance and opened a new PDF file immediately after calling pdfReader.PDFClose();
would that be the cause?

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

App Crashes when open & close PDF multiple times 9 years 4 months ago #8124

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
maybe, PDFThumbView has problems.
plz wait next version.
The following user(s) said Thank You: JasonYin

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

App Crashes when open & close PDF multiple times 9 years 4 months ago #8125

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
what is the codes to open and close?
includ thumb view or other attach the Document object.
mostly, it caused by Invoke Page.Close() after Doument.Close().

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

App Crashes when open & close PDF multiple times 9 years 4 months ago #8126

  • Kin Chung
  • Kin Chung's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
Here's the relevant code attached.
When trying to open a file, MyActivity.loadFormAsync(path) will be called.
Attachments:

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum