Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Version Support #57

Open
EdogawaKazuki opened this issue Dec 18, 2023 · 3 comments
Open

Android Version Support #57

EdogawaKazuki opened this issue Dec 18, 2023 · 3 comments

Comments

@EdogawaKazuki
Copy link

Hi,

Thank you for your contribution to this project!

I want to use the new version code for Unity Android. But unfortunately, that doesn't work.

I tried to dig out what was happening and found some possible problems.

  1. The 'GetRenderer()' function at the end of 'UnityHelpers.cpp' returns a null pointer. The reason might be:
    a. It looks like The unity plugin function 'UnityPluginLoad' won't execute when the plugin loads, while other functions from the plugin work fine.
    b. Unity cannot figure out the API of the Android device so there will not be a renderer created.
  2. Even when I was forced to create a renderer manually, I found that the frames would not blit, I checked the function 'BeginModifyTexture' in 'RenderAPI_OpenGLCoreES.cpp' and found it seems like not completed yet. If that is the case, can you give me some hints to finish that?
@QiaoJingjing
Copy link

So Far I've been using Keli95566 Fork, a branch of this library, to run on the phone and get a frame, but soon the program will fade, and if you want, we can work on that together, and share with you everything I try

@BerkDevanthro
Copy link

Keli95566 Fork is crashing on my Unity build for Android as well. I paste the 3 lines of errors here in case anybody knows the reason why, please let me know...

JNI NewGlobalRef called with pending exception java.lang.ClassNotFoundException: Didn't find class "org.freedesktop.gstreamer.GStreamer" on path: DexPathList[[zip file "/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk"],nativeLibraryDirectories=[/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/lib/arm64, /data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

fatal Pending exception java.lang.ClassNotFoundException: Didn't find class "org.freedesktop.gstreamer.GStreamer" on path: DexPathList[[zip file "/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk"],nativeLibraryDirectories=[/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/lib/arm64, /data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

fatal JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.ClassNotFoundException: Didn't find class "org.freedesktop.gstreamer.GStreamer" on path: DexPathList[[zip file "/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk"],nativeLibraryDirectories=[/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/lib/arm64, /data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

@QiaoJingjing
Copy link

Keli95566 Fork is crashing on my Unity build for Android as well. I paste the 3 lines of errors here in case anybody knows the reason why, please let me know...

JNI NewGlobalRef called with pending exception java.lang.ClassNotFoundException: Didn't find class "org.freedesktop.gstreamer.GStreamer" on path: DexPathList[[zip file "/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk"],nativeLibraryDirectories=[/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/lib/arm64, /data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

fatal Pending exception java.lang.ClassNotFoundException: Didn't find class "org.freedesktop.gstreamer.GStreamer" on path: DexPathList[[zip file "/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk"],nativeLibraryDirectories=[/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/lib/arm64, /data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

fatal JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.ClassNotFoundException: Didn't find class "org.freedesktop.gstreamer.GStreamer" on path: DexPathList[[zip file "/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk"],nativeLibraryDirectories=[/data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/lib/arm64, /data/app/~~xnhZuhUIfADSUAyYHXv07Q==/com....ROS2Dev-_l34mj2h7_yh15Q9NSHkyw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]


Hi,

Judging from the error messages, the problem may be due to a GStreamer library reference failure. Check to see if your project directory contains GStreamer and if your JNI generates GStreamer libraries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants