Crash when using wholeTextForPage

Bartosz Mucha's Avatar

Bartosz Mucha

10 Jan, 2017 11:48 AM

Hi, first of all thanks for this great library, we are using it for quite a long time and it is very useful to us.

Unfortunately we have a problem wholeTextForPage method. When we try to search for text application crashes in -[MFToUnicodeCMapScannerMultibyte scan] due to EXC_BAD_ACCESS issue. This crash occurs on iOS 10.2 (any other iOS versions parsing is successful). Document is in Korean language.

#1 0x0000000100109848 in -[MFToUnicodeCMapScannerMultibyte scan] #2 0x00000001001039d9 in parseToUnicodeCMapStreamMultibyte #3 0x000000010010484d in sniffType0Font #4 0x00000001001058ef in fontDictionarySnifferFunction #5 0x00000001014b4233 in CGPDFDictionaryApplyFunction () #6 0x0000000100105a8e in -[MFStreamScanner scan] #7 0x0000000100110d14 in -[MFDocumentManager wholeTextForPage:] Is there any way to fix it using current version of library, or to provide any hotfix so that we can successfully use it under latest iOS?

If needed I can provide a test pdf which is failing, but please provide an email address or any other option share this file securely, as it's not something I can share to anyone.
Any help appreaciated.

  1. 1 Posted by Bartosz Mucha on 17 Jan, 2017 09:15 AM

    Bartosz Mucha's Avatar

    Hi, it's been a few days since I reported a very important issue, would it
    be possible to provide any input on it? We have quite big project relying
    on this framework and we get more and more crashes, our hands are tied as
    the exception we're getting is within provided static library.

    Any help appreciated,
    Thank you
    Bartosz Mucha

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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

Recent Discussions

15 Apr, 2020 04:25 AM
26 Feb, 2020 07:23 AM
27 Jun, 2019 06:08 AM
23 Nov, 2018 01:54 PM
14 Nov, 2018 04:37 PM