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

Attempted to read an unowned reference but the object was already deallocated #386

Open
simon-klikkie opened this issue Oct 22, 2019 · 1 comment
Assignees

Comments

@simon-klikkie
Copy link

simon-klikkie commented Oct 22, 2019

Describe the bug
I have implemented the CropViewController in my project (its a React Native Project, for what its worth) and I've recently been getting crash reports that I haven't been able to replicate or understand the source of.

SIGABRT
DRHT > Fatal error: Attempted to read an unowned reference but the object was already deallocated

- partial apply for closure #3 in CropViewController.setUpDelegateHandlers()
- @callee_guaranteed <compiler-generated>
- __40-[TOCropViewController doneButtonTapped]_block_invoke.439 CropViewController/Objective-C/TOCropViewController/TOCropViewController.m:1004

To Reproduce
Im not sure how to reproduce this crash.

iOS Device:

  • Device: iPhone 12,3 (iPhone 11 Pro?)
  • OS: 13.0
  • Library Version: CropViewController (2.5.1)

Additional context
Let me know if there's anything else I can provide to help understand the issue a little more.
Thanks!

@TimOliver
Copy link
Owner

Hi @simon-klikkie! Thanks for letting me know!

Hmmm, yeah like you said, I'm not sure how to track this. It's possible we're not retaining the done completion block properly somewhere, but I'm not sure if there's a great way to confirm that.

I'll keep this issue open for now. If you manage to get any more information from crash reports or users who can consistently reproduce it, please let me know. :)

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

No branches or pull requests

2 participants