superlistapp / super_native_extensions

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

Motorola phone - cannot read clipboard, throws `JNI: JNI call failed` #396

Open FluffyDiscord opened 1 month ago

FluffyDiscord commented 1 month ago

Super clipboard package works on all devices for me, except for two particular ones. One was from Xiaomi and other one is from Motorola. Both devices throw [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(super_native_extensions_error, "JNI: JNI call failed", otherError, null) when attempting to read clipabord content.

The reader.canProvide(Formats.plainText) returns true, but calling await reader.readValue(Formats.plainText) throws mentioned exception and nothing happens

FluffyDiscord commented 1 month ago

I have isolated the issue. Plugin reads clipboard just fine, if I copy message from Slack. If I copy text from the note app on those phones, this plugin throws that error.