Open PauloMello99 opened 3 years ago
I'm having the same issue
I am also having the same issue.
Not sure if it's related, but I'm getting a "UI API called on a background thread" error when I attempt to open the cropper. The error is in the initWithCroppingStyle method of the TOCropViewController.m file of the TOCropViewController pod
I am also having this issue
Am selecting an image to crop and upload - after about 5 second of idle or movement on the crop screen, app crashes
RN version: 0.63.3 Image Crop version: 0.35.0 iOS: 14
same issue
@leelandclay I didn't get this error, but it might have something related to threads, i got this message from Crashlytics:
crash_info_entry_0: BUG IN CLIENT OF LIBDISPATCH: Assertion failed: Block was expected to execute on queue [com.apple.main-thread]
same issue
UIKitCore
-[UIImageView _mainQ_beginLoadingIfApplicable] + 72
I am also having this issue
Am selecting an image to crop and upload - after about 5 second of idle or movement on the crop screen, app crashes
RN version: 0.63.3 Image Crop version: 0.35.0 iOS: 14
I'm seeing a surge in crash reports from iOS 14 in production that are originating from the crop tool:
Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x1a605d114 __exceptionPreprocess
1 libobjc.A.dylib 0x1b9883cb4 objc_exception_throw
2 CoreAutoLayout 0x1b9af3664 -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints]
3 CoreAutoLayout 0x1b9af333c -[NSISEngine _optimizeWithoutRebuilding]
4 CoreAutoLayout 0x1b9af2e9c -[NSISEngine optimize]
5 CoreAutoLayout 0x1b9aeeb7c -[NSISEngine performPendingChangeNotifications]
6 UIKitCore 0x1a8da0e4c -[UIView _wantsReapplicationOfAutoLayoutWithLayoutDirtyOnEntry:]
7 UIKitCore 0x1a8da19b4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
8 QuartzCore 0x1a92a19e8 -[CALayer layoutSublayers]
9 QuartzCore 0x1a92a7eb4 CA::Layer::layout_if_needed(CA::Transaction*)
10 QuartzCore 0x1a92b31d0 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
11 QuartzCore 0x1a91ff500 CA::Context::commit_transaction(CA::Transaction*, double, double*)
12 QuartzCore 0x1a9229698 CA::Transaction::commit()
13 QuartzCore 0x1a9229ea4 CA::Transaction::release_thread(void*)
14 libsystem_pthread.dylib 0x1eb943110 _pthread_tsd_cleanup
15 libsystem_pthread.dylib 0x1eb93ebcc _pthread_exit
16 libsystem_pthread.dylib 0x1eb9408a0 _pthread_wqthread_legacy_worker_wrap
17 libsystem_pthread.dylib 0x1eb940634 _pthread_wqthread
18 libsystem_pthread.dylib 0x1eb943874 start_wqthread
Has anyone found a workaround for this issue yet?
I am experiencing the same on android. I am also first requesting permission, and permission is granted but then it gives an unknown error.
I am experiencing the same issue, only on iOS 14.
The solution in https://github.com/ivpusic/react-native-image-crop-picker/issues/1225 seems to solve it. Have yet to confirm this wide-scale though.
I am also having the same issue :( Any ideas? The above (#1225) Solved it for me but waiting on a permanent fix
The solution in #1225 actually fixed it for me too. Waiting on a permanent fix as well.
@Jeancpdamke @marister Following the Solution in # 1225 still did not solve the problem pls help me
Any news regarding this issue?
@Jeancpdamke It's fixed, this issue can be closed AFAIK. See https://github.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.35.2
Version
Tell us which versions you are using:
System: OS: macOS 10.15.7 CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz Memory: 674.85 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 14.6.0 - /usr/local/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 6.14.7 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0 IDEs: Android Studio: 4.0 AI-193.6911.18.40.6626763 Xcode: 12.0/12A7209 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2 npmGlobalPackages: react-native-cli: 2.0.1
Platform
Expected behaviour
Controller keep cropping without sudden crashes
Actual behaviour
App crashes on crop change, after the animation end
Steps to reproduce
{ cropping: true, mediaType: 'photo', includeBase64: true, writeTempFile: false, showCropGuidelines: false, freeStyleCropEnabled: true, enableRotationGesture: true, compressImageQuality: 1, cropperActiveWidgetColor: '#68b2a3', cropperStatusBarColor: '#68b2a3', cropperToolbarColor: '#68b2a3', cropperToolbarWidgetColor: '#ffffff', path: [image path] }
Attachments
NOTE: I'm using react-native-document-picker to get images/pdf documents, and only treat the cropping when selected a image, so it must have no relations to the issue (right?).