Skip to content

Parse exception #1112

Description

@higaski

The following .svg file throws during parsing using the latest 2.0.14

tams_optimized

<?xml version="1.0" encoding="UTF-8"?>
<svg width="1360.6" height="453.55" version="1.1" viewBox="0 0 1360.6 453.55" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1.3333 0 0 -1.3333 0 453.55)"><g transform="scale(.1)"><g transform="scale(10)"><text transform="matrix(1 0 0 -1 26.512 54.001)" fill="#deddde" font-family="Tahoma" font-size="334px"><tspan x="0 111.55174 286.89502 567.44421" y="0">tams</tspan></text>
</g><path d="m1632.7 1058.1h278v198.58h-278z" fill="#deddde" fill-rule="evenodd"/><g transform="scale(10)" font-family="Tahoma" font-size="130px"><text transform="matrix(1 0 0 -1 90.205 99.157)" fill="#231f20"><tspan x="0" y="0">t</tspan></text>
<text transform="matrix(1 0 0 -1 133.69 99.157)" fill="#ed1c24"><tspan x="0" y="0">a</tspan></text>
<text transform="matrix(1 0 0 -1 201.92 99.157)" fill="#231f20"><tspan x="0 109.19582" y="0">ms</tspan></text>
<text transform="matrix(1 0 0 -1 429.45 99.157)" fill="#231f20"><tspan x="0 68.377312 98.146194 166.5235 231.26102 274.67932 320.84268 391.42996 463.96713 493.73593" y="0">elektronik</tspan></text>
</g><g fill="#ed1c24" fill-rule="evenodd"><path d="m7736.6 504.27h291.98v296.12h-291.98z"/><path d="m8678.4 504.27h291.97v296.12h-291.97z"/><path d="m9620.1 504.27h291.97v296.12h-291.97z"/></g></g></g></svg>

Not really sure why though? Not a lot in it?

Callstack

_SyncStarIterator.moveNext (/opt/flutter/bin/cache/pkg/sky_engine/lib/_internal/vm/lib/async_patch.dart:575)
SvgParser._parseTree (/home/vinci/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.15/lib/src/svg/parser.dart:770)
SvgParser.parse (/home/vinci/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.15/lib/src/svg/parser.dart:805)
parse (/home/vinci/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.15/lib/vector_graphics_compiler.dart:76)
encodeSvg (/home/vinci/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.15/lib/vector_graphics_compiler.dart:143)
SvgLoader._load.<anonymous closure>.<anonymous closure> (/home/vinci/.pub-cache/hosted/pub.dev/flutter_svg-2.0.14/lib/src/loaders.dart:156)
_testCompute (/home/vinci/.pub-cache/hosted/pub.dev/flutter_svg-2.0.14/lib/src/utilities/compute.dart:12)
SvgLoader._load.<anonymous closure> (/home/vinci/.pub-cache/hosted/pub.dev/flutter_svg-2.0.14/lib/src/loaders.dart:154)
<asynchronous gap> (Unknown Source:0)
_VectorGraphicWidgetState._loadPicture.<anonymous closure> (/home/vinci/.pub-cache/hosted/pub.dev/vector_graphics-1.1.14/lib/src/vector_graphics.dart:354)
<asynchronous gap> (Unknown Source:0)
_VectorGraphicWidgetState._loadPicture.<anonymous closure> (/home/vinci/.pub-cache/hosted/pub.dev/vector_graphics-1.1.14/lib/src/vector_graphics.dart:368)
<asynchronous gap> (Unknown Source:0)
_VectorGraphicWidgetState._loadAssetBytes.<anonymous closure> (/home/vinci/.pub-cache/hosted/pub.dev/vector_graphics-1.1.14/lib/src/vector_graphics.dart:401)
<asynchronous gap> (Unknown Source:0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions