Skip to content

Library crashes on image load in RecyclerView. #55

@behrinhalilov

Description

@behrinhalilov

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions