App Crashes When Using Different PDFs

Anonimous's Avatar

Anonimous

21 Jun, 2011 04:51 PM

This project has great promise, thanks for sharing. I am running into a major issue - the app crashes when I use different PDF's from the sample ones. Here's how to duplicate:

Copy a different PDF into the project (I have trade many PDFs, almost all of them cause the app to crash)
Do a search where you get many results (i.e. search for "t")
Scroll through the table results - the app will crash during the scroll

No error shows in the console, so this has been very hard to debug. I've attached a PDF where this crashes rather easily, but again, it crashes on most PDFs.

testPdf

  1. 1 Posted by Nicolò on 24 Jun, 2011 10:25 AM

    Nicolò's Avatar

    Hi, we are looking into it but it seems the problem is related to the rendering of the table view's cell involving CoreText rather than the search process inside the pdf.

  2. 2 Posted by Anonimous on 24 Jun, 2011 10:26 AM

    Anonimous's Avatar

    Yes, I agree, that is where the problem lies. Thanks for looking into this.

  3. 3 Posted by Nicolò on 24 Jun, 2011 10:27 AM

    Nicolò's Avatar

    We pushed a small fix on github. A cleaner layout of the code and guarded release of the resources seem to have solved the problem . Probably one of the core text function not returning a valid reference or returning NULL.
    Please provide feedback on this issue.

  4. 4 Posted by Anonimous on 24 Jun, 2011 10:27 AM

    Anonimous's Avatar

    I confirm that this is fixed. Thanks so much for getting a fix out there so quick - I am very impressed and very grateful!

  5. Gianluca closed this discussion on 01 Jul, 2011 09:18 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac