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

Crash on some article #80

Open
dbof10 opened this issue Jul 4, 2020 · 1 comment
Open

Crash on some article #80

dbof10 opened this issue Jul 4, 2020 · 1 comment

Comments

@dbof10
Copy link

dbof10 commented Jul 4, 2020

On some article, it crashes
I'm using environment below

flare_flutter: ^2.0.4
nima: ^1.0.5

The getter 'dirtMask' was called on null.
I/flutter ( 3789): Receiver: null
I/flutter ( 3789): Tried calling: dirtMask


The relevant error-causing widget was:
I/flutter ( 3789):   Container file://**/lib/article/article_widget.dart:165:40
I/flutter ( 3789): 
I/flutter ( 3789): When the exception was thrown, this was the stack:
I/flutter ( 3789): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
I/flutter ( 3789): #1      ActorArtboard.advance (package:flare_dart/actor_artboard.dart:322:29)
I/flutter ( 3789): #2      VignetteRenderObject.updateActor (package:timeline/article/timeline_entry_widget.dart:111:21)
I/flutter ( 3789): #3      VignetteRenderObject.timelineEntry= (package:timeline/article/timeline_entry_widget.dart:140:5)
I/flutter ( 3789): #4      TimelineEntryWidget.createRenderObject (package:timeline/article/timeline_entry_widget.dart:40:9)
I/flutter ( 3789): #5      RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5366:28)

ActorArtboard

 ActorComponent component = _dependencyOrder[i];
          _dirtDepth = i;
          int d = component.dirtMask;
@Ajayvirmoti
Copy link

It may help.

The error says you're trying to use something called "dirtMask," but it's empty (null). To fix it:

  1. Check the code where you use "dirtMask" (in "article_widget.dart").
  2. Make sure it's created correctly and handle null safely (use ?.).
  3. Follow how data flows in your app to find where it becomes null.
  4. Use debugging tools to track the issue down.

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