Open Brooooooklyn opened 1 week ago
I'm setting up the uniffi for my application: https://github.com/toeverything/AFFiNE/blob/11-14-feat_android_native_module/packages/frontend/mobile-native/src/lib.rs
The basic FFI implementation works fine here: https://github.com/toeverything/AFFiNE/blob/965132593b4fcba8e35776730029d1c600013d89/packages/frontend/apps/android/App/app/src/main/java/app/affine/pro/MainActivity.kt#L11-L20
However, the uniffi call causes a SIGSEGV
uniffi
SIGSEGV
After some debugging, I found the RustBuffer() call here https://github.com/toeverything/AFFiNE/blob/11-14-feat_android_native_module/packages/frontend/apps/android/App/app/src/main/java/uniffi/affine_mobile_native/affine_mobile_native.kt#L246 is causing the SIGSEGV
RustBuffer()
Kotlin version 2.0.21 (JRE 23.0.1)
rustc 1.82.0 (f6e511eec 2024-10-15)
I'm setting up the uniffi for my application: https://github.com/toeverything/AFFiNE/blob/11-14-feat_android_native_module/packages/frontend/mobile-native/src/lib.rs
The basic FFI implementation works fine here: https://github.com/toeverything/AFFiNE/blob/965132593b4fcba8e35776730029d1c600013d89/packages/frontend/apps/android/App/app/src/main/java/app/affine/pro/MainActivity.kt#L11-L20
However, the
uniffi
call causes aSIGSEGV
After some debugging, I found the
RustBuffer()
call here https://github.com/toeverything/AFFiNE/blob/11-14-feat_android_native_module/packages/frontend/apps/android/App/app/src/main/java/uniffi/affine_mobile_native/affine_mobile_native.kt#L246 is causing theSIGSEGV
Kotlin version 2.0.21 (JRE 23.0.1)
rustc 1.82.0 (f6e511eec 2024-10-15)