cancel
Showing results for 
Search instead for 
Did you mean: 

GearVR + Platform SDK cannot initialize

nullterm
Honored Guest
Android GearVR, Unity.  When calling Core.Initialize the script immediately dies.

First exception: AppID found in Library does NOT match the appID in the bundle

Also the later exception: Package com.imeve.avatar not in users library

I have been pouring through the documentation to find what the issue is to no avail.  I've updated the Unity Android Player Settings, OculusPlatformSettings, added user to the developer list in the web dashboard, etc.



01-19 19:25:10.401 20284-20329/? I/Unity: !!!ROOMS!!! - Oculus.Platform.Core.Initialize
                                          UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
                                          UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
                                          UnityEngine.Logger:Log(LogType, Object)
                                          UnityEngine.Debug:Log(Object)
                                          RoomsManager:Start() (at C:\Imevo\ImevoAvatar\Assets\RoomsManager.cs:15)
                                          
                                          (Filename: C Line: 0)
...
01-19 19:25:10.536 8767-9492/? E/ExternalPlatformLocal: AppID found in Library does NOT match the appID in the bundle.
01-19 19:25:10.538 8767-9492/? E/ExternalPlatformLocal: AppID found in Library does NOT match the appID in the bundle.
01-19 19:25:10.539 8767-9492/? E/ProfileContentProvider: Package not found in library
                                                         com.oculus.horizon.service.ExternalPlatformLocal$PackageNotInLibraryException: Package com.imeve.avatar not in users library
                                                             at com.oculus.horizon.service.ExternalPlatformLocal.getAppID(ExternalPlatformLocal.java:235)
                                                             at com.oculus.horizon.provider.ProfileContentProvider.getAppScopedUserID(ProfileContentProvider.java:284)
                                                             at com.oculus.horizon.provider.ProfileContentProvider.doQuery(ProfileContentProvider.java:99)
                                                             at com.oculus.content.AbstractContentProvider.doQuery(AbstractContentProvider.java:132)
                                                             at com.oculus.content.AbstractContentProvider.query(AbstractContentProvider.java:367)
                                                             at android.content.ContentProvider$Transport.query(ContentProvider.java:243)
                                                             at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
                                                             at android.os.Binder.execTransact(Binder.java:573)
01-19 19:25:10.541 20284-20622/? I/VrApi: FPS=4,Prd=7ms,Tear=2,Early=0,Stale=4,VSnc=1,Lat=1,CPU4/GPU=2/2,1144/0MHz,OC=FF,TA=F0/0/0,SP=F/N/N,Mem=1014MHz,Free=1425MB,PSM=0,PLS=0,Temp=32.2C/30.0C
01-19 19:25:10.542 8767-20864/? E/ACRA: Handling exception for soft error
                                        com.facebook.common.errorreporting.SoftErrorException: ExternalPlatformLocal | AppID found in Library does NOT match the appID in the bundle.
                                            at com.facebook.common.errorreporting.FbErrorReporterImpl.softReport(FbErrorReporterImpl.java:172)
                                            at com.oculus.errorreporting.ErrorReporter.softReport(ErrorReporter.java:152)
                                            at com.oculus.errorreporting.ErrorReporter.softReport(ErrorReporter.java:104)
                                            at com.oculus.horizon.service.ExternalPlatformLocal.getAppID(ExternalPlatformLocal.java:233)
                                            at com.oculus.horizon.provider.ProfileContentProvider.getAppScopedUserID(ProfileContentProvider.java:284)
                                            at com.oculus.horizon.provider.ProfileContentProvider.doQuery(ProfileContentProvider.java:99)
                                            at com.oculus.content.AbstractContentProvider.doQuery(AbstractContentProvider.java:132)
                                            at com.oculus.content.AbstractContentProvider.query(AbstractContentProvider.java:367)
                                            at android.content.ContentProvider$Transport.query(ContentProvider.java:243)
                                            at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
                                            at android.os.Binder.execTransact(Binder.java:573)
