flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.24k stars 27.26k forks source link

TextField input is duplicated when dialog is opened and closed. #85900

Closed Albertbol closed 1 month ago

Albertbol commented 3 years ago

Steps to Reproduce

  1. Create flutter hello world application
  2. Use this code in main.dart attached below
  3. Run on real device Pixel 3A XL
  4. Click on input write "hh"
  5. Then click on FAB to open dialog (without loosing focus on input), click outside to close dialog afterwards
  6. Text in input field will be duplicated "hhhh"
  7. Some times it works from the first time, sometimes from the second, cannot reproduce with simulator and have tried to build release version, but on my Pixel 3A XL bug persists.
  8. Video attached:

https://user-images.githubusercontent.com/43991741/124465908-4658f500-dd96-11eb-8c27-9255e6f3833b.mp4

minimal code sample ```dart void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(), ); } } class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State { var e = TextEditingController(); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Bug'), ), body: Center( child: TextField( autocorrect: false, controller: e, )), floatingActionButton: FloatingActionButton( onPressed: () { showDialog( context: context, builder: (_) { return SimpleDialog( title: const Text('Whatever'), ); }, ); }, child: Icon(Icons.open_in_new), ), ); } } ```

Expected results: I expect to not have duplications

Actual results: I see time to time duplicated text

