Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11589 Reply

    Simon

    Hi,

    I have 4 ReaderViews and I try to draw the same PDF 4 times (arranged in a grid so you can see different pages at the same time). But when the PDFs are being loaded, I get the following error:

    D/PlugPDF: [DEBUG] Starting to draw a patch:
    A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 10711 (myapp)
    D/PlugPDF: [DEBUG] Complete to draw a patch
    D/PlugPDF: [DEBUG] Starting to draw a patch:
    I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG: Build fingerprint: ‘generic/vbox86p/vbox86p:5.1/LMY47D/genymotion08250738:userdebug/test-keys’
    I/DEBUG: Revision: ‘0’
    I/DEBUG: ABI: ‘x86’
    I/DEBUG: pid: 10711, tid: 10711, name: myapp >>> myapp <<<
    I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    I/DEBUG: eax 00000000 ebx de616d54 ecx 00000000 edx 00000008
    I/DEBUG: esi fff05020 edi 00000002
    I/DEBUG: xcs 00000023 xds 0000002b xes 0000002b xfs 00000007 xss 0000002b
    I/DEBUG: eip dddc0633 ebp fff04e58 esp fff04e00 flags 00210202
    I/DEBUG: backtrace:
    I/DEBUG: #00 pc 001bd633 /data/app/myapp/lib/x86/libplugpdf.so (Pdf_Font::render(Gf_Glyph*, int, Gf_Matrix, int)+691)
    I/DEBUG: #01 pc 0019d55d /data/app/myapp/lib/x86/libplugpdf.so (Pdf_GlyphCache::renderGlyph(Gf_Glyph*, Pdf_FontR, int, Gf_Matrix, int)+701)
    I/DEBUG: #02 pc 0013f4d9 /data/app/myapp/lib/x86/libplugpdf.so (Gf_TextString::makeShape(Gf_Pixmap*, Pdf_GlyphCache*, Gf_Matrix, Gf_IRect const&)+569)
    I/DEBUG: #03 pc 0019e580 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::drawTextString(Gf_TextString*, Gf_Matrix const&)+368)
    I/DEBUG: #04 pc 001a0728 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runTextGroupNode(Gf_TextGroupNode*, Gf_Matrix const&)+296)
    I/DEBUG: #05 pc 001a1b48 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&)+504)
    I/DEBUG: #06 pc 001a1683 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&)+291)
    I/DEBUG: #07 pc 001a1b68 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&)+536)
    I/DEBUG: #08 pc 001a1683 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&)+291)
    I/DEBUG: #09 pc 001a1b68 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&)+536)
    I/DEBUG: #10 pc 001a2ce4 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runXObjectNode(Gf_XObjectNode*, Gf_Matrix const&)+2052)
    I/DEBUG: #11 pc 001a1bea /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&)+666)
    I/DEBUG: #12 pc 001a1683 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&)+291)
    I/DEBUG: #13 pc 001a1b68 /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&)+536)
    I/DEBUG: #14 pc 001a1f0a /data/app/myapp/lib/x86/libplugpdf.so (Gf_Renderer::renderNodeOver(Gf_Pixmap*, Gf_DisplayNode*, Gf_Matrix const&)+202)
    I/DEBUG: #15 pc 000decb4 /data/app/myapp/lib/x86/libplugpdf.so (Pdf_Annot::renderApOver(Gf_Renderer*, Gf_Pixmap*, Gf_Matrix, int)+1348)
    I/DEBUG: #16 pc 000a0fdd /data/app/myapp/lib/x86/libplugpdf.so (drawAnnotAp(_JNIEnv*, _jobject*, long long, int, Gf_ObjectR, double)+1597)
    I/DEBUG: #17 pc 000a11f6 /data/app/myapp/lib/x86/libplugpdf.so (Java_com_epapyrus_plugpdf_core_PDFDocument_drawAnnotAP+150)
    I/DEBUG: #18 pc 002f3e2e /data/dalvik-cache/x86/data@app@myapp@base.apk@classes.dex
    I/DEBUG: #19 pc 589e3c7f <unknown>

    Two pages work fine. Three and more pages crash…

    Please fix this bug.

    Thank you!

    Simon

    #11600 Reply

    Dr. Plug
    Moderator

    Hello Simon

    Thank you for asking your inquiry.
    We are improving our product with the thread safe issue.
    Do you use thread separately for drawing 4 pdf or use 1 thread to draw 4 pdf?

    Best regards,

    Dr.Plug
    PlugPDF Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Crash when drawing more than 2 pages at the same time
Your information: