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

Error when calling insert() #5

Closed
astrike30 opened this issue Jun 30, 2018 · 3 comments
Closed

Error when calling insert() #5

astrike30 opened this issue Jun 30, 2018 · 3 comments
Labels
question Further information is requested

Comments

@astrike30
Copy link

When I call self.insert in my MSGMessengerViewController I get the error Thread 1: EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff8) on the line self.collectionView.performBatchUpdates({ in the MSGMessengerViewController + Helpers.swift file. If there's anymore information I should give, please let me know. :D

@steve228uk
Copy link
Owner

Are you able to let me know the exact line that's triggering the error? Are you able to provide an example project?

@steve228uk
Copy link
Owner

Hi @astrike30,

I was able to replicate this when not appending a new message to the array containing messages prior to inserting it into collection view. Please ensure that you're doing this.

messages.append([message])
insert(message)

Once tested, please let me know so I can close the issue.

@steve228uk steve228uk added the question Further information is requested label Jul 3, 2018
@steve228uk
Copy link
Owner

Closing due to inactivity.

choku2908 pushed a commit to choku2908/MessengerKit that referenced this issue Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants