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
166.76k stars 27.64k forks source link

Native crash on Play Store with Samsung devices using Flutter 3.3.0 #111180

Closed akarapetsas closed 1 year ago

akarapetsas commented 2 years ago

Hi there, I have uploaded my flutter app on the Android developer console and from the Pre-Launch report I get the following native crash. I wasn't able to reproduce it with my personal device though. Here is the stacktrace:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/x1quex/x1q:10/QP1A.190711.020/G981U1UES1ATFB:user/release-keys'
Revision: '14'
ABI: 'arm64'
Timestamp: 2022-09-07 11:12:39-0700
pid: 5710, tid: 6109, name: 1.ui  >>> com.benow.app <<<
uid: 10283
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x140
Cause: null pointer dereference
    x0  00000072b3bac700  x1  0000007100000071  x2  00000072b3bacd48  x3  00000072b3bacd50
    x4  0000000000000007  x5  00000072aca45878  x6  0000000000000000  x7  0000000000000001
    x8  0000000000000000  x9  00000072acc64e58  x10 0000000000000000  x11 00000072b3bacb78
    x12 00000072acb84768  x13 00000072acc61e58  x14 0000007100c07d20  x15 00000072b3bacce0
    x16 0000000000000002  x17 0000000000000032  x18 00000072995bc000  x19 0000007100000071
    x20 00000072b3bac700  x21 00000072b3bac6f0  x22 0000000000000007  x23 00000072b3bace30
    x24 0000007100015b41  x25 00000072b3ad4000  x26 00000072bd0c5800  x27 00000072b3bacd48
    x28 0000000800000071  x29 00000072b3bacd08
    sp  00000072b3bac650  lr  00000072aca459d0  pc  00000072ac97e3b0

Here are the device details:

Screenshot 2022-09-08 at 13 42 23

I'm using Flutter version 3.3.0.

** Updated with full crash logs

Thanks is advance logcat (2).txt

exaby73 commented 2 years ago

@flutter-symbolizer-bot flutter#v3.3.0 android release arm64 https://github.com/flutter/flutter/issues/111180#issue-1366159904

flutter-symbolizer-bot commented 2 years ago

@exaby73 No crash reports found. I used the following overrides when looking for reports

SymbolizationOverrides(engineHash: null, flutterVersion: 3.3.0, arch: arm64, mode: release, force: false, format: null, os: null)

Note that I can only find native Android and iOS crash reports automatically, you need to explicitly point me to crash reports in other supported formats.

If the crash report is embedded into a log and prefixed with additional information I might not be able to automatically strip those prefixes. Currently I only support flutter run -v, adb logcat and device lab logs.

See my documentation for more details on how to do that.

exaby73 commented 2 years ago

@flutter-symbolizer-bot flutter#v3.3.0 android release arm64 https://github.com/flutter/flutter/issues/111180#issue-1366159904

flutter-symbolizer-bot commented 2 years ago

@exaby73 No crash reports found. I used the following overrides when looking for reports

SymbolizationOverrides(engineHash: null, flutterVersion: 3.3.0, arch: arm64, mode: release, force: false, format: null, os: null)

Note that I can only find native Android and iOS crash reports automatically, you need to explicitly point me to crash reports in other supported formats.

If the crash report is embedded into a log and prefixed with additional information I might not be able to automatically strip those prefixes. Currently I only support flutter run -v, adb logcat and device lab logs.

See my documentation for more details on how to do that.

exaby73 commented 2 years ago

Hello @akarapetsas. Thank you for filing this issue. Labelling for further insights from the team.

stuartmorgan commented 2 years ago

Here is the stacktrace

You've provided the register values (and logcat), but not the actual stack. Please provide the crash stack, since without that we can't investigate further.

akarapetsas commented 2 years ago

Thanks for the response @stuartmorgan. I'm not quite sure what you mean with the term crash stack, could you please elaborate? Also, this crash is happening on a specific device on the "Pre-launch report" generated by the android developer console (which is powered by the Firebase Test Labs). I wasn't able to reproduce on any of my devices (and unfortunately I don't have a Samsung Galaxy S20 with me). If you know how I can fetch this crash stack from the Firebase Test Labs, please let me know and I'll do so ASAP.

Hixie commented 2 years ago

Looking at the logcat file it looks like the full crash log with stack trace is:

09-07 11:12:39.656: A/DEBUG(6998): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-07 11:12:39.656: A/DEBUG(6998): Build fingerprint: 'samsung/x1quex/x1q:10/QP1A.190711.020/G981U1UES1ATFB:user/release-keys'
09-07 11:12:39.656: A/DEBUG(6998): Revision: '14'
09-07 11:12:39.656: A/DEBUG(6998): ABI: 'arm64'
09-07 11:12:39.657: A/DEBUG(6998): Timestamp: 2022-09-07 11:12:39-0700
09-07 11:12:39.657: A/DEBUG(6998): pid: 5710, tid: 6109, name: 1.ui  >>> com.benow.app <<<
09-07 11:12:39.657: A/DEBUG(6998): uid: 10283
09-07 11:12:39.657: A/DEBUG(6998): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x140
09-07 11:12:39.657: A/DEBUG(6998): Cause: null pointer dereference
09-07 11:12:39.657: A/DEBUG(6998):     x0  00000072b3bac700  x1  0000007100000071  x2  00000072b3bacd48  x3  00000072b3bacd50
09-07 11:12:39.657: A/DEBUG(6998):     x4  0000000000000007  x5  00000072aca45878  x6  0000000000000000  x7  0000000000000001
09-07 11:12:39.657: A/DEBUG(6998):     x8  0000000000000000  x9  00000072acc64e58  x10 0000000000000000  x11 00000072b3bacb78
09-07 11:12:39.657: A/DEBUG(6998):     x12 00000072acb84768  x13 00000072acc61e58  x14 0000007100c07d20  x15 00000072b3bacce0
09-07 11:12:39.657: A/DEBUG(6998):     x16 0000000000000002  x17 0000000000000032  x18 00000072995bc000  x19 0000007100000071
09-07 11:12:39.657: A/DEBUG(6998):     x20 00000072b3bac700  x21 00000072b3bac6f0  x22 0000000000000007  x23 00000072b3bace30
09-07 11:12:39.657: A/DEBUG(6998):     x24 0000007100015b41  x25 00000072b3ad4000  x26 00000072bd0c5800  x27 00000072b3bacd48
09-07 11:12:39.657: A/DEBUG(6998):     x28 0000000800000071  x29 00000072b3bacd08
09-07 11:12:39.657: A/DEBUG(6998):     sp  00000072b3bac650  lr  00000072aca459d0  pc  00000072ac97e3b0
09-07 11:12:39.758: A/DEBUG(6998): backtrace:
09-07 11:12:39.758: A/DEBUG(6998):       #00 pc 00000000006963b0  /data/app/com.benow.app-SkjjV1YpQRECNIhufX_HOg==/split_config.arm64_v8a.apk!libflutter.so (offset 0x7c2000) (BuildId: ece81c867e9e461a9dea860e83dd2d018211daed)
09-07 11:12:39.758: A/DEBUG(6998):       #01 pc 0000000000043894  /data/app/com.benow.app-SkjjV1YpQRECNIhufX_HOg==/split_config.arm64_v8a.apk
Hixie commented 2 years ago

@flutter-symbolizer-bot flutter#v3.3.0 android release arm64 https://github.com/flutter/flutter/issues/111180#issuecomment-1246046293

flutter-symbolizer-bot commented 2 years ago

@Hixie No crash reports found. I used the following overrides when looking for reports

SymbolizationOverrides(engineHash: null, flutterVersion: 3.3.0, arch: arm64, mode: release, force: false, format: null, os: null)

Note that I can only find native Android and iOS crash reports automatically, you need to explicitly point me to crash reports in other supported formats.

If the crash report is embedded into a log and prefixed with additional information I might not be able to automatically strip those prefixes. Currently I only support flutter run -v, adb logcat and device lab logs.

See my documentation for more details on how to do that.

rahmanrezaee commented 2 years ago

Its same to me at debugs mode after upgrade to 3.3.2 show this crash in android devices

If you downgrade to v3.0.5 all bugs solve

also I added the android:hardwareAccelerated="false" into androidManifest.xml but its not worked

I thinks this is kind of bugs in flutter sdk 3.3.0 above in android devices

this all packages I used


dependencies:
  audio_session: ^0.1.7
  audio_waveforms: ^0.1.4
  badges: null
  better_player: null
  bot_toast: ^4.0.0
  cached_network_image: ^3.1.0
  calendar_date_picker2:
    git:
      url: https://github.com/rahmanrezaee/calendar_date_picker2.git
      ref: main
  camera: ^0.10.0+1
  connectivity_plus: ^2.3.0
  country_code_picker: ^2.0.2
  cupertino_icons: ^1.0.2
  device_info: ^2.0.2
  dio: ^4.0.6
  dio_http_cache: ^0.3.0
  easy_localization: ^3.0.0
  extended_image: ^6.2.1
  feather_icons: null
  firebase_auth: ^3.9.0
  firebase_core: ^1.22.0
  firebase_messaging: ^13.0.2
  flutter:
    sdk: flutter
  flutter_contacts: ^1.1.4
  flutter_facebook_auth: ^4.4.1
  flutter_fortune_wheel: ^1.2.0
  flutter_html: ^3.0.0-alpha.5
  flutter_local_notifications: ^9.2.0
  flutter_mobx: ^2.0.6+1
  flutter_modular: ^5.0.3
  flutter_phoenix: ^1.0.0
  flutter_portal: ^1.1.1
  flutter_slidable: ^2.0.0
  flutter_sound: ^9.2.13
  flutter_staggered_grid_view: ^0.6.1
  flutter_svg: ^1.1.1+1
  flutter_typeahead: ^4.0.0
  font_awesome_flutter: ^10.1.0
  freezed_annotation: ^0.15.0
  geolocator: ^9.0.1
  google_maps_flutter: ^2.1.4
  google_place: ^0.4.3
  google_sign_in: ^5.1.1
  http: ^0.13.3
  iconsax: null
  image_cropper: ^3.0.0
  image_picker: ^0.8.4
  incrementally_loading_listview: ^1.0.0
  intl: ^0.17.0
  jiffy: ^5.0.0
  just_audio: ^0.9.28
  just_waveform: ^0.0.3
  lottie: null
  mobile_scanner: ^2.0.0
  mobx: ^2.0.7+5
  multi_image_picker: ^4.6.5
  overlay_support: ^2.0.1
  path_provider: ^2.0.8
  permission_handler: ^10.0.0
  photo_manager: ^2.2.1
  photo_view: ^0.14.0
  pinput: ^2.2.11
  qr_flutter:
    git:
      url: https://github.com/ahzf/qr.flutter.git
  quiver: ^3.0.1
  rxdart: ^0.27.5
  scroll_to_index: ^3.0.1
  shared_preferences: ^2.0.7
  sign_in_with_apple: 4.1.0
  socket_io_client: ^2.0.0-beta.2
  sqflite: ^2.0.3+1
  url_launcher: ^6.0.20
  uuid: ^3.0.6
  video_player: ^2.4.7
  webview_flutter_plus: ^0.3.0+2
  dotted_border: ^2.0.0+2

  flutter_overlay_window: 
    git:
      url: https://github.com/rahmanrezaee/flutter_overlay_window.git
      ref: main 

dev_dependencies:
  build_runner: null
  flutter_launcher_icons: "^0.9.2"
  flutter_native_splash: ^2.2.0+1
  flutter_test:
    sdk: flutter
  freezed: ^0.14.2
  http_mock_adapter: ^0.3.3
  json_serializable: ^4.1.4
  mobx_codegen: null
  mockito: ^5.0.15
  sqflite_common_ffi: ^2.1.1+1
  # mockito: ^5.3.0
flutter_native_splash:
  color: "#FFFFFF"
  image: "assets/images/logo_splash.png"
  fill: true
akarapetsas commented 2 years ago

@stuartmorgan any updates on this issue? Thank you in advance

Passer-by commented 2 years ago

I had the same problem `Debug service listening on ws://127.0.0.1:61924/bO1vgdgSxcQ=/ws Syncing files to device V2055A... I/WebViewFactory(26448): Loading com.google.android.webview version 105.0.5195.136 (code 519513634) W/linker (26448): Warning: "/data/app/~~tC57IfQMejo5R9x142HkDw==/com.google.android.trichromelibrary_519513634-cJ4jDlagfdz-it1bO5--hg==/base.apk!/lib/arm64-v8a/libmonochrome_64.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (greylist, reflection, allowed) I/cr_WVCFactoryProvider(26448): Loaded version=105.0.5195.136 minSdkVersion=29 isBundle=true multiprocess=true packageId=2 I/cr_LibraryLoader(26448): Successfully loaded native library I/cr_CachingUmaRecorder(26448): Flushed 8 samples from 8 histograms. I/TetheringManager(26448): registerTetheringEventCallback:com.example.example W/chromium(26448): [WARNING:dns_config_service_android.cc(115)] Failed to read DnsConfig. W/example.exampl(26448): Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (greylist, reflection, allowed) W/cr_media(26448): Requires BLUETOOTH permission I/PlatformViewsController(26448): Using hybrid composition for platform view: 0 I/example.exampl(26448): Waiting for a blocking GC ProfileSaver F/libc (26448): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x140 in tid 26591 (1.ui), pid 26448 (example.example) Softversion: PD2055D_A_1.10.22 Time: 2022-10-29 17:25:57


Build fingerprint: 'vivo/PD2055/PD2055:11/RP1A.200720.012/compiler0208154918:user/release-keys' Revision: '0' ABI: 'arm64' Timestamp: 2022-10-29 17:25:57+0800 pid: 26448, tid: 26591, name: 1.ui >>> com.example.example <<< uid: 11077 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x140 Cause: null pointer dereference x0 0000006fb2c19a00 x1 0000006e054b7e09 x2 0000006fb2c1a068 x3 0000006fb2c1a070 x4 0000000000000007 x5 0000006fad8b0cb4 x6 0000000000000000 x7 e1c341c061c22250 x8 0000000000000000 x9 0000006fadc5e120 x10 0000006fb2c199b8 x11 0000006fb2c19e78 x12 0000000000000001 x13 00000569b785375f x14 0023f3d7e78184c7 x15 0000006fb2c19ff0 x16 0000000000000002 x17 0000006e00011571 x18 0000006faa09c000 x19 0000006fb2c19a00 x20 0000006e054b7e09 x21 0000006fb2c199a0 x22 0000000000000007 x23 b400006f937df4d0 x24 0000006e0000c2c1 x25 0000006fb2b40000 x26 b400007012de4400 x27 0000006fb2c1a068 x28 000000080000006e x29 0000006fb2c1a028 lr 0000006fad75d5fc sp 0000006fb2c19950 pc 0000006fad75d640 pst 0000000080001000 backtrace:

00 pc 0000000001a17640 /data/app/~~w5BZ71btmvoicXphel79GA==/com.example.example-NMjSDz_I_rn_BgJ09CXczg==/lib/arm64/libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)

  #01 pc 0000000001b6add0  /data/app/~~w5BZ71btmvoicXphel79GA==/com.example.example-NMjSDz_I_rn_BgJ09CXczg==/lib/arm64/libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
  #02 pc 0000000000002988  [anon:dart-codespace]

Lost connection to device.`

Passer-by commented 2 years ago

I had the same problem `Debug service listening on ws://127.0.0.1:61924/bO1vgdgSxcQ=/ws Syncing files to device V2055A... I/WebViewFactory(26448): Loading com.google.android.webview version 105.0.5195.136 (code 519513634) W/linker (26448): Warning: "/data/app/~~tC57IfQMejo5R9x142HkDw==/com.google.android.trichromelibrary_519513634-cJ4jDlagfdz-it1bO5--hg==/base.apk!/lib/arm64-v8a/libmonochrome_64.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (greylist, reflection, allowed) W/example.exampl(26448): Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (greylist, reflection, allowed) I/cr_WVCFactoryProvider(26448): Loaded version=105.0.5195.136 minSdkVersion=29 isBundle=true multiprocess=true packageId=2 I/cr_LibraryLoader(26448): Successfully loaded native library I/cr_CachingUmaRecorder(26448): Flushed 8 samples from 8 histograms. I/TetheringManager(26448): registerTetheringEventCallback:com.example.example W/chromium(26448): [WARNING:dns_config_service_android.cc(115)] Failed to read DnsConfig. W/example.exampl(26448): Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (greylist, reflection, allowed) W/cr_media(26448): Requires BLUETOOTH permission I/PlatformViewsController(26448): Using hybrid composition for platform view: 0 I/example.exampl(26448): Waiting for a blocking GC ProfileSaver F/libc (26448): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x140 in tid 26591 (1.ui), pid 26448 (example.example) Softversion: PD2055D_A_1.10.22 Time: 2022-10-29 17:25:57

Build fingerprint: 'vivo/PD2055/PD2055:11/RP1A.200720.012/compiler0208154918:user/release-keys' Revision: '0' ABI: 'arm64' Timestamp: 2022-10-29 17:25:57+0800 pid: 26448, tid: 26591, name: 1.ui >>> com.example.example <<< uid: 11077 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x140 Cause: null pointer dereference x0 0000006fb2c19a00 x1 0000006e054b7e09 x2 0000006fb2c1a068 x3 0000006fb2c1a070 x4 0000000000000007 x5 0000006fad8b0cb4 x6 0000000000000000 x7 e1c341c061c22250 x8 0000000000000000 x9 0000006fadc5e120 x10 0000006fb2c199b8 x11 0000006fb2c19e78 x12 0000000000000001 x13 00000569b785375f x14 0023f3d7e78184c7 x15 0000006fb2c19ff0 x16 0000000000000002 x17 0000006e00011571 x18 0000006faa09c000 x19 0000006fb2c19a00 x20 0000006e054b7e09 x21 0000006fb2c199a0 x22 0000000000000007 x23 b400006f937df4d0 x24 0000006e0000c2c1 x25 0000006fb2b40000 x26 b400007012de4400 x27 0000006fb2c1a068 x28 000000080000006e x29 0000006fb2c1a028 lr 0000006fad75d5fc sp 0000006fb2c19950 pc 0000006fad75d640 pst 0000000080001000 backtrace: #00 pc 0000000001a17640 /data/app/w5BZ71btmvoicXphel79GA==/com.example.example-NMjSDz_I_rn_BgJ09CXczg==/lib/arm64/libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3) #1 pc 0000000001b6add0 /data/app/w5BZ71btmvoicXphel79GA==/com.example.example-NMjSDz_I_rn_BgJ09CXczg==/lib/arm64/libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3) #2 pc 0000000000002988 [anon:dart-codespace] Lost connection to device.`

Flutter Version 3.3.6

exaby73 commented 1 year ago

@akarapetsas Why have you closed the issue? Has it been fixed on your end?

github-actions[bot] commented 1 year 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.