Pixplicity / sharp

Scalable vector graphics for Android
Apache License 2.0
1.03k stars 117 forks source link

Library crashes on image load in RecyclerView. #55

Open behrinhalilov opened 4 years ago

behrinhalilov commented 4 years ago

The library throwing an IllegalStateException when trying to load svg images from String.

java.lang.IllegalStateException: Picture already recording, must call #endRecording() at android.graphics.Picture.beginRecording(Picture.java:83) at com.pixplicity.sharp.Sharp$SvgHandler.startElement(Sharp.java:1768) at org.apache.harmony.xml.ExpatParser.startElement(ExpatParser.java:147) at org.apache.harmony.xml.ExpatParser.appendBytes(Native Method) at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:517) at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:478) at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316) at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279) at com.pixplicity.sharp.Sharp$SvgHandler.read(Sharp.java:1328) at com.pixplicity.sharp.Sharp.getSharpPicture(Sharp.java:407) at com.pixplicity.sharp.Sharp.getSharpPicture(Sharp.java:429) at com.pixplicity.sharp.Sharp.getDrawable(Sharp.java:374) at com.pixplicity.sharp.Sharp.into(Sharp.java:325)