Logs ``` N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11") A: package="com.example.bug_test" (Raw: "com.example.bug_test") A: platformBuildVersionCode=(type 0x10)0x1e A: platformBuildVersionName=(type 0x10)0xb E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: application (line=16) A: android:label(0x01010001)="bug_test" (Raw: "bug_test") A: android:icon(0x01010002)=@0x7f080000 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=21) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.example.bug_test.MainActivity" (Raw: "com.example.bug_test.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=35) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=45) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040000 E: intent-filter (line=49) E: action (line=50) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=52) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=59) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 [ +34 ms] executing: /Users/**/Library/Android/sdk/platform-tools/adb -s 8BFY0YJKM shell -x logcat -v time -t 1 [ +58 ms] <- compile package:bug_test/main.dart [ +80 ms] --------- beginning of main 07-05 13:27:48.541 D/DeviceStateHelper( 4485): Audo mode: 0 [ +13 ms] executing: /Users/**/Library/Android/sdk/platform-tools/adb version [ +9 ms] Android Debug Bridge version 1.0.41 Version 31.0.2-7242960 Installed as /Users/**/Library/Android/sdk/platform-tools/adb [ +2 ms] executing: /Users/**/Library/Android/sdk/platform-tools/adb start-server [ +27 ms] Building APK [ +20 ms] Running Gradle task 'assembleDebug'... [ +3 ms] Using gradle from /Users/**/AndroidStudioProjects/bug_test/android/gradlew. [ +93 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ +9 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ ] {"CFBundleName":"Android Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\ /trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","MainClass":"com.intellij.idea.Main","Properties":{"idea.paths.selector":"AndroidStudio4.2","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.vendor.name":"Google","id ea.home.path":"$APP_PACKAGE\/Contents"}},"NSDesktopFolderUsageDescription":"An application in Android Studio requests access to the user's Desktop folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-202.7660.26.42.7351085","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in Android Studio requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true," CFBundleShortVersionString":"4.2","NSMicrophoneUsageDescription":"An application in Android Studio requests access to the device's microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in Android Studio requests access to the user's location information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.develop er-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescription":"An application in Android Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests access to the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network volume.","CFBundleGetInfoString":"Android Studio 4.2, build AI-202.7660.26.42.7351085. Copyright JetBrains s.r.o., (c) 2000-2021","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access to files on a removable volume."} [ +14 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ +100 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ ] openjdk version "11.0.8" 2020-07-14 OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) OpenJDK 64-Bit Server VM (build 11.0.8+10-b944.6916264, mixed mode) [ +1 ms] executing: [/Users/**/AndroidStudioProjects/bug_test/android/] /Users/**/AndroidStudioProjects/bug_test/android/gradlew -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=/Users/**/AndroidStudioProjects/bug_test/lib/main.dart -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug [+2378 ms] > Task :app:compileFlutterBuildDebug [ ] [ +95 ms] executing: sysctl hw.optional.arm64 [ ] [ +18 ms] Exit code 1 from: sysctl hw.optional.arm64 [ ] [ ] sysctl: unknown oid 'hw.optional.arm64' [ ] [ +7 ms] executing: [/Users/**/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ +13 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ ] f4abaa0735eba4dfd8f33f73363911d63931fe03 [ ] [ ] executing: [/Users/**/flutter/] git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03 [ ] [ +20 ms] Exit code 0 from: git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03 [ ] [ ] 2.2.3 [ ] [ +6 ms] executing: [/Users/**/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ ] [ +12 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/stable [ ] [ ] executing: [/Users/**/flutter/] git ls-remote --get-url origin [ ] [ +12 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ ] [ +63 ms] executing: [/Users/**/flutter/] git rev-parse --abbrev-ref HEAD [ ] [ +12 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ ] stable [ ] [ +5 ms] executing: sw_vers -productName [ ] [ +12 ms] Exit code 0 from: sw_vers -productName [ ] [ ] macOS [ ] [ ] executing: sw_vers -productVersion [ ] [ +12 ms] Exit code 0 from: sw_vers -productVersion [ ] [ ] 11.4 [ ] [ ] executing: sw_vers -buildVersion [ ] [ +12 ms] Exit code 0 from: sw_vers -buildVersion [ ] [ ] 20F71 [ ] [ +51 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ +2 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] [ +78 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ ] [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ +8 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update. [ ] [ +33 ms] Initializing file store [ ] [ +4 ms] Done initializing file store [ ] [ +31 ms] Skipping target: gen_localizations [ ] [ +351 ms] Skipping target: kernel_snapshot [ ] [ +252 ms] Skipping target: debug_android_application [ ] [ ] Persisting file store [ ] [ +5 ms] Done persisting file store [ ] [ +4 ms] build succeeded. [ ] [ +11 ms] "flutter assemble" took 794ms. [ ] [ +134 ms] ensureAnalyticsSent: 129ms [ ] [ +1 ms] Running shutdown hooks [ ] [ ] Shutdown hooks complete [ ] [ ] exiting with code 0 [ ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE [ ] > Task :app:preBuild UP-TO-DATE [ ] > Task :app:preDebugBuild UP-TO-DATE [ ] > Task :app:compileDebugAidl NO-SOURCE [ ] > Task :app:compileDebugRenderscript NO-SOURCE [ ] > Task :app:generateDebugBuildConfig UP-TO-DATE [ ] > Task :app:checkDebugAarMetadata UP-TO-DATE [ ] > Task :app:cleanMergeDebugAssets [ ] > Task :app:mergeDebugShaders UP-TO-DATE [ ] > Task :app:compileDebugShaders NO-SOURCE [ ] > Task :app:generateDebugAssets UP-TO-DATE [ ] > Task :app:mergeDebugAssets [ +172 ms] > Task :app:copyFlutterAssetsDebug [ ] > Task :app:generateDebugResValues UP-TO-DATE [ ] > Task :app:generateDebugResources UP-TO-DATE [ +97 ms] > Task :app:mergeDebugResources UP-TO-DATE [ ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE [ ] > Task :app:extractDeepLinksDebug UP-TO-DATE [ ] > Task :app:processDebugMainManifest UP-TO-DATE [ ] > Task :app:processDebugManifest UP-TO-DATE [ ] > Task :app:processDebugManifestForPackage UP-TO-DATE [ ] > Task :app:processDebugResources UP-TO-DATE [ ] > Task :app:compileDebugKotlin UP-TO-DATE [ ] > Task :app:javaPreCompileDebug UP-TO-DATE [ ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE [ ] > Task :app:compileDebugSources UP-TO-DATE [ ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE [ ] > Task :app:compressDebugAssets UP-TO-DATE [ ] > Task :app:processDebugJavaRes NO-SOURCE [ ] > Task :app:mergeDebugJavaResource UP-TO-DATE [ ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE [ ] > Task :app:dexBuilderDebug UP-TO-DATE [ ] > Task :app:desugarDebugFileDependencies UP-TO-DATE [ ] > Task :app:mergeExtDexDebug UP-TO-DATE [ ] > Task :app:mergeDexDebug UP-TO-DATE [ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE [ ] > Task :app:mergeDebugNativeLibs UP-TO-DATE [ ] > Task :app:stripDebugDebugSymbols UP-TO-DATE [ ] > Task :app:validateSigningDebug UP-TO-DATE [ ] > Task :app:packageDebug UP-TO-DATE [ +54 ms] > Task :app:assembleDebug [ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. [ ] Use '--warning-mode all' to show the individual deprecation warnings. [ ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings [ ] BUILD SUCCESSFUL in 2s [ ] 32 actionable tasks: 5 executed, 27 up-to-date [ +377 ms] Running Gradle task 'assembleDebug'... (completed in 3.3s) [ +38 ms] calculateSha: LocalDirectory: '/Users/**/AndroidStudioProjects/bug_test/build/app/outputs/flutter-apk'/app.apk [ +544 ms] βœ“ Built build/app/outputs/flutter-apk/app-debug.apk. [ +3 ms] executing: /Users/**/Library/Android/sdk/build-tools/30.0.3/aapt dump xmltree /Users/**/AndroidStudioProjects/bug_test/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ +10 ms] Exit code 0 from: /Users/**/Library/Android/sdk/build-tools/30.0.3/aapt dump xmltree /Users/**/AndroidStudioProjects/bug_test/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11") A: package="com.example.bug_test" (Raw: "com.example.bug_test") A: platformBuildVersionCode=(type 0x10)0x1e A: platformBuildVersionName=(type 0x10)0xb E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: application (line=16) A: android:label(0x01010001)="bug_test" (Raw: "bug_test") A: android:icon(0x01010002)=@0x7f080000 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=21) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.example.bug_test.MainActivity" (Raw: "com.example.bug_test.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=35) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=45) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040000 E: intent-filter (line=49) E: action (line=50) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=52) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=59) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 [ +13 ms] Stopping app 'app.apk' on Pixel 3 XL. [ ] executing: /Users/**/Library/Android/sdk/platform-tools/adb -s 8BFY0YJKM shell am force-stop com.example.bug_test [ +74 ms] executing: /Users/**/Library/Android/sdk/platform-tools/adb -s 8BFY0YJKM shell pm list packages com.example.bug_test [ +84 ms] package:com.example.bug_test [ +1 ms] executing: /Users/**/Library/Android/sdk/platform-tools/adb -s 8BFY0YJKM shell cat /data/local/tmp/sky.com.example.bug_test.sha1 [ +46 ms] a0897682d0bdc17476288075cecb746cf075ce67 [ ] Latest build already installed. [ ] executing: /Users/**/Library/Android/sdk/platform-tools/adb -s 8BFY0YJKM shell -x logcat -v time -t 1 [ +56 ms] --------- beginning of main 07-05 13:27:56.471 D/RegisteredNfcFServicesCache( 8141): Service unchanged, not updating [ +8 ms] executing: /Users/**/Library/Android/sdk/platform-tools/adb -s 8BFY0YJKM shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.example.bug_test/com.example.bug_test.MainActivity [ +67 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug_test/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [ +366 ms] Observatory URL on device: http://127.0.0.1:38337/4SZ7JnmBT3Q=/ [ ] executing: /Users/**/Library/Android/sdk/platform-tools/adb -s 8BFY0YJKM forward tcp:0 tcp:38337 [ +8 ms] 57733 [ ] Forwarded host port 57733 to device port 38337 for Observatory [+1629 ms] Caching compiled dill [ +30 ms] Connecting to service protocol: http://127.0.0.1:57733/4SZ7JnmBT3Q=/ [ +216 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:57733/4SZ7JnmBT3Q=/. [ +111 ms] DDS is listening at http://127.0.0.1:57737/zpaZn7qapDk=/. [ +62 ms] Successfully connected to service protocol: http://127.0.0.1:57733/4SZ7JnmBT3Q=/ [ +25 ms] DevFS: Creating new filesystem on the device (null) [ +53 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug_test/code_cache/bug_testLECYOH/bug_test/) [ +1 ms] Updating assets [ +66 ms] Syncing files to device Pixel 3 XL... [ +1 ms] <- reset [ ] Compiling dart to kernel with 0 updated files [ +2 ms] <- recompile package:bug_test/main.dart 1757594f-2147-4db5-ba4b-cc8e27e31d65 [ ] <- 1757594f-2147-4db5-ba4b-cc8e27e31d65 [ +55 ms] Updating files. [ ] DevFS: Sync finished [ +1 ms] Syncing files to device Pixel 3 XL... (completed in 60ms) [ ] Synced 0.0MB. [ ] <- accept [ +62 ms] Connected to _flutterView/0x73c105e7b0. [ +2 ms] Flutter run key commands. [ +1 ms] r Hot reload. πŸ”₯πŸ”₯πŸ”₯ [ ] R Hot restart. [ ] h Repeat this help message. [ ] d Detach (terminate "flutter run" but leave application running). [ ] c Clear the screen [ ] q Quit (terminate the application on the device). [ ] πŸ’ͺ Running with sound null safety πŸ’ͺ [ ] An Observatory debugger and profiler on Pixel 3 XL is available at: http://127.0.0.1:57737/zpaZn7qapDk=/ [ +487 ms] The Flutter DevTools debugger and profiler on Pixel 3 XL is available at: http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A57737%2FzpaZn7qapDk%3D%2F [+2151 ms] W/IInputConnectionWrapper( 9633): beginBatchEdit on inactive InputConnection [ +1 ms] W/IInputConnectionWrapper( 9633): getTextBeforeCursor on inactive InputConnection [ ] W/IInputConnectionWrapper( 9633): getTextAfterCursor on inactive InputConnection [ +1 ms] W/IInputConnectionWrapper( 9633): getSelectedText on inactive InputConnection [ ] W/IInputConnectionWrapper( 9633): endBatchEdit on inactive InputConnection [ +5 ms] W/IInputConnectionWrapper( 9633): beginBatchEdit on inactive InputConnection [ ] W/IInputConnectionWrapper( 9633): endBatchEdit on inactive InputConnection [+2804 ms] W/IInputConnectionWrapper( 9633): beginBatchEdit on inactive InputConnection [ +2 ms] W/IInputConnectionWrapper( 9633): getTextBeforeCursor on inactive InputConnection [ +1 ms] W/IInputConnectionWrapper( 9633): getTextAfterCursor on inactive InputConnection [ ] W/IInputConnectionWrapper( 9633): getSelectedText on inactive InputConnection [ ] W/IInputConnectionWrapper( 9633): endBatchEdit on inactive InputConnection [ +11 ms] W/IInputConnectionWrapper( 9633): beginBatchEdit on inactive InputConnection [ ] W/IInputConnectionWrapper( 9633): getTextBeforeCursor on inactive InputConnection [ ] W/IInputConnectionWrapper( 9633): endBatchEdit on inactive InputConnection ``` ``` [βœ“] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-GB) β€’ Flutter version 2.2.3 at /Users/***/flutter β€’ Framework revision f4abaa0735 (4 days ago), 2021-07-01 12:46:11 -0700 β€’ Engine revision 241c87ad80 β€’ Dart version 2.13.4 [βœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.3) β€’ Android SDK at /Users/***/Library/Android/sdk β€’ Platform android-30, build-tools 30.0.3 β€’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java β€’ Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) β€’ All Android licenses accepted. [βœ“] Xcode - develop for iOS and macOS β€’ Xcode at /Applications/Xcode.app/Contents/Developer β€’ Xcode 12.5.1, Build version 12E507 β€’ CocoaPods version 1.10.1 [βœ“] Chrome - develop for the web β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [βœ“] Android Studio (version 4.2) β€’ 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 11.0.8+10-b944.6916264) [βœ“] VS Code (version 1.57.1) β€’ VS Code at /Applications/Visual Studio Code.app/Contents β€’ Flutter extension version 3.24.0 [βœ“] Connected device (3 available) β€’ Pixel 3 XL (mobile) β€’ 8BFY0YJKM β€’ android-arm64 β€’ Android 11 (API 30) β€’ sdk gphone x86 arm (mobile) β€’ emulator-5556 β€’ android-x86 β€’ Android 11 (API 30) (emulator) β€’ Chrome (web) β€’ chrome β€’ web-javascript β€’ Google Chrome 91.0.4472.114 β€’ No issues found! ```
gupta29470 commented 3 years ago

