TOCropViewController
TOCropViewController copied to clipboard
Attempted to read an unowned reference but the object was already deallocated
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!
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. :)