Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

App Crashes when open & close PDF multiple times

More
IP: 192.168.0.71 11 years 3 months ago #8119 by Kin Chung
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
Code:
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?
More
IP: 192.168.0.71 11 years 3 months ago #8121 by radaee
i'm using PDFLayoutAct, seems no problems.
are u using demo project?
More
IP: 192.168.0.71 11 years 3 months ago #8123 by Kin Chung
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?
More
IP: 192.168.0.71 11 years 3 months ago #8124 by radaee
maybe, PDFThumbView has problems.
plz wait next version.
More
IP: 192.168.0.71 11 years 3 months ago #8125 by radaee
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().
More
IP: 192.168.0.71 11 years 3 months ago #8126 by Kin Chung
Here's the relevant code attached.
When trying to open a file, MyActivity.loadFormAsync(path) will be called.
Time to create page: 0.419 seconds
Powered by Kunena Forum