Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal crash on app launch using Flutter Rust Bridge with SIGABRT (signal 6) #2358

Closed
ellik159 opened this issue Oct 21, 2024 · 13 comments · Fixed by #2363
Closed

Fatal crash on app launch using Flutter Rust Bridge with SIGABRT (signal 6) #2358

ellik159 opened this issue Oct 21, 2024 · 13 comments · Fixed by #2363
Labels
awaiting Waiting for responses, PR, further discussions, upstream release, etc bug Something isn't working

Comments

@ellik159
Copy link

Describe the bug

I am encountering a crash immediately upon launching my Flutter app that uses flutter_rust_bridge. The issue occurs consistently on Android when I open the app right after integrating the Rust library using flutter_rust_bridge. I am using the default generated code from flutter_rust_bridge.

Steps to reproduce

  1. Integrate flutter_rust_bridge into a Flutter project.
  2. Use the default generated code for Rust integration.
  3. Launch the app on Android.
  4. Observe crash immediately after launch.

Logs

/libc    (11907): handling signal: 6
F/libc    (11907): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 12138 (1.ui), pid 11907 (k159.app_sensor)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Redmi/sunstone_eea/sunstone:14/UKQ1.230917.001/V816.0.6.0.UMQEUXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-10-21 16:17:19.223597770+0200
Process uptime: 7s
Cmdline: es.ellik159.app_sensor
pid: 11907, tid: 12138, name: 1.ui  >>> es.ellik159.app_sensor <<<
uid: 10653
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
    x0  0000000000000000  x1  0000000000002f6a  x2  0000000000000006  x3  0000007244f9d740
    x4  0000000000004994  x5  0000000000004994  x6  0000000000004994  x7  00000000025ea618
    x8  00000000000000f0  x9  000000737c028ea8  x10 0000000000000001  x11 000000737c0a5420
    x12 0000000000000004  x13 0000000000001d20  x14 000000722e9cfea8  x15 00000000021bcdec
    x16 000000737c110a18  x17 000000737c0e8ea0  x18 0000007244298000  x19 0000000000002e83
    x20 0000000000002f6a  x21 00000000ffffffff  x22 000000722e9cc448  x23 000000722e97d030
    x24 0000007248551b38  x25 0000000000000002  x26 0000000000000001  x27 0000000000000001
    x28 0000000000000470  x29 0000007244f9d7c0
    lr  000000737c096164  sp  0000007244f9d720  pc  000000737c096190  pst 0000000000001000
49 total frames
backtrace:
      #00 pc 0000000000095190  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 1e3ca19bcae05c01b019c85f3f422e56)
      #01 pc 0000000000129ebc  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #02 pc 0000000000127fe8  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #03 pc 0000000000127c3c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #04 pc 0000000000126218  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #05 pc 0000000000127934  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #06 pc 000000000013f1d4  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #07 pc 000000000013f24c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #08 pc 0000000000103d60  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #09 pc 000000000010558c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #10 pc 000000000010542c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #11 pc 0000000000105ac8  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #12 pc 0000000000103d14  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #13 pc 0000000000103ce8  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #14 pc 0000000000100950  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so
      #15 pc 0000000000102070  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/librust_lib_app_sensor.so (free_zero_copy_buffer_u8+64)
      #16 pc 0000000002517a58  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #17 pc 00000000022200a0  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #18 pc 000000000236973c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #19 pc 000000000236b49c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #20 pc 000000000236bae0  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #21 pc 000000000236aa58  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #22 pc 000000000236a6ac  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #23 pc 0000000002358354  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #24 pc 00000000023571c4  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #25 pc 000000000225d2c8  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #26 pc 0000000002296d68  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #27 pc 0000000002296cd0  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #28 pc 0000000002473eac  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #29 pc 00000000024745d0  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #30 pc 00000000024520c0  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #31 pc 000000000245b798  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #32 pc 000000000245574c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #33 pc 0000000002459910  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #34 pc 0000000002458258  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #35 pc 0000000002459704  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #36 pc 0000000002458258  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #37 pc 00000000024510a8  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #38 pc 00000000024516b0  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #39 pc 0000000002451a98  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #40 pc 000000000246195c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #41 pc 0000000002346ce8  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #42 pc 0000000002347d90  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #43 pc 0000000002348698  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #44 pc 00000000023482d8  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #45 pc 0000000002279468  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #46 pc 000000000227936c  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #47 pc 0000000002347074  /data/app/~~GpJ9FJitgAQL3ZeWxfXe1g==/es.ellik159.app_sensor-AMM_Tk0uHH36jqPLsSgjTg==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #48 pc 0000000000003528  [anon:dart-code]
Lost connection to device.

Expected behavior

No response

Generated binding code

No response

OS

No response

Version of flutter_rust_bridge_codegen

flutter_rust_bridge_codegen 2.5.0

Flutter info

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Manjaro Linux 6.1.112-1-MANJARO, locale es_ES.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.94.2)
[✓] Connected device (2 available)
[✓] Network resources

Version of clang++

No response

Additional context

No response

@ellik159 ellik159 added the bug Something isn't working label Oct 21, 2024
Copy link

welcome bot commented Oct 21, 2024

Hi! Thanks for opening your first issue here! 😄

@ellik159
Copy link
Author

Edit:
This was working fine until I updated to flutter_rust_bridge version 2.5.0. After the update, the crash began happening. I didn't make any other changes, and the crash occurred immediately following the version upgrade.

@fzyzcjy
Copy link
Owner

fzyzcjy commented Oct 21, 2024

Firstly, it would be great if the stack trace is symbolicated, thus we can know which line of code causes the crash.

Secondly, could you please bisect to see which commit introduces the error? (e.g. does 2.4.0 work; or even better - which commit on master branch makes it fail)

@fzyzcjy fzyzcjy added the awaiting Waiting for responses, PR, further discussions, upstream release, etc label Oct 21, 2024
@milesegan
Copy link

milesegan commented Oct 22, 2024

I'm seeing something very similar to this running on a simulator in debug mode but so far not in release mode on device. I'll try with 2.4.0 and see if it happens there.

The Flutter DevTools debugger and profiler on sdk gphone64 arm64 is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:53025/3bRGJsxCGPc=/
F/libc    ( 4681): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 4744 (DartWorker), pid 4681 (com.plastaq.m)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone64_arm64/emu64a:15/AE3A.240806.005/12228598:userdebug/dev-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-10-22 10:49:52.305822269+0700
Process uptime: 10s
Cmdline: com.plastaq.m
pid: 4681, tid: 4744, name: DartWorker  >>> com.plastaq.m <<<
uid: 10206
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
    x0  0000000000000000  x1  0000000000001288  x2  0000000000000006  x3  000000759ba77f00
    x4  0000000000020380  x5  0000000000020380  x6  0000000000020380  x7  000000758b9b455c
    x8  00000000000000f0  x9  00000078d7927468  x10 ffffff80fffffb9f  x11 0000000000000000
    x12 0000000000000003  x13 0000000000000012  x14 0000000000000000  x15 000000000000000c
    x16 00000078d79d6ff8  x17 00000078d79c11c0  x18 000000759a4a0000  x19 0000000000001249
    x20 0000000000001288  x21 00000000ffffffff  x22 000000758bd9c888  x23 000000758bb6e178
    x24 00000075a5112b38  x25 b4000077ee2c5080  x26 b4000077ee2c50a8  x27 00000000004c4b40
    x28 00000075a5191000  x29 000000759ba77f80
    lr  00000078d795f6a4  sp  000000759ba77ee0  pc  00000078d795f6d4  pst 0000000000001000
27 total frames
backtrace:
      #00 pc 000000000005b6d4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 1b9fecf834d610f77e641f026ca7269b)
      #01 pc 000000000043e4fc  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #02 pc 000000000043b96c  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #03 pc 000000000043b678  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #04 pc 0000000000439a08  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #05 pc 000000000043b370  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #06 pc 000000000045438c  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #07 pc 0000000000454404  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #08 pc 00000000002546ac  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #09 pc 0000000000254cd0  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #10 pc 0000000000254b70  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #11 pc 00000000002551f8  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #12 pc 00000000002545f4  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #13 pc 00000000002545c8  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #14 pc 000000000024f5e8  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000)
      #15 pc 00000000002511b8  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk (offset 0x3aa0000) (free_zero_copy_buffer_u8+64)
      #16 pc 0000000002517a58  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #17 pc 00000000022200a0  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #18 pc 000000000236973c  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #19 pc 000000000236b49c  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #20 pc 000000000236bae0  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #21 pc 000000000236c600  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #22 pc 000000000233781c  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #23 pc 0000000002337a6c  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #24 pc 00000000022ca1fc  /data/app/~~mxKRFHEgqQKmErgcksCuvA==/com.plastaq.m-mS9EjAjh-R0YcHI8V32-1g==/base.apk!libflutter.so (offset 0x14b5000) (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #25 pc 000000000006c354  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+196) (BuildId: 1b9fecf834d610f77e641f026ca7269b)
      #26 pc 000000000005efc4  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 1b9fecf834d610f77e641f026ca7269b)

@milesegan
Copy link

I tried 2.4.0 and also see the crash there and tried both Android 14 and 15 and see the crash there in both cases. I do not however see the crash running in release mode on an actual device.

@CoderXXLee
Copy link

CoderXXLee commented Oct 22, 2024

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'vivo/PD2183/PD2183:14/UP1A.231005.007/compiler07291954:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-10-22 12:38:28.495696176+0800
Process uptime: 1214s
Cmdline: com.example.my_app
pid: 2768, tid: 11363, name: 1.ui  >>> com.example.my_app <<<
uid: 10667
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
    x0  0000000000000000  x1  0000000000002c63  x2  0000000000000006  x3  000000766a9fcfd0
    x4  0000000000004994  x5  0000000000004994  x6  0000000000004994  x7  00000000025ea618
    x8  00000000000000f0  x9  0000007918e36920  x10 0000000000000001  x11 0000007918ec24c0
    x12 0000000000000004  x13 0000000000001d18  x14 00000075e4ffa528  x15 0000000000000018
    x16 0000007918f31a60  x17 0000007918f0add0  x18 00000075fbe94000  x19 0000000000000ad0
    x20 0000000000002c63  x21 00000000ffffffff  x22 00000075e4ff67c0  x23 00000075e4fa6f00
    x24 00000076005d14d8  x25 0000000000008081  x26 0000000000000000  x27 0000000000000001
    x28 0000000000000001  x29 000000766a9fd050
    lr  0000007918eb2898  sp  000000766a9fcfb0  pc  0000007918eb28c4  pst 0000000000001000
27 total frames
backtrace:
      #00 pc 00000000000a58c4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 5754adcdd1de6daa915983144ea6829d)
      #01 pc 000000000012ed0c  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #02 pc 000000000012ce38  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #03 pc 000000000012ca8c  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #04 pc 000000000012b068  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #05 pc 000000000012c784  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #06 pc 0000000000144024  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #07 pc 000000000014409c  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #08 pc 0000000000108c98  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #09 pc 000000000010a4c4  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #10 pc 000000000010a364  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #11 pc 000000000010aa00  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #12 pc 0000000000108c4c  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #13 pc 0000000000108c20  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #14 pc 0000000000105800  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so
      #15 pc 0000000000106f40  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/librust_lib_my_app.so (free_zero_copy_buffer_u8+64)
      #16 pc 0000000002517a58  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #17 pc 00000000022200a0  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #18 pc 000000000235c5cc  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #19 pc 000000000235e9c0  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #20 pc 000000000235d838  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #21 pc 00000000023648e0  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #22 pc 00000000023645c8  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #23 pc 0000000002357890  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #24 pc 0000000002333e90  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #25 pc 000000000230718c  /data/app/~~3C0JGrbx-sqBkeryUp8VRg==/com.example.my_app-GXHkPsGv0byoVBs5TixUuA==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #26 pc 0000000000003528  [anon:dart-code]
      

rustc 1.82.0 (f6e511eec 2024-10-15)

Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (6 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

flutter_rust_bridge_codegen 2.5.0

@milesegan
Copy link

Looks like same crash in free_zero_copy_buffer_u8?

@fzyzcjy
Copy link
Owner

fzyzcjy commented Oct 22, 2024

Hmm, could you please try shekohex/allo-isolate#61 to see whether the PR there fixes? (That one is about a bug in free_zero_copy_buffer_u8 in allo-isolate, a lib that flutter_rust_bridge uses)

@milesegan
Copy link

@fzyzcjy That patch seems to fix the issue for me here. Thanks!

@CoderXXLee
Copy link

@fzyzcjy Thanks!

@fzyzcjy
Copy link
Owner

fzyzcjy commented Oct 22, 2024

Happy to see it works!

@shekohex
Copy link

This issue is now fixed in v0.1.26 of allo-isolate btw

Copy link
Contributor

github-actions bot commented Nov 6, 2024

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting Waiting for responses, PR, further discussions, upstream release, etc bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants