super_native_extensions: App crashes when a new DataReader is received

Personally, on two of my five devices the error is reproduced

https://github.com/superlistapp/super_native_extensions/blob/67f062083c2158a1c4f62[…]1d7cc887a8/super_native_extensions/rust/src/clipboard_reader.rs

There are no newClipboardReader в Android part: https://github.com/superlistapp/super_native_extensions/tree/main/super_native_ext[…]ons/android/src/main/java/com/superlist/super_native_extensions

Logs:

F/libc  ( 6090): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 6170 (1.ui), pid 6090 (od.tracker.free)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/m01qser/m01q:12/SP1A.210812.016/M015FXXS5CWH1:user/release-keys'
Revision: '0'
ABI: 'arm'
Processor: '2'
Timestamp: 2024-02-06 17:04:40.475913920+0300
Process uptime: 150s
Cmdline: app
pid: 6090, tid: 6170, name: 1.ui >>> app <<<
uid: 10861
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
  r0 00000000 r1 00000001 r2 00000000 r3 acf3b4f0
  r4 92565558 r5 b8f40ec1 r6 adb88041 r7 00000000
  r8 ace87565 r9 b2ec0288 r10 b2ebff00 r11 af0f9788
  ip 00000000 sp af0f9770 lr ace91161 pc 92565558
backtrace:
   #00 pc 00065558 [anon:dart-code]
   #01 pc 001c615d /data/app/~~PMUCPy7YsEtK8cRxP4zJfg==app-Donw89GI5Mz5yynxQQ8XLg==/base.apk
   #02 pc 0006554e [anon:dart-code]
Lost connection to device.
the Dart compiler exited unexpectedly.
Снимок экрана 2024-02-06 в 17 55 21 Снимок экрана 2024-02-06 в 17 55 40

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 12
  • Comments: 32

Most upvoted comments

as for iOS: still the same steps as the cases for this crash. Only it’s an error that crashes, not a crash. The error crashes only in the release version. Testflight versions. It is not reproducible in debug. The error log is always the same.

Invalid argument(s): Failed to lookup symbol 'super_native_extensions_init_message_channel_context': dlsym(RTLD_DEFAULT, super_native_extensions_init_message_channel_context): symbol not found

is displayed externally as the behavior for this comment with s5, when i can view the error. Please look at iOS too

The crash on 32bit android should be fixed in 0.8.5.

If you have problem with 0.8.5 other then the crash (i.e. library not found) please open that as new issue.

I was able to reproduce the original bug (crash) on a 32bit android device. The problem is wrong argument type on one of the internal FFI methods. Should be fixed soon.

Ok(Value::Null) everything will be fine

It will not crash. But clipboard reading will not work anymore.

I think armv7 is currently the only supported 32bit platform and I don’t think I’ve tested in on a real device. This might be a pointer size issue somewhere in the Dart FFI bindings. I’ll try to get an armv7 device soon so that I can test this.