Start a new topic

Wikitude dies when run under Android Oreo

We've been using Wikitude 7.0.0/Unity 2017.1 successfully.

After installing Oreo we get the following:


09-04 16:26:38.046 29325 29341 I Unity   : AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.wikitude.common.camera.CameraSize.getWidth()' on a null object reference

09-04 16:26:38.046 29325 29341 I Unity   : java.lang.NullPointerException: Attempt to invoke virtual method 'int com.wikitude.common.camera.CameraSize.getWidth()' on a null object reference

09-04 16:26:38.046 29325 29341 I Unity   :      at com.wikitude.unity.WikitudeActivity.getCameraInfo(WikitudeActivity.java:601)

09-04 16:26:38.046 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

09-04 16:26:38.046 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer.c(Unknown Source:0)

09-04 16:26:38.046 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source:151)

09-04 16:26:38.046 29325 29341 I Unity   :      at android.os.Handler.dispatchMessage(Handler.java:101)

09-04 16:26:38.046 29325 29341 I Unity   :      at android.os.Looper.loop(Looper.java:164)

09-04 16:26:38.046 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer$c.run(Unknown Source:20)

09-04 16:26:38.046 29325 29341 I Unity   :   at UnityEngine.AndroidJNISafe.CheckException () [0x0008c] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs:24

09-04 16:26:38.046 29325 29341 I Unity   :   at UnityEngine.AndroidJNISafe.CallStringMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00011] in /Users/builduse

09-04 16:26:38.051   921 21441 W ActivityManager: Unable to start service Intent { cmp=com.google.android.gm.exchange/com.android.exchange.service.EasService } U=0: not found

09-04 16:26:38.113 29325 29341 I Unity   : AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'com.wikitude.tracker.TrackerManager com.wikitude.WikitudeSDK.getTrackerManager()' on a null object reference

09-04 16:26:38.113 29325 29341 I Unity   : java.lang.NullPointerException: Attempt to invoke virtual method 'com.wikitude.tracker.TrackerManager com.wikitude.WikitudeSDK.getTrackerManager()' on a null object reference

09-04 16:26:38.113 29325 29341 I Unity   :      at com.wikitude.unity.WikitudeActivity.instantiateInstantTracker(WikitudeActivity.java:351)

09-04 16:26:38.113 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

09-04 16:26:38.113 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer.c(Unknown Source:0)

09-04 16:26:38.113 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source:151)

09-04 16:26:38.113 29325 29341 I Unity   :      at android.os.Handler.dispatchMessage(Handler.java:101)

09-04 16:26:38.113 29325 29341 I Unity   :      at android.os.Looper.loop(Looper.java:164)

09-04 16:26:38.113 29325 29341 I Unity   :      at com.unity3d.player.UnityPlayer$c.run(Unknown Source:20)

09-04 16:26:38.113 29325 29341 I Unity   :   at UnityEngine.AndroidJNISafe.CheckException () [0x0008c] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs:24

09-04 16:26:38.113 29325 29341 I Unity   :   at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr




Hi, 


Thanks for reporting this issue.

Is this issue reproducible with our example project as well, or only with yours.

Can you also please tell us if there are any steps to reproduce the crash, and how likely it is to happen?


Best regards,

Alexandru

Hi Alexandr


The issue is reproducible in your example project scene "Client Recognition - Instant Tracking". The steps to reproduce the crash are deploy run it to the device and run. Currently 100% reproduction rate, to be sure it wasn't a change we had done I deployed an old build we had built that was working prior to Oreo and that has the same issue.


Steve

The issue was reproduced on a PixelXL, it is the only Android O device we have at the moment.

Hi, 


Thank you for checking.

Can you please check if the app has the camera permission enabled?


Best regards,

Alexandru

It does, I've also tried uninstalling and clearing any cached data, and then when it deploys again it has asked. Subsequent runs don't ask and issue still happens.

Hi,


I reproduced this issue on the Pixel, and for me at least it's a permission issue. When I start the app after reinstalling, I only get the storage access permission request, but not the camera permission. And I can confirm this by going in the permissions settings of the app, where the camera permission is turned off. If I enable it from there, the app works as expected again.


We don't do any runtime permission handling in the SDK, so this is handled entirely by Unity. From looking around the forums, they seem to confirm that they found an issue and an update from them is on its way. You can read more about it here.


Can you please confirm that this is the same issue you are experiencing?


Thank you,

Alexandru

Hi Alexandru,


I can confirm it is actually a permission issue as you first suggested, upon running again we were getting the popup for storage as well which I assumed to be camera access, manually enabled the permissions in the App Info fixes the issue.


Thanks

Steve

Login or Signup to post a comment