Open arjungaonkar opened 3 years ago
Ended up using this https://github.com/googlevr/gvr-unity-sdk
Hello,
Ended up using this https://github.com/googlevr/gvr-unity-sdk
You shouldn't, this cardboard
SDK is meant to replace the old gvr-unity-sdk
one which is not maintained anymore and for example doesn't work anymore on iOS >= 14.
I am not familiar with firebase Unity SDK but you would share a simple unity project repro case and the current maintainer could probably help.
The problem you have is that you have duplicate java libraries in your project of different versions. You should have just one unless their interfaces / classes doesn't collide. Attempt to remove one and it should solve your build issue.
Personally I have used with success EDM4U dependency manager to resolve all interlinked dependencies of all SDKs I have in my project and solve these kind of issues and make sure the right version of each java libraries is downloaded.
I tired force resolve with EDM4U dependency manager, same error. When i tried to exclude com.google.protobuf:protobuf-javalite or com.google.protobuf:protobuf-javalite in gradle, the app ends up starting with black screen and crashes on tapping or starts with VR view and crashes after few seconds.
Sorry for the long delay here. It seems this issue could be related to #112. Furthermore, I want to let you know that the next release of the Cardboard SDK (v1.5.0) to be released soon, includes a bump in the protobuf version, being the new one 'com.google.protobuf:protobuf-javalite:3.8.0'
.
Therefore, I expect this issue to be solved once the release is out. In case it is not, please reach out to us again.
v1.5.0 is now out and we believe this is fixed. Please reopen this issue if it is still happening for you.
Black screen and crashes.
i added these lines in mainTemplate.gradle(https://developers.google.com/cardboard/develop/unity/quickstart)
So i replaced first two lines as mentioned here https://github.com/googlevr/cardboard/issues/140
I am also facing Black screen and crash. I started facing it with a existing app and then created a new simple app to check out. I still have one working app. Both working and non working app use v1.5.0. Here is the exception log fro app. Not sure if this is the same as issue being discussed in this thread.
* Edit Working app is v1.4.1. The issue seems to be after update to 1.5.0
05-22 16:18:44.396 7374 7374 D Error : ERR: file=tgkill
05-22 16:18:44.396 7374 7374 D Error : ERR: class=libc
05-22 16:18:44.396 7374 7374 D Error : ERR: method=tgkill line=8
05-22 16:18:44.397 7374 7374 D Error : ERR: stack=java.lang.Error: FATAL EXCEPTION [main]
05-22 16:18:44.397 7374 7374 D Error : Unity version : 2020.3.0f1
05-22 16:18:44.397 7374 7374 D Error : Device model : HTC HTC U Play
05-22 16:18:44.397 7374 7374 D Error : Device fingerprint: htc/alpine_dugl_00400/htc_alpine_dugl:6.0/MRA58K/895079.6:user/release-keys
05-22 16:18:44.397 7374 7374 D Error : Build Type : Release
05-22 16:18:44.397 7374 7374 D Error : Scripting Backend : IL2CPP
05-22 16:18:44.397 7374 7374 D Error : ABI : arm64-v8a
05-22 16:18:44.397 7374 7374 D Error : Strip Engine Code : true
05-22 16:18:44.397 7374 7374 D Error :
05-22 16:18:44.397 7374 7374 D Error : Caused by: java.lang.Error:
05-22 16:18:44.397 7374 7374 D Error : Version '2020.3.0f1 (c7b5465681fb)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
05-22 16:18:44.397 7374 7374 D Error : Build fingerprint: 'htc/alpine_dugl_00400/htc_alpine_dugl:6.0/MRA58K/895079.6:user/release-keys'
05-22 16:18:44.397 7374 7374 D Error : Revision: '0'
05-22 16:18:44.397 7374 7374 D Error : ABI: 'arm64'
05-22 16:18:44.397 7374 7374 D Error : Timestamp: 2021-05-22 16:18:37+0530
05-22 16:18:44.397 7374 7374 D Error : pid: 7374, tid: 7429, name: Thread-14897 >>> in.xrconnect.Experimental <<<
05-22 16:18:44.397 7374 7374 D Error : uid: 10228
05-22 16:18:44.397 7374 7374 D Error : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
05-22 16:18:44.397 7374 7374 D Error : x0 0000000000000000 x1 0000000000001d05 x2 0000000000000006 x3 0000000000000000
05-22 16:18:44.397 7374 7374 D Error : x4 0000000000000000 x5 0000000000000001 x6 0000000000000000 x7 0000000000000000
05-22 16:18:44.397 7374 7374 D Error : x8 0000000000000083 x9 0000000000036c80 x10 00000000005be908 x11 00000000005bea48
05-22 16:18:44.397 7374 7374 D Error : x12 0000000000000000 x13 0000007fa903b000 x14 0000000000000000 x15 0000007fa902d000
05-22 16:18:44.397 7374 7374 D Error : x16 0000007fa902d558 x17 0000007fa8fbd7c4 x18 0000007fa903ef60 x19 0000007f8533f500
05-22 16:18:44.397 7374 7374 D Error : x20 0000007f8533f440 x21 000000000000000d x22 0000000000000006 x23 0000007f9f35c800
05-22 16:18:44.397 7374 7374 D Error : x24 0000007f9f376c80 x25 0000000000000000 x26 0000007fa55438c0 x27 0000007fa5568000
05-22 16:18:44.397 7374 7374 D Error : x28 0000000000000000 x29 0000007f8533dbf0
05-22 16:18:44.397 7374 7374 D Error : sp 0000007f8533dbf0 lr 0000007fa8fbbc08 pc 0000007fa8fbd7cc
05-22 16:18:44.397 7374 7374 D Error :
05-22 16:18:44.397 7374 7374 D Error : backtrace:
05-22 16:18:44.397 7374 7374 D Error : #00 pc 000000000006b7cc /system/lib64/libc.so (tgkill+8) (BuildId: e349ad0546f62c5bd452680bc8a8699e)
05-22 16:18:44.397 7374 7374 D Error : #01 pc 0000000000069c04 /system/lib64/libc.so (pthread_kill+68) (BuildId: e349ad0546f62c5bd452680bc8a8699e)
05-22 16:18:44.397 7374 7374 D Error : #02 pc 0000000000023be4 /system/lib64/libc.so (raise+28) (BuildId: e349ad0546f62c5bd452680bc8a8699e)
05-22 16:18:44.397 7374 7374 D Error : #03 pc 000000000001e384 /system/lib64/libc.so (abort+60) (BuildId: e349ad0546f62c5bd452680bc8a8699e)
05-22 16:18:44.397 7374 7374 D Error : #04 pc 000000000043704c /system/lib64/libart.so (art::Runtime::Abort()+324) (BuildId: 3fd6aa44de7b3e2121d2494c2b4e8c54)
05-22 16:18:44.397 7374 7374 D Error : #05 pc 0000000000137cc4 /system/lib64/libart.so (art::LogMessage::LogMessage(char const, unsigned int, art::LogSeverity, int)) (BuildId: 3fd6aa44de7b3e2121d2494c2b4e8c54)
05-22 16:18:44.397 7374 7374 D Error : #06 pc 0000000000313270 /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const, char const)+2292) (BuildId: 3fd6aa44de7b3e2121d2494c2b4e8c54)
05-22 16:18:44.397 7374 7374 D Error : #07 pc 000000000031383c /system/lib64/libart.so (art::JavaVMExt::JniAbortF(char const, char const, ...)+224) (BuildId: 3fd6aa44de7b3e2121d2494c2b4e8c54)
05-22 16:18:44.397 7374 7374 D Error : #08 pc 0000000000358e84 /system/lib64/libart.so (art::JNI::GetObjectClass(_JNIEnv, _jobject)+592) (BuildId: 3fd6aa44de7b3e2121d2494c2b4e8c54)
05-22 16:18:44.397 7374 7374 D Error : #09 pc 0000000000060ca0 /data/app/in.xrconnect.Experimental-1/lib/arm64/libcardboard_api.so (_JNIEnv::GetObjectClass(_jobject)+52) (BuildId: c9f8f03c764f73f245129eabf3a3a47e8f54aa31)
05-22 16:18:44.397 7374 7374 D Error : #10 pc 0000000000062764 /data/app/in.xrconnect.Experimental-1/lib/arm64/libcardboard_api.so (cardboard::DeviceParams::inter_lens_distance() const+64) (BuildId: c9f8f03c764f73f245129eabf3a3a47e8f54aa31)
05-22 16:18:44.397 7374 7374 D Error : #11 pc 00000000000441e0 /data/app/in.xrconnect.Experimental-1/lib/arm64/libcardboard_api.so (cardboard::LensDistortion::LensDistortion(unsigned char const*, int, int, int)+212) (BuildId: c9f8f03c764f73f245129eabf3a3a47e8f54aa31)
05-22 16:18:44.397 7374 7374 D Error : #12 pc 0000000000037df8 /data/app/in.xrconnect.Experimental-1/lib/arm64/libcardboard_api.so (CardboardLensDistortion_create+152) (BuildId: c9f8f03c764f73f245129eabf3a3a47e8f54aa31)
05-22 16:18:44.397 7374 7374 D Error : #13 pc 0000000000066274 /data/app/in.xrconnect.Experimental-1/lib/arm64/libcardboard_api.so (cardboard::unity::CardboardApi::CardboardApiImpl::UpdateDeviceParams()+204) (BuildId: c9f8f03c764f73f245129eabf3a3a47e8f54aa31)
05-22 16:18:44.397 7374 7374 D Error : #14 pc 0000000000066198 /data/app/in.xrconnect.Experimental-1/lib/arm64/libcardboard_api.so (cardboard::unity::CardboardApi::UpdateDeviceParams()+24) (BuildId: c9f8f03c764f73f245129eabf3a3a47e8f54aa31)
05-22 16:18:44.397 7374 7374 D Error :
05-22 16:18:44.397 7374 7374 D Error : ERR: TOTAL BYTES WRITTEN: 24952
05-22 16:18:44.397 2593 2985 E ActivityManager: App crashed! Process: in.xrconnect.Experimental
Thanks for reaching out @arjungaonkar and @nbhatex! I'm not sure whether the crash culprit is the same on both projects though. In order to debug the issue, could you please share a simple repro project where the issue is depicted and the steps required to reproduce it?
If that project could be a modified version of the HelloCardboard sample, it would be even better. That would be really helpful for us in order to solve this issue. Thanks!
This issue is not fixed. Any updates on this would be appreciated.
To reproduce:
Builds crash before unity splash screen, both on Android and IOS
I could reproduce on my machine! For me the problem was that this library uses protobuf-javalite 3.8.0, which has a known issue on older phones. I updated my copy of cardboard to the newest stable protobuf-javalite version (3.17.3) and I think that'll handle the error.
I could reproduce on my machine! For me the problem was that this library uses protobuf-javalite 3.8.0, which has a known issue on older phones. I updated my copy of cardboard to the newest stable protobuf-javalite version (3.17.3) and I think that'll handle the error.
I tried this. Still getting the black screen and app crash
Alot of duplicate class error when building.
Unity version: 2019.4.1f1 I have firebase_unity_sdk_7.1.0 plugins installed in the project