-
Notifications
You must be signed in to change notification settings - Fork 2
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
Couldn't load shared library 'gdx-basis-universal' for target: Android #2
Comments
Hello, and thanks for reporting this. Let me try to rebuild the Android natives with the |
Alright, hopefully, this patch works. The new version was just published and should be available on Maven Central soon. Let's keep the issue open till we get a clear confirmation that it was fixed. |
I've updated to v1.0.1.
|
I see, thank you! Seems like the flag wasn't set properly. It's good to know it can be tested on emulator, I didn't think about it. Let me try another time and I will let you know when I make it work on the emulator 👌 |
My searches led me there android/ndk#964 At this point, I'd just set the minimum required Android API to 23 and move on. |
But why libgdx.so have no this problems? Why libgdx.so loaded without errors? Maybe it's indeed just linker setting? |
Ok. It wasn't NDK issue. It was me being stupid. There are some other issues with some of the textures that are just solid black. But it all sounds like another problem - #3 . While this one has been solved 👌 |
@Peter-Warlock FIY, I want to get to the bottom of that black texture issue before I make another release. In the meantime, you may want to switch to |
Seems, like some problem with a SNAPSHOT.
I also uses HTML project and need this file. But ok. Just for test I commented this line and build.gradle sync completed with success. Android version also crashes with that error message:
|
Yep, sorry about that. Something is wrong with the snapshot publishing routine. I investigated it a little today and it seems that all the release artifacts get uploaded to Sonatype just fine, except for the main |
Ok, the snapshot should be fixed now. @Peter-Warlock please try again. ./gradlew --refresh-dependencies |
Tested on the emulator API 34, 23, 22, 21 - worked well. On the emulator API 19 it crashes with the error:
On the real device with API 19 it crashes with the same error but with different "caused by" reason:
|
Another question about "solid black textures". Is this a result of using mipmapping or some other problem that may occur on the user's devices? And since I mentioned mipmapping, what about mipmapping? Is there a way to use it? |
Yep, I would expect the library to work on anything below Android API 21 as this is the min supported platform for the current NDK. And regarding the mipmaps, they are fully supported by basis universal, it's just a question of implementation. Currently a basis/ktx2 texture gets loaded only with 0 level mipmap. It's done for simplicity sake, because for every mipmap level it would require another iteration of transcoding and I'm not sure how to handle that well. I'll look into that for the next release. |
So, "solid black textures" from your screenshot above is a result of using mipmapping or some other problem that may occur on the user's devices? |
I put everything that I know till this day to this issue #3 |
It does, I don't think it makes any difference. |
You said: I have real device with Android API 24 (Android 7.0). I can run some test if you need. |
Well I mean API 24 real device would be perfect to see if this is only an emulator-related behavior! I'd appreciate it if you could try. The options are:
./gradlew demo:android:installDebug
|
Done. It seems to work without problems. I also archived the logs from Logcat. Here the screen of my Logcat with API level of tested device: Logcat log: 2 screens showing difference: |
Awesome, thanks! |
Just for info. For testing, I downloaded your zipped APK and run it. |
Hi, Another question about mipmapping. :) Basisu\ktx2 - Looks good and I like that the texture takes up so little space, but without mipmaps some textures don't look as good. |
Yep, after a quick googling, it sounds pretty reasonable actually, since that should be the usual way to set up mipmaps for OpenGL. I wonder why would Basis include mipmap generator if mipmaps could be simply created on the fly by a rendering API? I'll give it a spin. PS: Next time please open a new issue if the topic is unrelated 🙏 |
Hello,
Crash on old devices with that crash stack:
The same problem and how to fix it was described here:
google/filament#2176
(suggestion to fix here: https://stackoverflow.com/a/59649817/671393)
The text was updated successfully, but these errors were encountered: