Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHAttributedLabel carshes (points to null object) #170

Open
haashem opened this issue Dec 13, 2013 · 4 comments
Open

OHAttributedLabel carshes (points to null object) #170

haashem opened this issue Dec 13, 2013 · 4 comments

Comments

@haashem
Copy link

haashem commented Dec 13, 2013

I have used your great framework (latest update) in my app. I used its markup parser to detect special words and show its synonym.

but after touching some words it crashes suddenly with this strange error in device console:
: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary

in Xcode 5 it doesnt crash soon. (maybe because of enough ram on my macBook).

but in both it crashes.

here is an screenshot of xcode:
screen shot 2013-12-13 at 6 25 54 pm

it doesnt show any error related to my code. it is memmory related error. how can I solve it?

@AliSoftware
Copy link
Owner

Following what I see on Google about this kind of error, it's an iOS6 bug, probably related to the fact that you somewhere use a nil/NULL value (like adding a NULL CGColor as an attribute of you string or something similar).

Check you NSAttributedString content and attributes before using it to see if there is nothing strange about it, like nonsense/mismatch attribute values or whatnot.

@haashem
Copy link
Author

haashem commented Dec 17, 2013

as you mentioned it only crashes on iOS6.

I have enabled NSZombies but instruments couldn't find any zombie!!
I have use OHAttributedlLabel as it is without no modification. just added my custom markups. I haven't used NSAttributedString or CGColor. I haven't changed the appearance of OHAttributedlabel.

would you explain more about this bug?

I may post a sample app later and you can investigate it.

@AliSoftware
Copy link
Owner

A sample app to isolate the bug will definitely help investigate!

@haashem
Copy link
Author

haashem commented Dec 18, 2013

you can download from here:
http://www.mediafire.com/download/e59dd7mmbu2gnmo/pageBasedApp.zip

I have attached your framework with my edits. just added my custom markup parser.
run on your device. there you can see the crash immediately. may you explain why highlight link color won't appear in right position for farsi words?

it also sometimes crashes on line 403 of OHAttributedLabel.m. all this crashes happens on iOS 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants