Skip to content

[Android] ANR when manually editing date in DatePicker dialog #169072

Closed
@dustincatap

Description

@dustincatap

Steps to reproduce

The only recorded event of this happened on Samsung Galaxy Tab A7 Lite, according to Sentry.

  1. Show a DatePicker dialog
  2. Edit the date manually and type any date.
  3. Press "Ok"

Expected results

The app does not freeze and restart.

Actual results

The app freezes and then restarts.

Code sample

Code sample

None

Screenshots or Video

Screenshots / Video demonstration
Untitled.mp4

Logs

Logs
at io.flutter.embedding.engine.FlutterJNI.nativeDispatchPlatformMessage
    at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(unavailable:20)
    at io.flutter.embedding.engine.dart.DartMessenger.send(SourceFile:8)
    at io.flutter.embedding.engine.dart.DartExecutor$DefaultBinaryMessenger.send(SourceFile:2)
    at io.flutter.embedding.engine.dart.DartExecutor.send(SourceFile:2)
    at io.flutter.plugin.common.MethodChannel.invokeMethod(SourceFile:5)
    at io.flutter.plugin.common.MethodChannel.invokeMethod(SourceFile:1)
    at io.flutter.embedding.engine.systemchannels.TextInputChannel.updateEditingState(unavailable:79)
    at io.flutter.plugin.editing.TextInputPlugin.didChangeEditingState(unavailable:145)
    at io.flutter.plugin.editing.ListenableEditingState.notifyListener(unavailable:6)
    at io.flutter.plugin.editing.ListenableEditingState.notifyListenersIfNeeded(unavailable:24)
    at io.flutter.plugin.editing.ListenableEditingState.endBatchEdit(unavailable:129)
    at io.flutter.plugin.editing.InputConnectionAdaptor.endBatchEdit(unavailable:12)
    at android.view.inputmethod.RemoteInputConnectionImpl.lambda$endBatchEdit$34(RemoteInputConnectionImpl.java:985)
    at android.view.inputmethod.RemoteInputConnectionImpl.$r8$lambda$8is00lwbkg8uMzkIkFQTXf-Y3P0(unavailable:0)
    at android.view.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda10.run(unavailable:4)
    at android.os.Handler.handleCallback(Handler.java:958)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:230)
    at android.os.Looper.loop(Looper.java:319)
    at android.app.ActivityThread.main(ActivityThread.java:8919)
    at java.lang.reflect.Method.invoke
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.5 24F74 darwin-arm64, locale en-PH) [1,045ms]
    • Flutter version 3.29.3 on channel stable at /opt/homebrew/Caskroom/flutter/3.29.1/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ea121f8859 (5 weeks ago), 2025-04-11 19:10:07 +0000
    • Engine revision cf56914b32
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [1,772ms]
    • Android SDK at /Users/dustincatap/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: /Users/dustincatap/Library/Java/JavaVirtualMachines/jbr-17.0.14/Contents/Home/bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment JBR-17.0.14+1-1367.22-nomod (build 17.0.14+1-b1367.22)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [2.8s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [8ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [7ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)

[✓] VS Code (version 1.100.2) [6ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.110.0

[✓] Connected device (3 available) [7.9s]
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 136.0.7103.114

[✓] Network resources [1,166ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions