App Hanging: App hanging for at least 2000 ms. Happens for iOS devices only.
Environment
System:
OS: macOS 14.1
CPU: (12) arm64 Apple M3 Pro
Memory: 70.22 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.2.0
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.21
path: /opt/homebrew/bin/yarn
npm:
version: 10.2.3
path: /opt/homebrew/bin/npm
Watchman:
version: 2023.11.13.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.14.3
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.0
- iOS 17.0
- macOS 14.0
- tvOS 17.0
- watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.11090377
Xcode:
version: 15.0.1/15A507
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.21
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /opt/homebrew/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.6
wanted: 0.72.6
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Platforms
iOS only
Versions
- Android: -
- iOS: 16 and above
- @react-native-clipboard/clipboard: 1.12.1
- react-native: 0.72.6
- react: 18.2.0
Description
Since I've updated this package from 1.11.1 to 1.12.1 (together with a react native update from 0.71.2 to 0.72.6) I have been getting App Hanging: App hanging for at least 2000 ms error from Sentry, see https://docs.sentry.io/platforms/react-native/configuration/app-hangs/.
Reproducible Demo
Through the breadcrumbs in Sentry I have pinned this down to this package, this seems to happen when I navigate to another app (background event) and then focus again on my app (foreground event) with an updated clipboard.
I have the same issue with v1.12.1 and RN 0.72.7. I will try to revert it and send the result here. (update) For now looks, that downgrade to v1.11.1 resolved that issue
This seems to be an issue w/ false reporting by sentry when the user is prompted for permissions. See https://github.com/getsentry/sentry-cocoa/discussions/2715#discussioncomment-6603068
This seems to be an issue w/ false reporting by sentry when the user is prompted for permissions. See getsentry/sentry-cocoa#2715 (comment)
Useful ticket - thanks. Agree with the above - I've commented on the Sentry RN plugin repo: https://github.com/getsentry/sentry-cocoa/issues/3472