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

Failed to find definition for url(#pattern0). Error thrown Instance of 'ErrorDescription'. #1093

Open
abhijit-hl opened this issue Aug 5, 2024 · 1 comment

Comments

@abhijit-hl
Copy link

I am using flutter_svg version 1.1.5. I am getting below mentioned error very frequently in production App in firebase crashlytics. It is giving this error while executing code like this SvgPicture.asset('assets/images/icons/green_tick.svg'). This type of code wriiten in multiple place for rendering svg from assets file. I am not able pinpoint from which code exactly I am getting this error.
Stack Trace for this error mentioned below:
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError
Failed to find definition for url(#paint2_linear_3_22693). Error thrown Instance of 'ErrorDescription'.
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Failed to find definition for url(#paint2_linear_3_22693). Error thrown Instance of 'ErrorDescription'.
at FirebaseCrashlytics.recordError(firebase_crashlytics.dart:119)
at FirebaseCrashlytics.recordFlutterError(firebase_crashlytics.dart:145)
at .reportMissingDef(errors.dart:5)
at SvgParserState._getDefinitionPaint(parser_state.dart:1296)
at SvgParserState.parseFill(parser_state.dart:1410)
at SvgParserState.parseStyle(parser_state.dart:1625)
at SvgParserState.addShape(parser_state.dart:955)
at SvgParserState.startElement(parser_state.dart:985)
at SvgParserState.parse(parser_state.dart:881)
at SvgParser.parse(parser.dart:27)
at Svg.fromSvgString(svg.dart:139)
at Svg.svgPictureStringDecoder(svg.dart:90)
.reportMissingDef

@suraj-bhavsar-refyne
Copy link

@abhijit-hl You can update to the latest version of flutter_svg package, this problem was already fixed in version v2.0.0.

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

2 participants