Hi,
I cannot get translation to work.
Using the Translation Plugin (ML Kit) engine does nothing when clicking the button.
Using the Built in AI (local GGUF) seems like it's making a call to the AI and thinking but it does not translate anything.
The only way I can make it work is by adding a custom prompt.
I tried this on many languages and have redownloaded both the plugin and models to no avail.
I am using the offline flavor on a Pixel 10 Pro.
I have a feeling the ML Kit engine does not work because of the offline flavor.
Relevant logs:
----- beginning of main
09-01 20:43:04.376 13177 13177 W RichInputConnection: cached text out of sync, reloading
09-01 20:43:55.194 13177 13177 W RichInputConnection: cached text out of sync, reloading
09-01 20:44:26.777 13177 13177 W RemoteInputConnectionImpl: getSelectedText on inactive InputConnection
09-01 20:44:26.777 13177 13177 W RemoteInputConnectionImpl: requestCursorUpdates on inactive InputConnection
09-01 20:44:26.777 13177 13177 W RemoteInputConnectionImpl: getTextBeforeCursor on inactive InputConnection
09-01 20:44:26.777 13177 13177 W RichInputConnection: Unable to connect to the editor to retrieve text.
09-01 20:44:26.777 13177 13177 W RemoteInputConnectionImpl: getTextBeforeCursor on inactive InputConnection
09-01 20:44:26.777 13177 13177 W RichInputConnection: Unable to connect to the editor to retrieve text.
09-01 20:44:26.777 13177 13177 W RichInputConnection: Unable to connect to the editor. Setting caps mode without knowing text.
09-01 20:44:26.785 13177 13177 W RemoteInputConnectionImpl: getTextBeforeCursor on inactive InputConnection
09-01 20:44:26.785 13177 13177 W RemoteInputConnectionImpl: getTextBeforeCursor on inactive InputConnection
09-01 20:44:26.793 13177 13177 W RemoteInputConnectionImpl: getTextBeforeCursor on inactive InputConnection
09-01 20:44:26.851 13177 13177 W InteractionJankMonitor: Initializing without READ_DEVICE_CONFIG permission. enabled=false, interval=1, missedFrameThreshold=3, frameTimeThreshold=64, package=com.leanbitlab.leantype.offline
09-01 20:44:40.044 13177 14979 W p0.k : Transport backend 'cct' is not registered
09-01 20:44:40.045 13177 14979 W p0.k : Transport backend 'cct' is not registered
09-01 20:44:40.048 13177 14979 W p0.k : Transport backend 'cct' is not registered
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: Fetch failed
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: java.lang.SecurityException: Permission denied (missing INTERNET permission?)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:150)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at java.net.InetAddress.getAllByName(InetAddress.java:1152)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at b2.p.b(SourceFile:205)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at b2.q.c(SourceFile:50)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at b2.q.d(SourceFile:1)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at b2.j.b(SourceFile:31)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at b2.j.i(SourceFile:284)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at y1.v.b(SourceFile:94)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at y1.v.a(SourceFile:17)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at com.google.android.gms.internal.mlkit_translate.zztz.zzf(SourceFile:204)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at com.google.android.gms.internal.mlkit_translate.zztz.zzb(SourceFile:128)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at com.google.android.gms.internal.mlkit_translate.zzty.zza(SourceFile:6)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at com.google.android.gms.internal.mlkit_translate.zzwh.zza(SourceFile:30)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at com.google.android.gms.internal.mlkit_translate.zzub.zzd(SourceFile:89)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at com.google.android.gms.internal.mlkit_translate.zzvy.zzh(SourceFile:119)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at com.google.android.gms.internal.mlkit_translate.zzvw.run(SourceFile:11)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at java.lang.Thread.run(Thread.java:1572)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at libcore.io.Linux.android_getaddrinfo(Native Method)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:134)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:222)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:134)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: ... 19 more
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: Caused by: android.system.ErrnoException: android_getaddrinfo failed: EPERM (Operation not permitted)
09-01 20:44:40.048 13177 15296 E MLKit RemoteConfigRestC: ... 24 more
09-01 20:44:40.048 13177 14979 W p0.k : Transport backend 'cct' is not registered
09-01 20:44:40.048 13177 14979 W p0.k : Transport backend 'cct' is not registered
09-01 20:44:40.049 13177 14979 W p0.k : Transport backend 'cct' is not registered
09-01 20:44:42.878 13177 13177 W ImeBackCallbackProxy: Ime callback not found. Ignoring unregisterReceivedCallback. callbackId: 189794895 remaining callbacks: 0
09-01 20:44:51.446 13177 13177 W InputEventReceiver: Failed to send outbound event on channel 'bba06b7 com.leanbitlab.leantype.offline/helium314.keyboard.settings.SettingsActivity2'. status=DEAD_OBJECT(-32)
09-01 20:44:51.446 13177 13177 W InputEventReceiver: channel 'bba06b7 com.leanbitlab.leantype.offline/helium314.keyboard.settings.SettingsActivity2' ~ Could not send 0 outbound event(s), status:DEAD_OBJECT
Hi,
I cannot get translation to work.
Using the Translation Plugin (ML Kit) engine does nothing when clicking the button.
Using the Built in AI (local GGUF) seems like it's making a call to the AI and thinking but it does not translate anything.
The only way I can make it work is by adding a custom prompt.
I tried this on many languages and have redownloaded both the plugin and models to no avail.
I am using the offline flavor on a Pixel 10 Pro.
I have a feeling the ML Kit engine does not work because of the offline flavor.
Relevant logs: