RadaeePDF.com :: Topic: radaeepdf & Genymotion (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: radaeepdf & Genymotion

radaeepdf & Genymotion 2 years 3 months ago #8811

  • jrosseel
  • jrosseel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
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.
The administrator has disabled public write access.

radaeepdf & Genymotion 2 years 3 months ago #8815

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 663
  • Thank you received: 43
  • Karma: 12
Hi,
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?
I have tested with my Genymotion: Download folder with 30 pdfs and it seems to work properly.
Last Edit: 2 years 3 months ago by Davide.
The administrator has disabled public write access.

radaeepdf & Genymotion 2 years 3 months ago #8816

  • jrosseel
  • jrosseel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
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
The administrator has disabled public write access.

radaeepdf & Genymotion 2 years 3 months ago #8820

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 663
  • Thank you received: 43
  • Karma: 12
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?
Last Edit: 2 years 3 months ago by Davide.
The administrator has disabled public write access.

radaeepdf & Genymotion 2 years 3 months ago #8821

  • support
  • support's Avatar
  • OFFLINE
  • Administrator
  • Posts: 474
  • Thank you received: 36
  • Karma: 6
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.
The administrator has disabled public write access.

radaeepdf & Genymotion 2 years 3 months ago #8830

  • jrosseel
  • jrosseel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
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)
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Powered by Kunena Forum