Skip to content

SDL3 Android loading issue maybe #325

@maybeJosiah

Description

@maybeJosiah

When I load this in an Android TV simulator it fails with this thing, and I tested, it runs if I do not import SDL3, so? __gxx_personality_v0 is of particular interest, I am basically running your https://github.com/vhspace/sdl3-rs/blob/master/examples/raw-window-handle-with-wgpu/main.rs but loaded through an Android Activity maybe or maybe not, maybe.

FATAL EXCEPTION: main
Process: com.gugquettex.paxul, PID: 15196
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__gxx_personality_v0" referenced by "/data/app/~~9uPxx4m3P4zvha1YboEDaQ==/com.gugquettex.paxul-n2eDYacbbIRX03CskvhHeg==/base.apk!/lib/x86/libpaxul.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:1090)
at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
at java.lang.System.loadLibrary(System.java:1765)
at com.gugquettex.paxul.MainActivity.(MainActivity.kt:17)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:44)
at android.app.Instrumentation.newActivity(Instrumentation.java:1443)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4173)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4467)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2823)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:248)
at android.os.Looper.loop(Looper.java:338)
at android.app.ActivityThread.main(ActivityThread.java:9067)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
2026-01-20 19:13:17.660 15196-15196 Process com.gugquettex.paxul I Sending signal. PID: 15196 SIG: 9
---------------------------- PROCESS ENDED (15196) for package com.gugquettex.paxul ----------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions