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

App Hanging: App hanging for at least 2000 ms. Happens for iOS devices only. #212

Open
PaulvanMotman opened this issue Nov 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@PaulvanMotman
Copy link

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.

@PaulvanMotman PaulvanMotman added the bug Something isn't working label Nov 24, 2023
@Egor-Kozlov
Copy link

Egor-Kozlov commented Nov 30, 2023

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

@jfacoustic
Copy link

This seems to be an issue w/ false reporting by sentry when the user is prompted for permissions. See getsentry/sentry-cocoa#2715 (comment)

@julianD77
Copy link

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: getsentry/sentry-cocoa#3472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants