UnsatisfiedLinkError on android arm64-v8a
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with native library loading in org.sqlite.core.NativeDB, where the stack trace fails, and inspect how the packaged arm64-v8a library is selected and loaded on Android 14. Reproduce the connection failure on the Motorola Moto E14 or a matching arm64-v8a Android environment; done means DriverManager.getConnection() opens the SQLite database successfully there.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The app throws a java.lang.UnsatisfiedLinkError when attempting to use the sqlite-jdbc library on a Motorola Moto E14 device.
To Reproduce
The error occurs during the initialization of a SQLite database connection using DriverManager.getConnection() with the org.sqlite.JDBC driver. The native libraries (.so files) extracted from the xerial/sqlite-jdbc JAR are included in the Android application package (APK) under the jniLibs directory, organized into architecture-specific folders: arm64-v8a, armeabi, x86, and x86_64.
Expected behavior
The app should successfully establish a connection to the SQLite database using the sqlite-jdbc library on the Motorola Moto E14 device, similar to its behavior on the majority of other tested Android devices.
Logs
Exception java.lang.UnsatisfiedLinkError:
at java.lang.Runtime.loadLibrary0 (Runtime.java:1082)
at java.lang.Runtime.loadLibrary0 (Runtime.java:1003)
at java.lang.System.loadLibrary (System.java:1661)
at org.sqlite.core.NativeDB.<clinit> (NativeDB.java:47)
at org.sqlite.SQLiteConnection.open (SQLiteConnection.java:280)
at org.sqlite.SQLiteConnection.<init> (SQLiteConnection.java:67)
at org.sqlite.jdbc3.JDBC3Connection.<init> (JDBC3Connection.java:28)
at org.sqlite.jdbc4.JDBC4Connection.<init> (JDBC4Connection.java:19)
at org.sqlite.JDBC.createConnection (JDBC.java:106)
at org.sqlite.JDBC.connect (JDBC.java:79)
at java.sql.DriverManager.getConnection (DriverManager.java:580)
at java.sql.DriverManager.getConnection (DriverManager.java:218)
at org.jetbrains.exposed.sql.Database$Companion.connect$lambda$15 (Database.kt:308)
Environment:
OS: Android 14 (on Motorola Moto E14)
CPU architecture: arm64-v8a (Motorola Moto E14) - Unisoc T606
sqlite-jdbc version: tested with 3.43.0.0, 3.49.1.0
Additional context
I'm using Exposed on android.
- 主要言語
- Java
- スター
- 3.3k
- フォーク
- 676
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
xerial/sqlite-jdbc のほかの issue
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
xerial/sqlite-jdbc#1515 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
xerial/sqlite-jdbc#1514 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
xerial/sqlite-jdbc#1513 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
xerial/sqlite-jdbc#1512 ·
メンテナーはふだん 1 日以内に返信
-
SIGSEGV (exit 134) in bundled `rightstr()` when the length argument is a large negative number対応中かも @sarthakdev143-lite が 2 日前に担当しました。 オープンhelp wanted impacts:JNI
難易度 4/5 1〜2日 初心者へのやさしさ 38/100
xerial/sqlite-jdbc#1508 ·
メンテナーはふだん 1 日以内に返信
xerial/sqlite-jdbc の issue をすべて見る
似ている issue
-
vips-drift
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Stirling-Tools/JPDFium#300 ·
メンテナーはふだん 1 日以内に返信
-
hermes-queue
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
メンテナーはふだん 1 日以内に返信
-
Guidelines: document how to build a use case against a local, unpublished Flow/browserless-test change対応中かも @totally-not-ai が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
vaadin/use-cases#452 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/storage area/storage/sql
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Apicurio/apicurio-registry#11159 ·
メンテナーはふだん 1 日以内に返信
-
Area/Configuration Type/Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ballerina-platform/static-code-analysis-tool#217 ·
メンテナーはふだん 1 日以内に返信