Comments (9)
Even with the static loading, some devices are still reporting the same error. For some other devices, the issue is fixed with the workaround.
I've noticed that the issues are only happening on devices with API level below 23. For 23+ devices, the issue is not found.
from libgdx-oboe.
Is there any correlation between a processor architecture and the crash ?
from libgdx-oboe.
Some are armeabi-v7a; some are arm64-v8a
from libgdx-oboe.
Hmm. Are there any working armeabi-v7a / arm64-v8a devices ? Otherwise it might be a false positive link time optimization.. However, I think my own test device is arm64-v8a, so that is indeed confusing.
Also, would be great to know Android version of the devices on which the crash happens, but I doubt that it will be the case 😔
from libgdx-oboe.
Sorry about the delay.
After some further testing, I found that this is Android API related. Most of the crashes are on API 17, 19 and 22.
I think this is related to the issue of native library loading. Related discussion: https://stackoverflow.com/questions/28806373/android-4-2-ndk-library-loading-crash-load-librarylinker-cpp750-soinfo-l
I think I fixed the issue by loading the so files explicitly like the following in AndroidApplication.java:
:)
SharedLibraryLoader libraryLoader = new SharedLibraryLoader();
libraryLoader.load("avutil");
libraryLoader.load("swresample");
libraryLoader.load("avcodec");
libraryLoader.load("avformat");
from libgdx-oboe.
Uhh, there is indeed a problem with dynamic linking in API 19+ (link). It is nearly impossible to link ffmpeg libraries statically, so I'll test your workaround, and if it works, I'll use it. Would be super neat if you'd PR it, otherwise I'll push the code after a while.
from libgdx-oboe.
I end up using libgdx-oboe for api 23+ and default MediaPlayer based libgdx audio for devices with api version lower than 23.
from libgdx-oboe.
I honestly would like to help you with this, but I don't have any device that would reproduce the issue. I'll research android dynamic linking once again, and hopefully will be able to blind fix that. Can't make any promises, though.
from libgdx-oboe.
Seems to be related to #17 if I'm not mistaken
from libgdx-oboe.
Related Issues (18)
- Modular OboeAudio
- bintray libgdx-oboe not build success. HOT 2
- OboeAudio doesn't play music/sounds during entire first foreground session. HOT 2
- Crashes at activity onResume. HOT 2
- Crash when starting app on some devices HOT 3
- Crashes on Google pre-paunch report HOT 7
- How to add libgdx-oboe to my libgdx project? HOT 5
- Failed to load natives on older Android versions HOT 6
- General volume is lower than on the default libGDX implementation. HOT 4
- Bundle natives in AAR HOT 6
- Compiled AAR lib
- Implement Audio Recorder
- Reduce binary size HOT 1
- Crackling popping HOT 10
- Calling dispose() on OboeMusic leads to crash HOT 10
- Play of sound always return 0. HOT 6
- JNI DETECTED ERROR IN APPLICATION: use of deleted global reference HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libgdx-oboe.