Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #8755 Reply

    Yuriy Makhin
    #8780 Reply

    Dr. Plug
    Moderator

    Hello Yuriy,

    We haven’t been able to crash the app as you indicated.

    Could you please explain in more detail what’s happening?

    Please be so kind to attach a screenshot to this thread, this will be very helpful.

    Thank you for your feedback.

    #8795 Reply

    Yuriy Makhin

    Hi again.
    So, this crash did happen tome but only in my own app, not in your examples. I’m guessing there’s significantly more memory pressure in my app, and that could be the reason I can’t reproduce it in your examples.

    I have a question, I see you run
    -[PlugPDFDocument drawPage:pixmap:matrix:]
    on each page rotation, effectively redrawing the whole PDF page. Is this necessary? I mean, this PDF can take a couple seconds to rotate on older iPhones. Can you rotate already drawn image instead of re-drawing it?

    Sorry for bothering you, I just really need to optimize the app.

    #8797 Reply

    Yuriy Makhin

    This is what I see in instruments, for example:
    Total Samples Running Time Self (ms) Symbol Name
    2669 2669.0ms 98.3% 0.0 -[PlugPDFDocument drawPage:pixmap:matrix:]
    Just for the screen rotation event.

    #8922 Reply

    Dr. Plug
    Moderator

    Hi Yuriy,

    We’ve already find out where the problem is.

    This one will take one week to be solved because it’s a bit tricky.

    Once again, thank you for sharing these issues with us on this forum.

    Best regards,

    Dr. Plug

    #9219 Reply

    Yuriy Makhin

    Was trying to reproduce the crash in your example code with this file, but can’t.
    Still happens for me though.
    PlugPDF crashes with this message:
    libc++abi.dylib: Pure virtual function called!
    Here please find a screenshot of XCode debug session:
    https://drive.google.com/file/d/0B1I0aTQ5czyrZ3dWTzQ4UEh1cjQ/view?usp=sharing

    If there is any way I can help you track this down, please don’t hesitate to ask.

    #9271 Reply

    Dr. Plug
    Moderator

    Hi Yuriy,

    Actually we fixed the problem about drawTile in the newest version.
    So could you check it in the latest version?
    This is download the link https://plugpdf.com/sdkfile/PlugPDF_iOS.zip

    Best Regards,
    Dr.Plug

    #9285 Reply

    Yuriy Makhin

    Still getting this on last Friday’s build.
    Interestingly enough it only happens if I zoom the page and then close it.
    Here is log:
    EXC_BAD_ACCESS
    Thread 21Queue : com.epapyrus.PlugPDF.queue (serial)
    #0 0x002cc93c in Gf_ContainerNode::appendChild(Gf_DisplayNode*) ()
    #1 0x00361c08 in Gf_Renderer::runXObjectNode(Gf_XObjectNode*, Gf_Matrix const&) ()
    #2 0x00360e68 in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #3 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #4 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #5 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #6 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #7 0x00361fa8 in Gf_Renderer::renderNodeOver(Gf_Pixmap*, Gf_DisplayNode*, Gf_Matrix const&) ()
    #8 0x00362376 in Gf_Renderer::processSMaskLumi(Gf_SMaskNode*, Pdf_ExtGStateR, Gf_Matrix const&) ()
    #9 0x00360c64 in Gf_Renderer::runGStateNode(Gf_GStateNode*, Gf_Matrix const&) ()
    #10 0x003609fc in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #11 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #12 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #13 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #14 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #15 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #16 0x00361fa8 in Gf_Renderer::renderNodeOver(Gf_Pixmap*, Gf_DisplayNode*, Gf_Matrix const&) ()
    #17 0x00361c64 in Gf_Renderer::runXObjectNode(Gf_XObjectNode*, Gf_Matrix const&) ()
    #18 0x00360e68 in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #19 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #20 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #21 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #22 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #23 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #24 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #25 0x00361fa8 in Gf_Renderer::renderNodeOver(Gf_Pixmap*, Gf_DisplayNode*, Gf_Matrix const&) ()
    #26 0x00361c64 in Gf_Renderer::runXObjectNode(Gf_XObjectNode*, Gf_Matrix const&) ()
    #27 0x00360e68 in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #28 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #29 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #30 0x00360a1e in Gf_Renderer::runGroupNode(Gf_GroupNode*, Gf_Matrix const&) ()
    #31 0x00360e7a in Gf_Renderer::runNode(Gf_DisplayNode*, Gf_Matrix const&) ()
    #32 0x00361fa8 in Gf_Renderer::renderNodeOver(Gf_Pixmap*, Gf_DisplayNode*, Gf_Matrix const&) ()
    #33 0x002df3fe in Pdf_Page::render(Pdf_Pixmap*, Gf_Renderer*, Gf_Matrix, Gf_IRect, bool, bool, bool) ()
    #34 0x002b3160 in -[PlugPDFDocument drawPage:pixmap:matrix:] ()
    #35 0x002b4272 in -[PlugPDFDocument drawTile:size:tileRect:zoom:] ()
    #36 0x00223df8 in __31-[PlugPDFPageView loadTileView]_block_invoke ()
    #37 0x3aee1832 in _dispatch_call_block_and_release ()

    #9286 Reply

    Dr. Plug
    Moderator

    Hi Yuriy,

    Thank you for feedback,
    But in our plugPDF sample, that problem isn’t happen.
    so we are very hard to reproduce. so could you give us a sample code that problem happens?
    It would be nice to solve the problem.

    Best Regards,
    Dr.Plug

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: this long one-page PDF crashes PlugPDF after a few page rotations
Your information: