superlistapp / super_native_extensions

Native drag & drop, clipboard access and context menu.
MIT License
460 stars 84 forks source link

UnsatisfiedLinkError crash in getAllMimeTypesForURI #421

Open kreativityapps opened 2 months ago

kreativityapps commented 2 months ago

Using super_clipboard: ^0.8.19 some users get the following crash:

Fatal Exception: java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String[] com.superlist.super_native_extensions.DataProvider.getAllMimeTypesForURI(java.lang.String, java.lang.String) (tried Java_com_superlist_super_1native_1extensions_DataProvider_getAllMimeTypesForURI and Java_com_superlist_super_1native_1extensions_DataProvider_getAllMimeTypesForURI__Ljava_lang_String_2Ljava_lang_String_2) - is the library loaded, e.g. System.loadLibrary?
       at com.superlist.super_native_extensions.DataProvider.getAllMimeTypesForURI(DataProvider.java)
       at com.superlist.super_native_extensions.DataProvider.getMimeTypeForURI(DataProvider.java:78)
       at com.superlist.super_native_extensions.DataProvider.openTypedAssetFile(DataProvider.java:52)
       at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:574)
       at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:327)
       at android.os.Binder.execTransactInternal(Binder.java:1326)
       at android.os.Binder.execTransact(Binder.java:1268)

I can't reproduce it myself, but from analytics I can see that it occurs on Android versions between 9-14 and different device types.

My config: [✓] Flutter (Channel stable, 3.24.1, on macOS 14.5 23F79 darwin-arm64) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)

knopp commented 2 months ago

Can you determine if those device have anything in common? I'd need to be able to reproduce this.

kreativityapps commented 2 months ago

Not really. Most crashes are on Xiaomi Redmi 9A (32%) and on Android 11 (44%) Other devices are: