arcore-unity-sdk
arcore-unity-sdk copied to clipboard
Issue: AugmentedImageDB Width less than 1, Unable to Build an Run
SPECIFIC ISSUE ENCOUNTERED
When I enter the width of an image in the AugmentedImageDB to a value less than 1 eg: 0.15, it breaks the build. Giving an error of: BuildFailedException: Temp/UnityTempFile-436e5ef2971c3f34f9eccf70a8e76877\inputImages:line 1: Invalid width specified: 0.
VERSIONS USED
- Unity: 2018.3.12f1
- ARCore SDK for Unity: 1.8.0
- Device manufacturer, model, and O/S: Android
- ARCore:
On Windows, use:
adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"
On macOS, use:adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
- Output of
adb shell getprop ro.build.fingerprint
:
STEPS TO REPRODUCE THE ISSUE
- Change the width of an image in the DB to a value less than 1 (From the editor)
- Try Build
WORKAROUNDS (IF ANY)
Don't set width of Image
ADDITIONAL COMMENTS
The Error is: "BuildFailedException: Temp/UnityTempFile-436e5ef2971c3f34f9eccf70a8e76877\inputImages:line 1: Invalid width specified: 0."
Note: Just checked, and you can still Build and install the apk on device worked fine, but the option to Build and Run is breaking
This still happens with ARCore SDK for Unity 1.10.0 and Unity 2019.1.9f1.
So I found out what was happening. My Windows is in French, and the database file was built without culture override, so 0.5
was written 0,5
, which crashed the parser.
I submitted a quick fix.
It seems that this problem came back with ARCore 1.14
I'm using ARCore 1.17 and ended up here, because of the reference image width error. I found a work around, in Unity I right clicked on augmented image db file and Show in Explorer. Here I opened the db file with VS and I set the 0 values to my required number (0.078) and saved. When I loaded the db in unity it showed the 0.078 width and didn't throw me error on build.