arcore-unity-sdk icon indicating copy to clipboard operation
arcore-unity-sdk copied to clipboard

Issue: AugmentedImageDB Width less than 1, Unable to Build an Run

Open GTaylorRabbit opened this issue 5 years ago • 5 comments

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

  1. Change the width of an image in the DB to a value less than 1 (From the editor)
  2. 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."

GTaylorRabbit avatar Apr 14 '19 14:04 GTaylorRabbit

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

GTaylorRabbit avatar Apr 14 '19 15:04 GTaylorRabbit

This still happens with ARCore SDK for Unity 1.10.0 and Unity 2019.1.9f1.

etbh avatar Jul 08 '19 13:07 etbh

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.

etbh avatar Jul 08 '19 14:07 etbh

It seems that this problem came back with ARCore 1.14

synthercat avatar Dec 27 '19 09:12 synthercat

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.

Zeghra avatar Jun 10 '20 17:06 Zeghra