Skip to content

[vector_graphics] image elements within .svg files cause run time crash #158872

@stuartmorgan-g

Description

@stuartmorgan-g

Imported from dnfield/vector_graphics#256

Original report by @ChristianEdwardPadilla on Sep 19, 2024

An image element within an SVG file parsed with this package was observed to cause crashes at run time with the following stack trace:

_TypeError: Flutter framework
  at FlutterVectorGraphicsListener.onDrawImage	(listener.dart: 773)
  at VectorGraphicsCodec.decode	(vector_graphics_codec.dart: 218)
  at decodeVectorGraphics.process.<anonymous closure>	(listener.dart: 99)
  at <asynchronous gap>	(async)
  at VectorGraphicWidgetState._loadPicture.<anonymous closure> (#2)	(vector_graphics.dart: 369)
  at <asynchronous gap>	(async)
  at VectorGraphicWidgetState._loadAssetBytes.<anonymous closure>	(vector_graphics.dart: 402)
  at <asynchronous gap>	(async)

(internal tracking issue b/368358823)

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: vector_graphicsThe vector_graphics package setpackageflutter/packages repository. See also p: labels.team-engineOwned by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions