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

Input dispatching timed out [ANDROID] #212

Open
favazHF opened this issue Nov 29, 2024 · 0 comments
Open

Input dispatching timed out [ANDROID] #212

favazHF opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@favazHF
Copy link

favazHF commented Nov 29, 2024

Expected Behavior

It is hoped that this bug will not occur in production, as users are experiencing application crashes or long loading times.

Current Behavior

ARN error:

at com.amplitude.core.platform.Mediator.applyClosure (Mediator.kt:8)
The main thread is blocked here. It is waiting, trying to acquire lock 0x0392f8ad (java.util.ArrayList), held by thread 132. [Learn more](https://developer.android.com/topic/performance/anrs/find-unresponsive-thread#lock-contention)

  at com.amplitude.core.platform.Timeline.applyClosure (Timeline.kt:34)
  at com.amplitude.core.Amplitude.flush (Amplitude.kt:5)
  at com.amplitude.amplitude_flutter.AmplitudeFlutterPlugin.onMethodCall (AmplitudeFlutterPlugin.kt:171)
  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java:18)
  at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:19)
  at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0 (DartMessenger.java:42)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:233)
  at android.os.Looper.loop (Looper.java:344)
  at android.app.ActivityThread.main (ActivityThread.java:8212)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:584)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1034)

Possible Solution

Steps to Reproduce

  1. add amplitude_flutter: ^4.0.0-beta.1 in your pubspec.yaml
  2. run on android device
  3. It is not easy to replicate, as the console does not throw errors but internally it fails.

Environment

[✓] Flutter (Channel stable, 3.24.5, on macOS 14.6.1 23G93 darwin-arm64 (Rosetta), locale en-CL)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)

  • Device: [OnePlus Nord (OnePlus Nord)] (Multiples devices)
  • Device OS and Version: [Android 12 (SDK 31)] (Multiples versions and OS)
@favazHF favazHF added the bug Something isn't working label Nov 29, 2024
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

1 participant