It is running fine in Pixel 4 XL (emulator) and real device ASUS Zenfone5z. It maybe happens because of your device software/keyboard bug.

Albertbol commented 3 years ago

It is running fine in Pixel 4 XL (emulator) and real device ASUS Zenfone5z. It maybe happens because of your device software/keyboard bug.

Hey, thanks for the reply, I wrote:

cannot reproduce with the simulator

I am not sure what is the bug but would be great to figure out, I saw on google a couple of similar issues with Samsung phones, but they were not directly related to my problem. I tried to add unique keys to the widget, nothing helped. Hardly believe that this happens only on my Google Pixel 3A and only.

gupta29470 commented 3 years ago

I tried but nothing found, maybe you should try to clear your phone's keyboard data.

Albertbol commented 3 years ago

Hey, if you mean Gboard words delete , it did not help.

TahaTesser commented 3 years ago

Hi @Albertbol Thanks for filing the issue, this certainly a weird issue, I have tried multiple Android devices, it doesn't reproduce on Oneplus, Samsung, Realme but only reproduced once on Xioami, when I tried to reproduce it again, several times, it doesn't happen again, reinstalled app, repeated the dialog steps still it didn't occur again.

flutter doctor -v ```console [βœ“] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.22000.51], locale en-US) β€’ Flutter version 2.2.3 at C:\Users\Taha\Code\flutter_stable β€’ Framework revision f4abaa0735 (6 days ago), 2021-07-01 12:46:11 -0700 β€’ Engine revision 241c87ad80 β€’ Dart version 2.13.4 [βœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.3) β€’ Android SDK at C:\Users\Taha\Code\SDK β€’ Platform android-30, build-tools 30.0.3 β€’ ANDROID_HOME = C:\Users\Taha\Code\SDK β€’ Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java.exe β€’ Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174) β€’ All Android licenses accepted. [βœ“] Chrome - develop for the web β€’ Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [βœ“] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.3) β€’ Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community β€’ Visual Studio Community 2019 version 16.10.31424.327 β€’ Windows 10 SDK version 10.0.19041.0 [!] Android Studio (not installed) β€’ Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions). [βœ“] VS Code (version 1.57.1) β€’ VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code β€’ Flutter extension version 3.24.0 [βœ“] Connected device (4 available) β€’ Redmi K20 Pro (mobile) β€’ def0ad20 β€’ android-arm64 β€’ Android 10 (API 29) β€’ Windows (desktop) β€’ windows β€’ windows-x64 β€’ Microsoft Windows [Version 10.0.22000.51] β€’ Chrome (web) β€’ chrome β€’ web-javascript β€’ Google Chrome 91.0.4472.124 β€’ Edge (web) β€’ edge β€’ web-javascript β€’ Microsoft Edge 91.0.864.64 ! Doctor found issues in 1 category. ```

Can you please try another physical device, if possible? Is the issue reproducible every time? Is there timing to it?

Albertbol commented 3 years ago

Hi @Albertbol Thanks for filing the issue, this certainly a weird issue, I have tried multiple Android devices, it doesn't reproduce on Oneplus, Samsung, Realme but only reproduced once on Xioami, when i tried to reproduce it again, several times, it doesn't happen on again, reinstalled app, repeated the dialog steps still it didn't occur again.

flutter doctor -v Can you please try another physical device, if possible? Is the issue reproducible every time? Is there timing to it?

Hey @TahaTesser , thanks for the response. Unfortunately, I don't have so many devices, I have tested on iPhone and iPad + different simulators all work perfectly, but then my Google Pixel 3A has a stable bug, you said that you could also recreate it once with Xiaomi. Not sure how it's related and what we can try more.

TahaTesser commented 3 years ago

Hi @Albertbol Given it reproduced once for me on XIoami K20 Pro (Android 10) and Pixel 3A for you I feel safe to label the issue, thank for the details

chinmaygarde commented 3 years ago

cc @blasten

Renzo-Olivares commented 11 months ago

From text input triage: Changing the priority of this issue to p3 since it will be hard to debug and find a solution without a way to consistently reproduce this.

darshankawar commented 1 month ago

@Albertbol Although I don't have the said physical device to verify this behavior, but I tried on Pixel 3a XL emulator (api 30) using latest stable version and your given code sample with which I couldn't replicate the reported behavior.

Can you check at your end using latest stable version and running on same affected device to see if the issue still persists or not ?

github-actions[bot] commented 1 month ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] commented 2 weeks ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.