I'm getting an error in PathParser on android when I draw this vector drawable
<vector android:height="24dp" android:viewportHeight="667.0"
android:viewportWidth="667.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#f06927"
android:pathData="M333.5,333.5m-333.5,0a333.5,333.5 0,1 1,667 0a333.5,333.5 0,1 1,-667 0"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="1"/>
</vector>
and here is the error (getting it twice)
12-06 17:06:36.273 28351-28351/com.dakota.vectorpreview W/PathParser: Points are too far apart 4.000000000000001
and here is the Android source code (line 415) that evaluates 4.000000000000001
/* Compute differences and averages */
double dx = x0p - x1p;
double dy = y0p - y1p;
double dsq = dx * dx + dy * dy;
double disc = 1.0 / dsq - 1.0 / 4.0;
if (disc < 0.0) {
Log.w(LOGTAG, "Points are too far apart " + dsq);
float adjust = (float) (Math.sqrt(dsq) / 1.99999);
drawArc(p, x0, y0, x1, y1, a * adjust,
b * adjust, theta, isMoreThanHalf, isPositiveArc);
return; /* Points are too far apart */
}
It's drawing to the screen correctly as far as I can tell. This seems like a bug more than coding error.
EDIT: I am looking for a way to solve this answer not an explanation of why it's occurring.