- Posts: 14
- Thank you received: 0
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
IP: 192.168.0.71
11 years 3 months ago #8119
by Kin Chung
App Crashes when open & close PDF multiple times was created 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
and then create a new PDFReader object to open
attached core dump (crash.txt)
Any way to troubleshoot for the problem?
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
attached core dump (crash.txt)
Any way to troubleshoot for the problem?
IP: 192.168.0.71
11 years 3 months ago #8121
by radaee
Replied by radaee on topic App Crashes when open & close PDF multiple times
i'm using PDFLayoutAct, seems no problems.
are u using demo project?
are u using demo project?
IP: 192.168.0.71
11 years 3 months ago #8123
by Kin Chung
Replied by Kin Chung on topic App Crashes when open & close PDF multiple times
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?
I created a new PDFReader instance and opened a new PDF file immediately after calling pdfReader.PDFClose();
would that be the cause?
IP: 192.168.0.71
11 years 3 months ago #8124
by radaee
Replied by radaee on topic App Crashes when open & close PDF multiple times
maybe, PDFThumbView has problems.
plz wait next version.
plz wait next version.
IP: 192.168.0.71
11 years 3 months ago #8125
by radaee
Replied by radaee on topic App Crashes when open & close PDF multiple times
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().
includ thumb view or other attach the Document object.
mostly, it caused by Invoke Page.Close() after Doument.Close().
IP: 192.168.0.71
11 years 3 months ago #8126
by Kin Chung
Replied by Kin Chung on topic App Crashes when open & close PDF multiple times
Here's the relevant code attached.
When trying to open a file, MyActivity.loadFormAsync(path) will be called.
When trying to open a file, MyActivity.loadFormAsync(path) will be called.
Time to create page: 0.419 seconds