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.
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.
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)