01-19 19:25:10.532 8767-9492/? E/SignatureHelper: Not a trusted user. Do you have Unlockulus or pass the IsTrustedUser gk?
01-19 19:25:10.534 20284-20862/? W/VideoCapabilities: Unrecognized profile/level 1/32 for video/mp4v-es
01-19 19:25:10.534 20284-20862/? W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
01-19 19:25:10.534 20284-20862/? W/VideoCapabilities: Unrecognized profile/level 32768/64 for video/mp4v-es
01-19 19:25:10.536 8767-9492/? E/ExternalPlatformLocal: AppID found in Library does NOT match the appID in the bundle.
01-19 19:25:10.538 8767-9492/? E/ExternalPlatformLocal: AppID found in Library does NOT match the appID in the bundle.
01-19 19:25:10.539 8767-9492/? E/ProfileContentProvider: Package not found in library
                                                         com.oculus.horizon.service.ExternalPlatformLocal$PackageNotInLibraryException: Package com.imeve.avatar not in users library
                                                             at com.oculus.horizon.service.ExternalPlatformLocal.getAppID(ExternalPlatformLocal.java:235)
                                                             at com.oculus.horizon.provider.ProfileContentProvider.getAppScopedUserID(ProfileContentProvider.java:284)
                                                             at com.oculus.horizon.provider.ProfileContentProvider.doQuery(ProfileContentProvider.java:99)
                                                             at com.oculus.content.AbstractContentProvider.doQuery(AbstractContentProvider.java:132)
                                                             at com.oculus.content.AbstractContentProvider.query(AbstractContentProvider.java:367)
                                                             at android.content.ContentProvider$Transport.query(ContentProvider.java:243)
                                                             at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
                                                             at android.os.Binder.execTransact(Binder.java:573)
01-19 19:25:10.541 20284-20622/? I/VrApi: FPS=4,Prd=7ms,Tear=2,Early=0,Stale=4,VSnc=1,Lat=1,CPU4/GPU=2/2,1144/0MHz,OC=FF,TA=F0/0/0,SP=F/N/N,Mem=1014MHz,Free=1425MB,PSM=0,PLS=0,Temp=32.2C/30.0C
01-19 19:25:10.542 8767-20864/? E/ACRA: Handling exception for soft error
                                        com.facebook.common.errorreporting.SoftErrorException: ExternalPlatformLocal | AppID found in Library does NOT match the appID in the bundle.
                                            at com.facebook.common.errorreporting.FbErrorReporterImpl.softReport(FbErrorReporterImpl.java:172)
                                            at com.oculus.errorreporting.ErrorReporter.softReport(ErrorReporter.java:152)
                                            at com.oculus.errorreporting.ErrorReporter.softReport(ErrorReporter.java:104)
                                            at com.oculus.horizon.service.ExternalPlatformLocal.getAppID(ExternalPlatformLocal.java:233)
                                            at com.oculus.horizon.provider.ProfileContentProvider.getAppScopedUserID(ProfileContentProvider.java:284)
                                            at com.oculus.horizon.provider.ProfileContentProvider.doQuery(ProfileContentProvider.java:99)
                                            at com.oculus.content.AbstractContentProvider.doQuery(AbstractContentProvider.java:132)
                                            at com.oculus.content.AbstractContentProvider.query(AbstractContentProvider.java:367)
                                            at android.content.ContentProvider$Transport.query(ContentProvider.java:243)
                                            at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
                                            at android.os.Binder.execTransact(Binder.java:573)





2 REPLIES 2

nullterm
Honored Guest
Okay....

So I replaced: Platform.Initialize();

With: Platform.AsyncInitialize();

... and mysteriously GearVR Android is now working, but still getting all the same console exceptions I reported above.

I'm not sure how that should work any different other than sync/async, but going to stick with the "works more" path.

nullterm
Honored Guest
Now...

        Rooms.GetModeratedRooms();

...

            Message msg = Message.PopMessage();
            if ( msg is MessageWithRoomList ) {
                MessageWithRoomList msgWithRoomList = (MessageWithRoomList)msg;
                Debug.Log( "msgWithRoomList=" + msgWithRoomList );
                Debug.Log( "msgWithRoomList.Data=" + msgWithRoomList.Data );
                RoomList roomList = msgWithRoomList.GetRoomList();
                onRoomList( roomList );
            }

... run...

01-19 20:24:26.297 26619-26670/? I/Unity: msgWithRoomList=Oculus.Platform.MessageWithRoomList
                                          UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
                                          UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
                                          UnityEngine.Logger:Log(LogType, Object)
                                          UnityEngine.Debug:Log(Object)
                                          RoomsManager:Update() (at C:\Imevo\ImevoAvatar\Assets\RoomsManager.cs:58)
                                          
                                          (Filename: C Line: 0)
01-19 20:24:26.298 26619-26670/? I/Unity: msgWithRoomList.Data=
                                          UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
                                          UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
                                          UnityEngine.Logger:Log(LogType, Object)
                                          UnityEngine.Debug:Log(Object)
                                          RoomsManager:Update() (at C:\Imevo\ImevoAvatar\Assets\RoomsManager.cs:59)
                                          
                                          (Filename: C Line: 0)

roomList is null, but it is working correctly on Windows Rift build.