Skip to content

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

Closed

Description

@AnilYadavBB

Steps to reproduce

Got this ANR from PlayStore

Expected results

.

Actual results

.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

#00  pc 0x000000000004927c  /system/lib64/libandroidfw.so (android::ChunkIterator::Next()+92)
#01  pc 0x000000000004d658  /system/lib64/libandroidfw.so (android::LoadedPackage::Load(android::Chunk const&, unsigned int)+792)
#02  pc 0x000000000004f090  /system/lib64/libandroidfw.so (android::LoadedArsc::LoadTable(android::Chunk const&, android::LoadedIdmap const*, unsigned int)+472)
#03  pc 0x000000000004f5d0  /system/lib64/libandroidfw.so (android::LoadedArsc::Load(android::BasicStringPiece<char> const&, android::LoadedIdmap const*, unsigned int)+352)
#04  pc 0x000000000002f574  /system/lib64/libandroidfw.so (android::ApkAssets::LoadImpl(std::__1::unique_ptr<android::AssetsProvider const, std::__1::default_delete<android::AssetsProvider const> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, std::__1::unique_ptr<android::AssetsProvider const, std::__1::default_delete<android::AssetsProvider const> >, std::__1::unique_ptr<android::Asset, std::__1::default_delete<android::Asset> >, std::__1::unique_ptr<android::LoadedIdmap const, std::__1::default_delete<android::LoadedIdmap const> >)+492)
#05  pc 0x000000000002f0d0  /system/lib64/libandroidfw.so (android::ApkAssets::Load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, std::__1::unique_ptr<android::AssetsProvider const, std::__1::default_delete<android::AssetsProvider const> >)+120)
#06  pc 0x0000000000161f94  /system/lib64/libandroid_runtime.so (android::NativeLoad(_JNIEnv*, _jclass*, int, _jstring*, int, _jobject*)+1060)
at android.content.res.ApkAssets.nativeLoad (Native method)
at android.content.res.ApkAssets.<init> (ApkAssets.java:291)
at android.content.res.ApkAssets.loadFromPath (ApkAssets.java:140)
at android.app.ResourcesManager.loadApkAssets (ResourcesManager.java:400)
at android.app.ResourcesManager.createAssetManager (ResourcesManager.java:429)
at android.app.ResourcesManager.createResourcesImpl (ResourcesManager.java:569)
at android.app.ResourcesManager.findOrCreateResourcesImplForKeyLocked (ResourcesManager.java:609)
at android.app.ResourcesManager.createResources (ResourcesManager.java:861)
at android.app.ResourcesManager.getResources (ResourcesManager.java:930)
at android.app.ActivityThread.getTopLevelResources (ActivityThread.java:2476)
at android.app.ApplicationPackageManager.getResourcesForApplication (ApplicationPackageManager.java:1726)
at android.app.ApplicationPackageManager.getText (ApplicationPackageManager.java:2068)
at android.content.pm.ComponentInfo.loadUnsafeLabel (ComponentInfo.java:111)
at android.content.pm.PackageItemInfo.loadLabel (PackageItemInfo.java:227)
at android.content.pm.ResolveInfo.loadLabel (ResolveInfo.java:245)
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:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:257)
at android.app.ActivityThread.main (ActivityThread.java:8192)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1015)

Flutter Doctor output

Please check this ANR

Activity

  1. darshankawar commented on Aug 22, 2025

    @darshankawar
    Member

    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)

    There have been couple of similar issues reported but without any concrete steps to replicate.

    #153749
    #155840

    @AnilYadavBB Please provide flutter doctor -v including devices on which this crash occurs and will need a reproducible code sample in order to make this issue actionable.

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 22, 2025
  3. AnilYadavBB commented on Aug 22, 2025

    @AnilYadavBB
    Author

    [✓] Flutter (Channel stable, 3.32.6, on macOS 14.1.1 23B81 darwin-arm64 (Rosetta), locale en-IN) [8.3s]
    • Flutter version 3.32.6 on channel stable at /Users/flutter-sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 077b4a4 (6 weeks ago), 2025-07-08 13:31:08 -0700
    • Engine revision 72f2b18
    • Dart version 3.8.1
    • DevTools version 2.45.1

    [!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [15.5s]
    • Android SDK at /Users/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk-17.jdk/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 Java(TM) SE Runtime Environment (build 17.0.13+10-LTS-268)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

    [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) [15.5s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.16.2

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

    [✓] Android Studio (version 2025.1) [96ms]
    • 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.6+-13391695-b895.109)

    [✓] Android Studio (version 2024.1) [85ms]
    • Android Studio at /Applications/Android Studio 2.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 17.0.11+0-17.0.11b1207.24-11852314)

    [✓] Connected device (3 available) [43.1s]
    • SM M356B (mobile) • RZCX92DCK0L • android-arm64 • Android 15 (API 35)
    • macOS (desktop) • macos • darwin-arm64 • macOS 14.1.1 23B81 darwin-arm64 (Rosetta)
    • Chrome (web) • chrome • web-javascript • Google Chrome 139.0.7258.139

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

    @darshankawar - This log I am getting from the Play Console. I am not able to reproduce it in my device.

    Image Image Image Image
  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 22, 2025
  5. darshankawar commented on Aug 22, 2025

    @darshankawar
    Member

    Ok, the affected devices have MediaTek and Qualcomm processors mostly.
    Are you by chance using flutter_process_text package ? https://pub.dev/packages/flutter_process_text
    Also, provide your pubspec.yaml which is being used in your production app.

  6. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 22, 2025
  7. AnilYadavBB commented on Aug 22, 2025

    @AnilYadavBB
    Author

    @darshankawar
    PFA details

    pubspec.yamil

    name: bb_flutter
    description: A new Flutter module project.

    The following defines the version and build number for your application.

    A version number is three numbers separated by dots, like 1.2.43

    followed by an optional build number separated by a +.

    Both the version and the builder number may be overridden in flutter

    build by specifying --build-name and --build-number, respectively.

    In Android, build-name is used as versionName while build-number used as versionCode.

    Read more about Android versioning at https://developer.android.com/studio/publish/versioning

    In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.

    Read more about iOS versioning at

    https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

    This version is used only for the Runner app, which is used if you just do

    a flutter run or a flutter make-host-app-editable. It has no impact

    on any other native host app that you embed your Flutter project into.

    version: 8.0.6+500

    publish_to: none

    Overriding iOS HyperSDK Version for Juspay SDK

    hyper_sdk_ios_version: "2.2.3.2"

    scripts:
    gen: "flutter pub run build_runner watch --delete-conflicting-outputs"

    environment:
    sdk: "3.8.1"

    dependencies:
    flutter:
    sdk: flutter
    url_launcher: 6.2.5
    smooth_page_indicator: ^1.0.0+2
    carousel_slider: 5.0.0
    cached_network_image: ^3.3.1
    flutter_cache_manager: ^3.3.0
    sqflite: 2.4.0
    flutter_svg: ^2.0.7
    shimmer: ^3.0.0
    animated_marker: ^0.0.5
    firebase_crashlytics: 3.5.0
    rxdart: ^0.27.7
    video_player: ^2.7.1
    flutter_staggered_grid_view: ^0.6.2
    #universal_html: ^2.0.8
    json_annotation: ^4.7.0
    story_time: ^1.0.6
    native_dio_adapter: 1.3.0
    dio: ^5.2.1
    google_maps_flutter: 2.6.1
    google_maps_flutter_ios: 2.5.2
    geolocator: ^14.0.2
    sms_autofill: ^2.4.1
    location: 8.0.1
    permission_handler: 12.0.1
    nudgecore_v2: 5.0.14

    flutter_system_proxy:
    git:
    url: https://github.com/BrowserStackCE/flutter_system_proxy.git
    ref: main

    provider: 6.1.1
    lottie: ^3.1.3
    intl: ^0.18.1
    collection: ^1.18.0

    isar: ^3.1.0+1

    isar_flutter_libs: ^3.1.0+1

    path_provider: ^2.0.15
    scrollable_positioned_list: ^0.3.8
    firebase_performance: ^0.9.4+4
    simple_html_css: ^5.0.0
    shared_preferences: ^2.2.0
    mockito: ^5.4.2
    gradient_borders: ^1.0.0
    firebase_core: ^2.32.0
    firebase_remote_config: ^4.4.5
    firebase_analytics: ^10.5.1

    http_certificate_pinning: ^2.0.7

    webview_flutter: ^4.8.0
    flutter_inappwebview: ^6.1.5
    dotted_line: ^3.2.2
    #percent_indicator: ^4.0.1
    #readmore: ^2.2.0
    go_router: 14.2.6
    flutter_widget_from_html: 0.15.3
    #photo_view: ^0.14.0
    visibility_detector: ^0.4.0+2

    newrelic_mobile: ^1.0.6

    synchronized: ^3.1.0+1
    fluttertoast: ^8.2.4

    cronet_http: 1.3.2

    dotted_border: ^2.1.0
    #super_tooltip: ^2.0.7
    dio_smart_retry: 6.0.0
    camera: 0.11.0+2
    path: ^1.9.0
    async: ^2.11.0
    http_parser: ^4.0.2
    html: ^0.15.5
    mime_type: ^1.0.1
    equatable: ^2.0.5
    app_settings: 5.1.1
    package_info_plus: ^8.1.1
    webview_flutter_android: ^3.16.0
    webview_flutter_wkwebview: 3.17.0
    crypto: ^3.0.6
    ntp: ^2.0.0
    image_picker: ^1.1.2
    flutter_image_compress: ^2.4.0
    share_plus: 10.1.4
    device_info_plus: 11.3.0
    hypersdkflutter: 4.0.30
    incognia_flutter: ^1.5.0

    dependency_overrides:
    camera_android_camerax: 0.6.17+1
    http: ^1.2.2
    #geolocator_android: 4.1.0
    uuid: ^4.1.0

    flutter_inappwebview: ^6.0.0

    firebase_core_platform_interface: 5.4.0
    image_picker_android: 0.8.12+23
    video_player_android: 2.8.7

    dev_dependencies:
    flutter_test:
    sdk: flutter
    flutter_lints: 2.0.1
    json_serializable: 6.5.4
    build_runner: ^2.4.5
    logging: 1.1.1 # remove this dependency when build_runner is stable
    dart_code_metrics: ^5.2.1
    isar_generator: ^3.1.0+1

    For information on the generic Dart part of this file, see the

    following page: https://dart.dev/tools/pub/pubspec

    flutter:

    The following line ensures that the Material Icons font is

    included with your application, so that you can use the icons in

    the material Icons class.

    uses-material-design: true

    For details regarding fonts from package dependencies,

    see https://flutter.dev/custom-fonts/#from-packages

    This section identifies your Flutter project as a module meant for

    embedding in a native host app. These identifiers should not ordinarily

    be changed after generation - they are used to ensure that the tooling can

    maintain consistency when adding or modifying assets and plugins.

    They also do not have any bearing on your native host application's

    identifiers, which may be completely independent or the same as these.

    module:
    androidX: true

  8. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 22, 2025
  9. darshankawar commented on Aug 25, 2025

    @darshankawar
    Member

    Thanks for the update. Since there are lot of external plugins you are using, it'll be hard to find out what exactly is triggering the error. Please try to find a pattern or steps that triggers this error, so that it'll be helpful to analyze further.

  10. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 25, 2025
  11. github-actions commented on Sep 15, 2025

    @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.

  12. github-actions commented on Sep 29, 2025

    @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.

  13. locked as resolved and limited conversation to collaborators on Sep 29, 2025
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