- Posts: 8
- 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
radaeepdf & Genymotion
11 years 4 months ago #8811
by jrosseel
radaeepdf & Genymotion was created by jrosseel
Hello,
I'm evaluating RadaeePDF, and encounter a problem when I try to run it under Genymotion. It works fine on our actual hardware (Rockchip?ARM based), but when trying to run it on the Genymotion simulator, it crashes with the following LogCat entry as soon as we naviage to a directory with some PDF's in it:
04-22 11:33:02.435: V/dalvikvm(959): +++ scanning '/data/data/com.radaee.reader/lib/librdpdf.so' for 'renderThumb'
04-22 11:33:02.435: V/dalvikvm(959): +++ calling dlsym(Java_com_radaee_pdf_Page_renderThumb)
04-22 11:33:02.435: V/dalvikvm(959): Found 'Java_com_radaee_pdf_Page_renderThumb' with dlsym
04-22 11:33:02.435: A/libc(959): Fatal signal 4 (SIGILL) at 0x9966cd52 (code=2), thread 976 (Thread-80)
The Genymotion simulator is x86, so I would expect it would work, but it clearly doesn't.
I'm evaluating RadaeePDF, and encounter a problem when I try to run it under Genymotion. It works fine on our actual hardware (Rockchip?ARM based), but when trying to run it on the Genymotion simulator, it crashes with the following LogCat entry as soon as we naviage to a directory with some PDF's in it:
04-22 11:33:02.435: V/dalvikvm(959): +++ scanning '/data/data/com.radaee.reader/lib/librdpdf.so' for 'renderThumb'
04-22 11:33:02.435: V/dalvikvm(959): +++ calling dlsym(Java_com_radaee_pdf_Page_renderThumb)
04-22 11:33:02.435: V/dalvikvm(959): Found 'Java_com_radaee_pdf_Page_renderThumb' with dlsym
04-22 11:33:02.435: A/libc(959): Fatal signal 4 (SIGILL) at 0x9966cd52 (code=2), thread 976 (Thread-80)
The Genymotion simulator is x86, so I would expect it would work, but it clearly doesn't.
11 years 4 months ago - 11 years 4 months ago #8815
by Davide
Replied by Davide on topic radaeepdf & Genymotion
Hi,
can you please give us more details:
can you please give us more details:
- What version of the library are you using?
- The library crashes with all the pdfs or with a specific one? Can you send us the pdf that makes the crash?
Last edit: 11 years 4 months ago by Davide.
11 years 4 months ago #8816
by jrosseel
Replied by jrosseel on topic radaeepdf & Genymotion
Glad to hear it works with your Genymotion.
I'm on Genymotion 2.3.1, with a VM that is generation 1.3, Android 4.1. PDF library version 3.4.
It crashes with whatever (single) PDF I put in the shared folder.
And just checked: same problem with VM's (2.3.1 level) with Android 4.4 and Android 5.0
I'm on Genymotion 2.3.1, with a VM that is generation 1.3, Android 4.1. PDF library version 3.4.
It crashes with whatever (single) PDF I put in the shared folder.
And just checked: same problem with VM's (2.3.1 level) with Android 4.4 and Android 5.0
11 years 4 months ago - 11 years 4 months ago #8820
by Davide
Replied by Davide on topic radaeepdf & Genymotion
Hi,
are you testing with the demo version or with your own application?
I have tested with the demo version on Genymotion Version 2.4.0 and it works, try to update your version..
Can you please send us a pdf that makes the crash?
are you testing with the demo version or with your own application?
I have tested with the demo version on Genymotion Version 2.4.0 and it works, try to update your version..
Can you please send us a pdf that makes the crash?
Last edit: 11 years 4 months ago by Davide.
11 years 4 months ago #8821
by support
Replied by support on topic radaeepdf & Genymotion
May be it's a silly question: are you distributing the x86 library within your application?
Genymotion has not the machine code translator from Google that enable the ARM to x86 execution.
x86 librdpdf.so should be available in your apk's libs folder.
Genymotion has not the machine code translator from Google that enable the ARM to x86 execution.
x86 librdpdf.so should be available in your apk's libs folder.
11 years 4 months ago #8830
by jrosseel
Replied by jrosseel on topic radaeepdf & Genymotion
I am using the out-of-the-box PDFReader demo app as it is packaged in the download. I changed absolutely nothing.
I checked the APK, and the .so files are there for both x86 and x86-64, In the lLogCat entry, you can see it loading the library.
FWIW: I'm running on an AMD x6 1090T processor. Maybe it works on an i7?
I've attached the single PDF file I have in the directory - but it doesn't matter: I've tried a bunch of different types of PDF files - same results.
04-22 16:03:33.566: I/System.out(1540): debugger has settled (1462)
04-22 16:03:33.574: D/dalvikvm(1540): Trying to load lib /data/app-lib/com.radaee.reader-2/librdpdf.so 0x94f52798
04-22 16:03:33.574: D/dalvikvm(1540): Added shared lib /data/app-lib/com.radaee.reader-2/librdpdf.so 0x94f52798
04-22 16:03:33.678: D/dalvikvm(1540): GC_FOR_ALLOC freed 84K, 6% free 3078K/3260K, paused 3ms, total 3ms
04-22 16:03:33.838: D/(1540): HostConnection::get() New Host Connection established 0xb823a138, tid 1540
04-22 16:03:45.198: A/libc(1540): Fatal signal 4 (SIGILL) at 0x7f381034 (code=2), thread 1563 (Thread-96)
I checked the APK, and the .so files are there for both x86 and x86-64, In the lLogCat entry, you can see it loading the library.
FWIW: I'm running on an AMD x6 1090T processor. Maybe it works on an i7?
I've attached the single PDF file I have in the directory - but it doesn't matter: I've tried a bunch of different types of PDF files - same results.
04-22 16:03:33.566: I/System.out(1540): debugger has settled (1462)
04-22 16:03:33.574: D/dalvikvm(1540): Trying to load lib /data/app-lib/com.radaee.reader-2/librdpdf.so 0x94f52798
04-22 16:03:33.574: D/dalvikvm(1540): Added shared lib /data/app-lib/com.radaee.reader-2/librdpdf.so 0x94f52798
04-22 16:03:33.678: D/dalvikvm(1540): GC_FOR_ALLOC freed 84K, 6% free 3078K/3260K, paused 3ms, total 3ms
04-22 16:03:33.838: D/(1540): HostConnection::get() New Host Connection established 0xb823a138, tid 1540
04-22 16:03:45.198: A/libc(1540): Fatal signal 4 (SIGILL) at 0x7f381034 (code=2), thread 1563 (Thread-96)
Time to create page: 0.426 seconds