BigBadaboom / androidsvg

SVG rendering library for Android
http://bigbadaboom.github.io/androidsvg/
Apache License 2.0
1.21k stars 231 forks source link

Exceptions on Ulefone Armor X2 with Android 8.1 (SDK 27) #226

Closed devemux86 closed 2 years ago

devemux86 commented 3 years ago

I am using the latest AndroidSVG 1.4 release.

There are some exceptions on a single device: Ulefone Armor X2 with Android 8.1 (SDK 27). (reported via Google Play console)

java.lang.NoSuchFieldError: 
  at com.caverock.androidsvg.SVGParser$XPPAttributesWrapper.getLength (SVGParser.java:637)
  at com.caverock.androidsvg.SVGParser.parseAttributesCore (SVGParser.java:2879)
  at com.caverock.androidsvg.SVGParser.svg (SVGParser.java:1189)
  at com.caverock.androidsvg.SVGParser.startElement (SVGParser.java:894)
  at com.caverock.androidsvg.SVGParser.parseUsingXmlPullParser (SVGParser.java:708)
  at com.caverock.androidsvg.SVGParser.parse (SVGParser.java:603)
  at com.caverock.androidsvg.SVG.getFromInputStream (SVG.java:150)
java.lang.IncompatibleClassChangeError: 
  at com.caverock.androidsvg.SVGParser$XPPAttributesWrapper.getLength (SVGParser.java:637)
  at com.caverock.androidsvg.SVGParser.parseAttributesStyle (SVGParser.java:2907)
  at com.caverock.androidsvg.SVGParser.circle (SVGParser.java:1516)
  at com.caverock.androidsvg.SVGParser.startElement (SVGParser.java:907)
  at com.caverock.androidsvg.SVGParser.parseUsingXmlPullParser (SVGParser.java:708)
  at com.caverock.androidsvg.SVGParser.parse (SVGParser.java:603)
  at com.caverock.androidsvg.SVG.getFromInputStream (SVG.java:150)
BigBadaboom commented 3 years ago

Hi. Thanks for the report. I don't suppose you have any idea what the SVG file was do you?

These exceptions don't really look like programming errors. They look like errors caused by a bad build. Which v1.4 shouldn't be since a lot of people are using it. Where you using the prebuilt AAR, or did you compile it yourself?

devemux86 commented 3 years ago

We use the official jar from Maven. The same app (Kurviger) works fine in all devices.

These exceptions appeared recently and on one particular device. Maybe some problem with the device's Android?

We use AndroidSVG in Mapsforge + VTM all these years, we have not seen such case.

The SVG file should be in the zip. marker.zip

BigBadaboom commented 3 years ago

Thanks for the extra info. I agree that it might be a one-off - or a bad device. I'll keep this open for a while and see if it recurs.

BigBadaboom commented 2 years ago

There have been no followup reports for over a year, so I am going to assume this was an issue with one device, or an anomaly.

If you have more info, let me know and I will be happy to reopen