应用程序在Android 10上崩溃,Flutter Beta频道

发布于 2025-01-23 06:30:12 字数 2776 浏览 1 评论 0原文

我面临的是Google Play控制台报告的多次崩溃,并具有以下跟踪,所有崩溃均适用于运行Android 10的设备,不同的设备(其中大多数是Redmi),

我找不到多个小时搜索后解决此问题的清晰方法。

我使用的是Flutter Beta频道(因为它在显示ADMOB广告时会改善性能)。

不幸的是,我无法从真实设备(我只有2个)或模拟器中复制此问题。 直到我切换到beta频道,这个问题才存在。 Crashlytics不会显示这些错误,我只在Play Console Crash Reports中看到它们。

任何帮助将不胜感激。

Jerome

backtrace:
  #00  pc 000000000005f356  /apex/com.android.runtime/lib/bionic/libc.so (abort+166)
  #00  pc 0000000000005a31  /system/lib/liblog.so (__android_log_assert+176)
  #00  pc 000000000029ec3b  /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::getFrame()+26)
  #00  pc 00000000002a4b11  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+140)
  #00  pc 00000000002a414b  /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+170)
  #00  pc 00000000002b1aef  /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158)
  #00  pc 00000000002b194d  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72)
  #00  pc 000000000000d8b3  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+182)
  #00  pc 00000000000a6293  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000060803  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

在我的应用中使用以下依赖关系:

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.4
  getwidget: ^2.0.5
  http: ^0.13.4
  url_launcher: ^6.0.20
  connectivity_plus: ^2.3.0
  adaptive_theme: ^2.3.1
  flex_color_scheme: ^5.0.0
  package_info_plus: ^1.4.2
  firebase_core: ^1.14.1
  firebase_analytics: ^9.1.5 # back in V10.2.0
  firebase_messaging: ^11.2.13
  firebase_crashlytics: ^2.6.2 # V10.2.0
  overlay_support: ^1.2.1
  flutter_device_type: ^0.4.0
  shared_preferences: ^2.0.13
  flutter_inappwebview: ^5.4.0+2
  badges: ^2.0.2
  path_provider: ^2.0.9
  fast_contacts: ^1.1.1
  permission_handler: ^9.2.0
  audioplayers: ^0.20.1
  dio: ^4.0.6
  universal_html: ^2.0.8
  open_file: ^3.2.1
  google_maps_flutter: ^2.1.3
  location: ^4.3.0
  clustering_google_maps: 0.1.2-nullsafety.3
  dart_geohash: ^2.0.2
  xml: ^5.3.1 # ^6.0.1
  plist_parser: ^0.0.7
  custom_info_window: ^1.0.1
  clippy_flutter: ^2.0.0-nullsafety.1
  auto_size_text: ^3.0.0
  google_mobile_ads: ^1.2.0
  flutter_funding_choices: ^0.3.0+2
  gdpr_dialog: ^2.1.1
  flutter_font_icons: ^2.2.4
  local_auth: ^2.0.0
  flutter_screen_lock: ^5.0.11+1

  flutter_localizations: # Add this line
    sdk: flutter

  intl: ^0.17.0

dev_dependencies:
  flutter_test:
    sdk: flutter
    flutter_lints: ^1.0.4

I'm facing multiple crashes reported by google play console, with the following trace, all crashes are for devices running Android 10, different devices (most of them seem Redmi)

I cannot find a clear way to solve this, after multiple hours searching.

I'm using flutter beta channel (Because it improves a lot the performances when displaying AdMob ads).

Unfortunately I'm not able to reproduce this issue from a real device (I only own 2), nor from the emulator.
This issue was not present until I switched to the beta channel.
CrashLytics does not show those errors, I only see them in the play console crash reports.

Any help would be greatly appreciated.

Jerome

backtrace:
  #00  pc 000000000005f356  /apex/com.android.runtime/lib/bionic/libc.so (abort+166)
  #00  pc 0000000000005a31  /system/lib/liblog.so (__android_log_assert+176)
  #00  pc 000000000029ec3b  /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::getFrame()+26)
  #00  pc 00000000002a4b11  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+140)
  #00  pc 00000000002a414b  /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+170)
  #00  pc 00000000002b1aef  /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158)
  #00  pc 00000000002b194d  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72)
  #00  pc 000000000000d8b3  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+182)
  #00  pc 00000000000a6293  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000060803  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

Using the following dependencies in my app :

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.4
  getwidget: ^2.0.5
  http: ^0.13.4
  url_launcher: ^6.0.20
  connectivity_plus: ^2.3.0
  adaptive_theme: ^2.3.1
  flex_color_scheme: ^5.0.0
  package_info_plus: ^1.4.2
  firebase_core: ^1.14.1
  firebase_analytics: ^9.1.5 # back in V10.2.0
  firebase_messaging: ^11.2.13
  firebase_crashlytics: ^2.6.2 # V10.2.0
  overlay_support: ^1.2.1
  flutter_device_type: ^0.4.0
  shared_preferences: ^2.0.13
  flutter_inappwebview: ^5.4.0+2
  badges: ^2.0.2
  path_provider: ^2.0.9
  fast_contacts: ^1.1.1
  permission_handler: ^9.2.0
  audioplayers: ^0.20.1
  dio: ^4.0.6
  universal_html: ^2.0.8
  open_file: ^3.2.1
  google_maps_flutter: ^2.1.3
  location: ^4.3.0
  clustering_google_maps: 0.1.2-nullsafety.3
  dart_geohash: ^2.0.2
  xml: ^5.3.1 # ^6.0.1
  plist_parser: ^0.0.7
  custom_info_window: ^1.0.1
  clippy_flutter: ^2.0.0-nullsafety.1
  auto_size_text: ^3.0.0
  google_mobile_ads: ^1.2.0
  flutter_funding_choices: ^0.3.0+2
  gdpr_dialog: ^2.1.1
  flutter_font_icons: ^2.2.4
  local_auth: ^2.0.0
  flutter_screen_lock: ^5.0.11+1

  flutter_localizations: # Add this line
    sdk: flutter

  intl: ^0.17.0

dev_dependencies:
  flutter_test:
    sdk: flutter
    flutter_lints: ^1.0.4

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文