Skip to content

[Bug]: Plugins fail on every keyboard re-open: UnsatisfiedLinkError (duplicate ClassLoader) in HandwritingLoader #851

Closed

Description

@Yccaxm1

Preliminary Verification

  • I have searched existing open and closed issues and discussions to verify this bug is not already reported.
  • I have tested or verified this behavior on the latest release or beta version.
  • I have tried clearing app cache or testing with default settings.
  • If the issue is related to an external plugin (e.g. Voice Plugin, OCR, CJK, Handwriting, Offline AI), I have verified that I am using the latest release of that plugin.

Description of the Bug

Every plugin requires a forced keyboard restart to load. After a forced restart
(Settings → About → Restart keyboard) the handwriting plugin works, but as soon as
the keyboard is closed and re-opened normally, it stops working until the next
forced restart.

Steps to Reproduce

  1. Install LeanType 4.3.3 + handwriting plugin 1.0.7.
  2. Force restart keyboard (Settings → About → Restart keyboard).
  3. Handwriting works.
  4. Close the keyboard.
  5. Re-open the keyboard in any text field.
  6. Handwriting no longer works.
  7. Repeat steps 2–6 — the cycle repeats every time

Expected Behavior

plugin survives keyboard close/open without restart.

Logs / Crash Report

LeanType_log_2026-11-16_18-25-55.txt

Build Flavor

Offline (zero network permissions, privacy focused)

App Version

4.3.3

Plugin Version (if applicable)

Handwriting Plugin v1.0.7 arm64-v8a

Device & Android Version

honor 90. android 15. magicOS 9.0.0.206

Target App (if applicable)

all apps

Screenshots or Screen Recordings

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions