Skip to content

ANR io.flutter.plugin.text.ProcessTextPlugin.cacheResolveInfos #155840

Closed

Description

@ashraf-patel-hs

Steps to reproduce

We got this log from playstore console

Expected results

No ANR

Actual results

ANR

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

  #00  pc 0x00000000000507d8  /system/lib64/libandroidfw.so (android::ChunkIterator::Next+152)
  #01  pc 0x0000000000055c90  /system/lib64/libandroidfw.so (android::LoadedPackage::Load+736)
  #02  pc 0x000000000005823c  /system/lib64/libandroidfw.so (android::LoadedArsc::LoadTable+412)
  #03  pc 0x00000000000587d4  /system/lib64/libandroidfw.so (android::LoadedArsc::Load+244)
  #04  pc 0x00000000000367cc  /system/lib64/libandroidfw.so (android::ApkAssets::LoadImpl+172)
  #05  pc 0x00000000000364b0  /system/lib64/libandroidfw.so (android::ApkAssets::LoadImpl+256)
  #06  pc 0x0000000000036178  /system/lib64/libandroidfw.so (android::ApkAssets::Load+56)
  #07  pc 0x00000000001c0f30  /system/lib64/libandroid_runtime.so (android::NativeLoad+768)
  at android.content.res.ApkAssets.nativeLoad (Native method)
  at android.content.res.ApkAssets.<init> (ApkAssets.java:296)
  at android.content.res.ApkAssets.loadFromPath (ApkAssets.java:145)
  at android.app.ResourcesManager.loadApkAssets (ResourcesManager.java:473)
  at android.app.ResourcesManager.-$$Nest$mloadApkAssets (unavailable)
  at android.app.ResourcesManager$ApkAssetsSupplier.load (ResourcesManager.java:168)
  at android.app.ResourcesManager.createApkAssetsSupplierNotLocked (ResourcesManager.java:998)
  at android.app.ResourcesManager.getResources (ResourcesManager.java:1119)
  at android.app.ActivityThread.getTopLevelResources (ActivityThread.java:2540)
  at android.app.ApplicationPackageManager.getResourcesForApplication (ApplicationPackageManager.java:2050)
  at android.app.ApplicationPackageManager.getResourcesForApplication (ApplicationPackageManager.java:2036)
  at android.app.ApplicationPackageManager.getText (ApplicationPackageManager.java:2353)
  at android.content.pm.ComponentInfo.loadUnsafeLabel (ComponentInfo.java:130)
  at android.content.pm.PackageItemInfo.loadLabel (PackageItemInfo.java:212)
  at android.content.pm.ResolveInfo.loadLabel (ResolveInfo.java:238)
  at io.flutter.plugin.text.ProcessTextPlugin.cacheResolveInfos (ProcessTextPlugin.java:125)
  at io.flutter.plugin.text.ProcessTextPlugin.queryTextActions (ProcessTextPlugin.java:54)
  at io.flutter.embedding.engine.systemchannels.ProcessTextChannel$1.onMethodCall (ProcessTextChannel.java:63)
  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java:267)
  at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:292)
  at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0 (DartMessenger.java:319)
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:201)
  at android.os.Looper.loop (Looper.java:288)
  at android.app.ActivityThread.main (ActivityThread.java:8046)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:703)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:911)

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.22.1, on macOS 14.0 23A344 darwin-arm64, locale en-AE)
    ! Flutter version 3.22.1 on channel [user-branch] at /Users/ashraf/projects/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[!] Android Studio (version unknown)
    ✗ Unable to determine Android Studio version.
[✓] Android Studio (version 2024.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.0.2)
[✓] VS Code (version 1.93.1)
[✓] Connected device (4 available)            
    ! Error: Browsing on the local area network for Ashraf’s iPhone (2). Ensure the device is unlocked and attached with a cable or
      associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

! Doctor found issues in 2 categories.

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Sep 30, 2024
  2. huycozy commented on Sep 30, 2024

    @huycozy
    Member

    Based on the stack trace, this may be related or similar to a case at #153749. Are you frequently reading the clipboard content when using TextField widget on your app? (May be similar to #101196 as well)

    Please also check #153749 (comment) if it works.

  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 30, 2024
  4. github-actions commented on Oct 21, 2024

    @github-actions

    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.

  5. github-actions commented on Nov 4, 2024

    @github-actions

    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.

  6. locked as resolved and limited conversation to collaborators on Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for 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