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 #8129

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
like this:
public void closeForm() {
if (pdfReader != null) {
m_thumb.thumbClose();
pdfReader.PDFClose();
pdfLayer.removeView(pdfReader);
}
pdfReader = null;
m_thumb = null;//??
pdfFile = null;
}
the most important thing is: do not open PDFReader/PDFThumbView and close PDFReader/PDFThumbView in different thread.
The following user(s) said Thank You: JasonYin

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

Last edit: by .

App Crashes when open & close PDF multiple times 9 years 3 months ago #8144

  • oemilk
  • oemilk's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 28
  • Thank you received: 0
12-16 20:43:00.168: A/libc(8457): Fatal signal 11 (SIGSEGV) at 0x0037534b (code=1), thread 10074 (AsyncTask #3)
12-16 20:43:00.258: D/dalvikvm(8457): GC_FOR_ALLOC freed 7729K, 22% free 46498K/59344K, paused 31ms, total 31ms

I have the same situation. (open & close PDF multiple times.)
I changed the library from 3.1 to 3.2.
But it is occured sometimes...

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

App Crashes when open & close PDF multiple times 9 years 3 months ago #8155

  • Kin Chung
  • Kin Chung's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
It seems to be fine now to run pdfReader.PDFClose() in the GUI thread same as opening PDF, thank you

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum