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

Crash #34

Closed
dtomicAZ opened this issue Jan 25, 2018 · 9 comments
Closed

Crash #34

dtomicAZ opened this issue Jan 25, 2018 · 9 comments

Comments

@dtomicAZ
Copy link

I updated my pods and I get this error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'

as this line 986:
[messageNavigationController.view insertSubview:self belowSubview:messageNavigationController.navigationBar];

I have this in my pod file:
pod 'RMessage', :git => 'https://github.com/donileo/RMessage.git', :branch => 'develop'

I use iPhone 6s, iOS 11.2

@isadon
Copy link
Owner

isadon commented Jan 30, 2018

Are you still getting this error? Sorry for the delay, will look into it soon.

@dtomicAZ
Copy link
Author

@donileo yes, currently I am using :commit => '7cda71e' which doesn't have this issue.

I forgot to mention, this bug appears second time message want's to show up.

@isadon
Copy link
Owner

isadon commented Jan 30, 2018

Ah ok, yea that little detail should make it easier to debug. As far as the commit you are using is that how far you had to go to not get the crash? In other words two commits before the latest still gives you the crash?

@dtomicAZ
Copy link
Author

Well, I don't know, I think I tried few commits before newest and still bug was there.

I then compared number of line of version I had before updating pods and found that '7cda71e' was good one.

@isadon
Copy link
Owner

isadon commented Jan 30, 2018

Anything specific about how you are presenting RMessage? Cant seem to duplicate this crash in the example project.

@dtomicAZ
Copy link
Author

TestRMessage.zip

Here you go, I am sending you example project where crash is happening.

Maybe titleSubtitleLabelsSizeToFit property has something with this bug.

@isadon
Copy link
Owner

isadon commented Jan 31, 2018

Hi,

Thanks for the submission. In the end the issue was mostly due to an existing UIAppearance bug. Commit 2154792 on develop fixes this issue. Can you please pull and retest?

Update: aa82d58 also applies to this issue.

@isadon
Copy link
Owner

isadon commented Feb 4, 2018

Any update on this issue is the crash fixed for you?

@dtomicAZ
Copy link
Author

dtomicAZ commented Feb 5, 2018

@donileo Looks good now, thank you for the fix.

@dtomicAZ dtomicAZ closed this as completed Feb 5, 2018
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