象征 Flutter 崩溃

问题描述 投票:0回答:1

在 Android Studio 中运行我的应用程序时,它崩溃了:

F/libc    (28855): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 28898 (1.ui), pid 28855 (nalquest.survey)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'motorola/guamna_retail/guamna:11/RZA31.Q2-146-14-22-2/8a7d1:user/release-keys'
Revision: 'pvt'
ABI: 'arm64'
Timestamp: 2023-09-15 11:29:06-0400
pid: 28855, tid: 28898, name: 1.ui  >>> com.signalquest.survey <<<
uid: 10497
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    x0  0000006e0069b9e1  x1  0000000000000000  x2  0000000000000000  x3  0000000000000000
    x4  0000000000000000  x5  0000006e0920cfd1  x6  0000006e0a3d4430  x7  000000000000534f
    x8  0000000000000007  x9  0000000000000001  x10 000000700cbf4c68  x11 0000000000000001
    x12 000000000003c000  x13 0000000000000010  x14 0000006e09980081  x15 0000007009c09ae8
    x16 0000007009b31000  x17 0000006e08f00e01  x18 000000700980a000  x19 0000007009b30000
    x20 0000006e08052be1  x21 b4000071d3115f70  x22 0000006e00008081  x23 b4000071d3115f70
    x24 0000006e08456f51  x25 0000007009b30000  x26 b4000071d3115f70  x27 0000006e08456f20
    x28 000000080000006e  x29 0000007009c09af8
    lr  0000007012308184  sp  0000007009b30000  pc  0000006fe493497c  pst 0000000020000000
backtrace:
      #00 pc 000000000003497c  [anon:dart-code]

在 Android Studio 中调试 Android 项目时,我也能够重现这一点,但我也在那里得到了不透明的堆栈跟踪。

以下是我的 Flutter 环境的详细信息:

[✓] Flutter (Channel stable, 3.13.2, on macOS 13.4.1 22F770820d darwin-arm64, locale en-US)
    • Flutter version 3.13.2 on channel stable at /Users/csabbey/homebrew/Caskroom/flutter/3.3.6/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff5b5b5fa6 (3 weeks ago), 2023-08-24 08:12:28 -0500
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

我遇到了

flutter symbolize
,但要使用它,看起来我必须运行项目的混淆版本,在其中生成供其使用的调试信息,但我想未混淆的版本将是可符号化的.

我怎样才能找到这个“空指针取消引用”的原因?

编辑@DharamBudh 询问我的 pubspec 文件;这是我的直接依赖项:

  • build_runner 2.4.5
  • 收藏1.17.2
  • community_charts_flutter 1.0.1
  • connectivity_plus 4.0.1
  • 转换3.1.1
  • csv 5.0.2
  • 漂移2.9.0
  • drift_db_viewer 2.0.0
  • drift_dev 2.9.0
  • dxf 3.1.1
  • 菲2.0.2
  • 菲根8.0.2
  • 文件选择器5.2.10
  • firebase_auth 4.6.3
  • firebase_core 2.14.0
  • firebase_core_web 2.6.0
  • firebase_crashlytics 3.3.3
  • 颤动0.0.0
  • flutter_blue_plus 1.14.16
  • flutter_colorpicker 1.0.3
  • flutter_compass 0.7.0
  • flutter_keyboard_visibility_web 2.0.0
  • flutter_launcher_icons 0.13.1
  • flutter_lints 2.0.1
  • flutter_midi 1.1.0
  • flutter_native_splash 2.3.1
  • flutter_plugin_android_lifecycle 2.0.15
  • flutter_secure_storage 8.0.0
  • flutter_secure_storage_web 1.1.1
  • flutter_signin_button 2.0.0
  • flutter_test 0.0.0
  • flutter_typeahead 4.6.2
  • flutter_web_plugins 0.0.0
  • 地理定位器9.0.2
  • geolocator_web 2.1.6
  • 获取它7.6.0
  • google_sign_in 6.1.4
  • http 0.13.6
  • http_parser 4.0.2
  • 集成测试0.0.0
  • 国际0.18.1
  • 记录器1.4.0
  • maplibre_gl 0.16.0
  • mockito 5.4.2
  • 数字选择器2.1.2
  • package_info_plus 3.1.2
  • 路径1.8.3
  • 路径提供者2.0.15
  • 巡逻2.0.2
  • permission_handler 10.4.3
  • 屏幕亮度0.2.2
  • share_plus 6.3.4
  • sqlite3_flutter_libs 0.5.15
  • 同步3.1.0
  • uuid 3.0.7
  • 唤醒锁0.6.2
flutter debug-symbols
1个回答
0
投票

也许您的问题与包“maplibre_gl”有关,您可以在github上检查此问题:https://github.com/maplibre/flutter-maplibre-gl/issues/182

并查看所做的提交:https://github.com/maplibre/flutter-maplibre-gl/pull/259。 由于已合并到主分支中,您可以从主分支安装软件包并在项目中尝试修复。

像这样:

dependencies:
    ...
    maplibre_gl:
      git:
        url: https://github.com/maplibre/flutter-maplibre-gl.git
        ref: main

希望你能解决问题。 最好的问候

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.