Closed HalestormAI closed 4 years ago
We'll have to look into it, but one thing that stands out to me is this message:
version_check.cc:23 ARCore Version: APK version:1.9.190422066
version_check.cc:24 ARCore Version: emulated SDK version:1.7.190120000
That might explain why it happens on some devices but not others. What version of ARCore is your "Pixel 2 XL on 9" running?
Hello,
I have a similar issue, on a Pixel 2, Android 8.1.0. Using Unity 2019.1.4 AR Foundation 2.1 (preview 2) ARSubsystems 2.1 (preview 1) ARCore XR 2.1 (preview 4) ARCore version : 1.9.190422066 of May 20th.
I migrated a project from ARFoundation 1 to AR Foundation 2.1. In my project as well as in the Unity samples, the ARscene will only start once. After closing the app, I have to re-install ARCore to get the AR scene running again.
I think I would rather re-migrate to ARFoundation 1.
PS: I tried 2 of my older (already published) ARFoundation 1.0 app projects. The ARcamera does not start on the Pixel2 either. We have to re-install ARCore, then the AR scene works for one time.
This issue seems to be related to ARCore's latest version ARCore version : 1.9.190422066 of May 20th. Now, after installing an older ARCore version: 1.8.190311106 project 1 and 2 work without any problems.
I had used: Pixel 2, Android 8.1.0. in project 1:
"com.unity.xr.arcore": "1.0.0-preview.23",
"com.unity.xr.arfoundation": "1.0.0-preview.20",
"com.unity.xr.arkit": "1.0.0-preview.17",
and in the older project 2:
"com.unity.xr.arcore": "1.0.0-preview.19",
"com.unity.xr.arfoundation": "1.0.0-preview.18",
"com.unity.xr.arkit": "1.0.0-preview.15",
Hi folks,
I tested ARCore 1.9.190422066 on a Pixel 1 (Android 9) without issue.
In my project as well as in the Unity samples, the ARscene will only start once.
Which scene?
Hi @tdmowrer, I tried the scene "simple AR" and "ARWorldMap": I attach the logcats. Pixel2-crash-simpleAR.txt
Second issue in the scene "ARWorldMap": After un-and reinstalling ARCore 1.9, the scene would work once. However, if I click on the upper right button "Restart AR session", the camera freezes/ stops working. Logcat: Pixel2-ARWorldMap-ResetSession.txt
If you need logcats of all sample scenes, just let me know.
@tdmowrer I have just found the following thread: https://github.com/google-ar/arcore-android-sdk/issues/789#issue-446349867 and see the comment concerning a production release build https://github.com/google-ar/arcore-android-sdk/issues/789#issuecomment-496113655
@tdmowrer I've seen the same issue today on my own Pixel 2 XL. I work with @InhaleExhale, but the issue had not yet appeared on my device, only on our test devices. The issue has now been seen on all of the Pixel devices we have in the office. I was creating builds for this phone earlier today without issue. I changed one line of code in our project, rebuilt, and then the issue presented itself. This is within our own project, not in a test scene.
Unity 2019.1.2f1 AR Foundation 2.1 (preview 2) ARSubsystems 2.1 (preview 1) ARCore XR 2.1 (preview 4) ARCore version : 1.9.190422066 Android Build: PQ3A.190505.001 (5th May 2019)
@tdmowrer after a little more testing, it seems that once the issue presents itself a restart temporarily fixes the issue for a single build. However, as soon as a new build is pushed to the device, the issue returns and the device requires a reboot to avoid the crash.
Hi @TheMunro, As described in the links above, the issue occurs in native apps, too. Does it crash, if you build in release mode? It only seems to crash in debug mode, then we have to un- and re-install ARCore. With an older ARCore version, the crash does not happen so far. https://github.com/Unity-Technologies/arfoundation-samples/issues/125?_pjax=%23js-repo-pjax-container#issuecomment-496296012
EDIT: Google will release a fix in a few hours: https://github.com/google-ar/arcore-android-sdk/issues/789#issuecomment-496661549
@TheMunro you mentioned
The issue has now been seen on all of the Pixel devices we have in the office.
The fix mentioned above is only for the Pixel 2 and Pixel 2 XL. Have you seen the crash on any other devices?
Currently getting the same error(UnityARCore_session_update, line 352) with these same exact symptoms on a Xiaomi Redmi Note 4x that runs Android 7. Tried the latest ARCore version, all the earlier ones that were mentioned in this thread, but it still persists. Have not discovered a solution for this so far.
Currently getting the same error(UnityARCore_session_update, line 352) with these same exact symptoms on a Xiaomi Redmi Note 4x that runs Android 7. Tried the latest ARCore version, all the earlier ones that were mentioned in this thread, but it still persists. Have not discovered a solution for this so far.
Have you tried ARFoundation 3.0? ARFoundation 3.0 provides much improved support for LWRP/Universal RP. Step-by-step instructions can be found here.
This is a bit of an odd one, only happening on a Pixel 2, and even then not on all Pixel 2's we have for development.
Using Unity 2019.1.2f, AR Foundation 2.1 (preview 2), ARSubsystems 2.1 (preview 1), ARCore XR 2.1 (preview 4), and the LWRP (5.6.1). I've made sure the latest version of ARCore is installed on the device and I've manually set all the permissions so the app has permission to use the camera. Even if I don't, the app correctly asks for the camera permission before crashing.
This test app is built as a dev build. It has one scene - SampleLWRPScene, and as soon as it loads, we get the following crash outlined in the stacktrace at the bottom of this post.
Unfortunately, by the time all the assemblies were loaded (even with "wait for managed debugger" enabled), the app crashed before I could breakpoint it.
However, we have a separate app using the same packages which also shows this problem nd has a longer load time! I've put a breakpoint in that at
ARCoreSessionSubsytem.Update(...)
, and the crash occurs on the very first call to that method - method call arguments parameters below:To add to the weirdness, when I re-installed ARCore, the app worked, once. Then never again.
Update: Tested on a Pixel 2 running Android 9 and saw the crash. Pixel 2 XL on 8.1, also observed the crash. Pixel 2 XL on 9, no crash.