-
-
Notifications
You must be signed in to change notification settings - Fork 254
Some device report (crashlytics) crash Caused by java.lang.NumberFormatException #41
Comments
I'm able to reproduce only on an obfuscated APK Checking it out |
Correction: it's fine in an APK and doesn't work when distributed from an android bundle via the play store (aab).. I find it very strange and worrying.. probably has nothing to do with the library |
Hi @Shailevy thank you for using RichPath, I will investigate in that crash. |
Hi, |
I emailed you. I will opt-in to the beta and then we can see if this is a generic problem or app-specific |
Me again, Turns out you can ran an Android Bundle with android studio: The problem reproduces right away so I was able to debug it: getAttributeStrokeLineCap in XmlParser.class calls getAttributeValue(xpp, attributeName) The function: For my XML I'm guessing it has something to do with the schemas.android.com/apk/res/android name space that hard-coded in the library.. I'm still trying to figure out how to overcome this, I will keep updating you here if I make progress ----- Update: However, |
Thank you for these information, I will try to figure out this issue in the weekend and I will contact if I have update or need to ask question! Thank you again! |
Please don't forget this issue so we can all peek on App-Bundles again at some point. |
Any updated ? is this great library abandoned ? |
Hi @Shailevy I would suggest if you have some time to do this fix and open a pull request! I think it should be easier for you since you're familiar with the bug and know how to reproduce it. |
Hi,
Great library, We used in our production app and we love it, keep up the good work.
But we some devices are reporting a crash with this stack trace:
"Caused by java.lang.NumberFormatException
For input string: "round""
java.lang.Integer.parseInt (Integer.java:615)
java.lang.Integer.parseInt (Integer.java:650)
com.richpath.c.c.a (XmlParser.java:139)
com.richpath.RichPath.inflate (RichPath.java:419)
com.richpath.c.c.b (XmlParser.java:88)
com.richpath.c.c.a (XmlParser.java:55)
com.richpath.RichPathView.setVectorDrawable (RichPathView.java:84)
com.richpath.RichPathView.setupAttributes (RichPathView.java:67)
com.richpath.RichPathView. (RichPathView.java:45)
com.richpath.RichPathView. (RichPathView.java:39)
According to the "round" string I see, I'm guessing it might have something to do with our vector , our path's have
android:strokeLineCap="round"
android:strokeLineJoin="round"
In them.. is that a problem ?
(we use com.github.tarek360.RichPath:animator:0.1.1 )
The text was updated successfully, but these errors were encountered: