Comments (9)
@Jamesfleming1
I found a fix for the application crashing on ARM64.
I was able to get around this issue fairly easily by deleting the GeckoView ARMv7 plugin from the project files and replacing it with the ARM64 plugin marked with the same version number.
At the time of writing, the correct file to use is "geckoview-arm64-v8a-80.0.20200818235255.aar" from the geckoview download page.
From my experimentation with the browser plugin, the build doesn't actively use the GeckoViewPlugin folder included in the repository -- I can delete that entire folder and the project builds/runs as expected. I think you'd have to recompile the plugin after changing the specified version number in order to see a difference, but just replacing the file with this specific version is a way to fix the issue without doing a deep dive like that.
Hope this helps.
from unityoculusandroidvrbrowser.
Hmmmm I know that I only included the gecko engine library for arm7. You can download the engine for other architectures here. I don't remember any specific reason why the plugin might not work other than that. Will the Oculus SDK work with other architectures?
from unityoculusandroidvrbrowser.
Hmm okay. I downloaded the .aar from https://maven.mozilla.org/maven2/?prefix=maven2/org/mozilla/geckoview/geckoview-arm64-v8a/90.0.20210705185941/, put it into the proper folder in unity.
Then I changed the build.gradle in GeckoViewPlugin/app/build.gradle to have
implementation "org.mozilla.geckoview:geckoview${geckoviewChannel}-arm64-v8a:${geckoviewVersion}" with the proper geckoviewVersion
However building my unity project it still crashes... Am I missing something? Do I need to build something outside of unity? something from the GeckoViewPlugin?
from unityoculusandroidvrbrowser.
FATAL EXCEPTION: Gecko
07-08 16:22:28.548 10431 10564 E AndroidRuntime: Process: com.DartmouthSILVR.QuickSilvr, PID: 10431
07-08 16:22:28.548 10431 10564 E AndroidRuntime: java.lang.RuntimeException: LOAD mozglue: ABI: unknown (0x0), arm64-v8a: Data: /data/user/0/com.DartmouthSILVR.QuickSilvr, ax=false, ddx=false, -1x=false, -2x=false, nativeLib: /data/app/com.DartmouthSILVR.QuickSilvr-2SCL0Zqm8nNJlrbg5wOCFw==/lib/arm64, dirx=true, libx=false
07-08 16:22:28.548 10431 10564 E AndroidRuntime: at org.mozilla.gecko.mozglue.GeckoLoader.doLoadLibrary(GeckoLoader.java:468)
07-08 16:22:28.548 10431 10564 E AndroidRuntime: at org.mozilla.gecko.mozglue.GeckoLoader.loadMozGlue(GeckoLoader.java:476)
07-08 16:22:28.548 10431 10564 E AndroidRuntime: at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:421)
07-08 16:22:28.548 10431 10564 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.DartmouthSILVR.QuickSilvr-2SCL0Zqm8nNJlrbg5wOCFw==/base.apk"],nativeLibraryDirectories=[/data/app/com.DartmouthSILVR.QuickSilvr-2SCL0Zqm8nNJlrbg5wOCFw==/lib/arm64, /data/app/com.DartmouthSILVR.QuickSilvr-2SCL0Zqm8nNJlrbg5wOCFw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]] couldn't find "libmozglue.so"
Here are my error logs, looks like it can't find "libmozglue.so"
from unityoculusandroidvrbrowser.
Hm if that's not a library you can include like I did here (those are libraries the gecko engine asked for) you could try asking in Bugzilla about that error when using their library in Unity.
from unityoculusandroidvrbrowser.
Where did you get those libraries? All I did was switch out the .aar file but maybe I need to switch out all of those libraries to arm64 versions. I didn't see any of those files where I got the .aar from https://maven.mozilla.org/maven2/?prefix=maven2/org/mozilla/geckoview/
from unityoculusandroidvrbrowser.
I don't remember exactly where I got them but from a quick google search I see they're available to download (common-1.1.1.jar. Have you tried searching for libmozglue.so?
from unityoculusandroidvrbrowser.
using gecko version 80 seems to work for me
from unityoculusandroidvrbrowser.
using gecko version 80 seems to work for me
Do you mean the latest version (98) in my PR #43 ?
from unityoculusandroidvrbrowser.
Related Issues (20)
- Donation Link? HOT 2
- Contact details for VR collaboration HOT 1
- Change Browser View Resolution HOT 1
- Browser View content not showing anything HOT 1
- build stop with 'ArgumentException: The Assembly UnityEditor is referenced by UniRx.Async' HOT 1
- Receiving a message from browser. HOT 7
- Drag & Drop in Oculus Quest 2 HOT 1
- How to build geckoViewPlugin in android studio HOT 5
- Problem building plugin with newer GeckoView Version HOT 7
- Execute javascript? HOT 1
- Pop Up Windows HOT 1
- Website not displaying HOT 3
- No listener for GeckoView:ContentPermission HOT 3
- Pointer Hover doesnt work
- Changing the browser's status(?) from Mobile device to Desktop device HOT 1
- Incorporating Browser into other Unity Projects HOT 2
- Export plugin to a different Unity editor
- open in new tab HOT 1
- updating Geckoview breaking changes
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 unityoculusandroidvrbrowser.