Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOF Exception for some icons #4

Open
wiryadev opened this issue Jun 27, 2021 · 0 comments
Open

EOF Exception for some icons #4

wiryadev opened this issue Jun 27, 2021 · 0 comments

Comments

@wiryadev
Copy link
Contributor

Issue

  • I try to convert bootstrap icons svg to compose. For the Fill icons it works, but for the normal icon it gives me exception. I have not checked which icon exactly that will cause the issue. But i have tried to use Svg2Vector to check if any of this svg will cause any error in the process.
  • Then i try to use the drawable and change the type to VectorType.DRAWABLE, but it still shows the same error.
  • Any suggestion to trace which icon that may cause the issue?

Logcat

Exception in thread "main" java.io.EOFException: input contained no data
	at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
	at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
	at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
	at androidx.compose.material.icons.generator.IconParserKt.seekToStartTag(IconParser.kt:136)
	at androidx.compose.material.icons.generator.IconParserKt.access$seekToStartTag(IconParser.kt:1)
	at androidx.compose.material.icons.generator.IconParser.parse(IconParser.kt:40)
	at androidx.compose.material.icons.generator.IconWriter.generateTo(IconWriter.kt:58)
	at br.com.devsrsouza.svg2compose.Svg2Compose$parse$3.invoke(Svg2Compose.kt:92)
	at br.com.devsrsouza.svg2compose.Svg2Compose$parse$3.invoke(Svg2Compose.kt:13)
	at kotlin.io.FileTreeWalk$FileTreeWalkIterator$TopDownDirectoryState.step(FileTreeWalk.kt:168)
	at kotlin.io.FileTreeWalk$FileTreeWalkIterator.gotoNext(FileTreeWalk.kt:98)
	at kotlin.io.FileTreeWalk$FileTreeWalkIterator.computeNext(FileTreeWalk.kt:80)
	at kotlin.collections.AbstractIterator.tryToComputeNext(AbstractIterator.kt:42)
	at kotlin.collections.AbstractIterator.hasNext(AbstractIterator.kt:29)
	at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:742)
	at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:772)
	at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:763)
	at br.com.devsrsouza.svg2compose.Svg2Compose.parse(Svg2Compose.kt:138)
	at br.com.devsrsouza.svg2compose.Svg2Compose.parse$default(Svg2Compose.kt:30)
	at br.com.devsrsouza.svg2compose.MainKt.main(Main.kt:9)
	at br.com.devsrsouza.svg2compose.MainKt.main(Main.kt)

Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant