-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorEarthNotReady causing black screen #183
Comments
Somehow it worked on POCO X3. |
Do you get the same behavior on the GeospatialSample? https://github.com/google-ar/arcore-unity-extensions/tree/master/Samples~/Geospatial |
Yes |
Hi,
It works fine initially but after some time AREarthManager.EarthState is always ErrorEarthNotReady. P.S: posted this also on #147 |
One way to get an AREarthManager.EarthState is always ErrorEarthNotReady error with an unchanged sample is with a flaky internet connection. For me it was a simple problem, I didn't have a sim card for my work phone for testing Geospatial outside and trying to use a building wifi can be tricky. In my case tethering my work phone no sim to my personal phone with a sim card made this work much better. This does hint that if your network is flaky for other reasons and you can't talk to the VPS server and send your camera data you will see a similar issue. |
@swardle thanks but I suppose this is not my problem :( |
For what is worth, i have been struggling with this for the last 3 days. Closing Unity, erasing "Library" folder, reopening projet within UNITY and rebuilding apk seems to have helped. My conf:
|
I'm creating an AR Map program, but I'm experiencing the same problem. Every time I build, sometimes it works and sometimes it doesn't, so I'm trying various ways to solve the problem, but I don't know what the difference is. Does the problem occur when building, or when the program is turned off and on? If the above method doesn't work, I thought I could clear the build cache and build again, but that wasn't the case. Accurate problem analysis and solution are required. This problem has been bugging me for a week. My conf:
|
Hi, |
Have a look here - If you run Android Logcat and see the error |
Hello,
I'm trying to make a simple geospatial unity project on android but I'm having problems with a black screen.
I have suspicions that the cause of the black screen may be
EarthState.ErrorEarthNotReady
, which does not disappear (screenshot below).screenshot from android device
if I turn off the ARCoreExtensions component, the black screen disappears.
I traced the code to a call to the external function
ExternApi.ArSession_acquireEarth
from theSessionAPI
class that I found in the ArCoreExtensions files, which, according to the information I found here, should return anearth object
, but in my case it returns null. It also says that the function returns null when#AR_GEOSPATIAL_MODE_DISABLED
.ExternApi.ArSession_acquireEarth call in SessionAPI class
ArSession_acquireEarth method documentation I found
I double checked the GeospatialMode.Enabled state.
ARCoreExtensionsConfig.asset
Also
earthManager.IsGeospatialModeSupported(GeospatialMode.Enabled)
returnssupported
state, this is shown in the first screenshot.My environment:
Unity 2021.3.22f1
ARFoundation 4.2.10
ARCore 4.2.10
ARKit 4.2.10
ARCoreExtansions 1.41.0
Cesium 1.7.1
Mi 8 android device (ARCore supported), android version 10.
Any information on this would be very helpful and useful. Thanks.
The text was updated successfully, but these errors were encountered: