- 
                Notifications
    
You must be signed in to change notification settings  - Fork 543
 
Closed
Description
Steps to Reproduce
When i select an image and press the line button , the error occured
The error occured at 'package:notus/src/document/line.dart' line 28
bool get hasEmbed {
if (childCount == 1) {
return children.single is EmbedNode;
}
assert (children.every((child) => child is TextNode));
return false;
}
The error is failed assertion
Logs
I/flutter (21219): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (21219): The following NoSuchMethodError was thrown building RawZefyrLine(dirty, dependencies: [ZefyrTheme,
I/flutter (21219): ZefyrScopeAccess], state: _RawZefyrLineState#35002):
I/flutter (21219): The getter 'type' was called on null.
I/flutter (21219): Receiver: null
I/flutter (21219): Tried calling: type
I/flutter (21219): When the exception was thrown, this was the stack:
I/flutter (21219): #0      Object.noSuchMethod  (dart:core-patch/object_patch.dart:50:5)
I/flutter (21219): #1      _RawZefyrLineState.buildEmbed 
I/flutter (21219): #2      _RawZefyrLineState.build 
I/flutter (21219): #3      StatefulElement.build 
I/flutter (21219): #4      ComponentElement.performRebuild 
I/flutter (21219): #5      Element.rebuild 
I/flutter (21219): #6      ComponentElement._firstBuild 
I/flutter (21219): #7      StatefulElement._firstBuild 
I/flutter (21219): #8      ComponentElement.mount 
I/flutter (21219): #9      Element.inflateWidget 
I/flutter (21219): #10     MultiChildRenderObjectElement.mount 
I/flutter (21219): #11     Element.inflateWidget 
I/flutter (21219): #12     Element.updateChild 
I/flutter (21219): #13     SingleChildRenderObjectElement.mount 
I/flutter (21219): #14     Element.inflateWidget 
I/flutter (21219): #15     Element.updateChild 
I/flutter (21219): #16     SingleChildRenderObjectElement.mount 
I/flutter (21219): #17     Element.inflateWidget 
I/flutter (21219): #18     Element.updateChild 
I/flutter (21219): #19     ComponentElement.performRebuild 
I/flutter (21219): #20     Element.rebuild 
I/flutter (21219): #21     ComponentElement._firstBuild 
I/flutter (21219): #22     ComponentElement.mount 
I/flutter (21219): #23     Element.inflateWidget 
I/flutter (21219): #24     Element.updateChild 
I/flutter (21219): #25     SingleChildRenderObjectElement.mount 
I/flutter (21219): #26     Element.inflateWidget 
I/flutter (21219): #27     Element.updateChild 
I/flutter (21219): #28     ComponentElement.performRebuild 
I/flutter (21219): #29     Element.rebuild 
I/flutter (21219): #30     ComponentElement._firstBuild 
I/flutter (21219): #31     ComponentElement.mount 
I/flutter (21219): #32     Element.inflateWidget 
I/flutter (21219): #33     MultiChildRenderObjectElement.mount 
I/flutter (21219): #34     Element.inflateWidget 
I/flutter (21219): #35     Element.updateChild 
I/flutter (21219): #36     ComponentElement.performRebuild 
I/flutter (21219): #37     Element.rebuild 
I/flutter (21219): #38     ComponentElement._firstBuild 
I/flutter (21219): #39     ComponentElement.mount 
I/flutter (21219): #40     Element.inflateWidget 
I/flutter (21219): #41     Element.updateChild 
I/flutter (21219): #42     ComponentElement.performRebuild 
I/flutter (21219): #43     Element.rebuild 
I/flutter (21219): #44     ComponentElement._firstBuild 
I/flutter (21219): #45     ComponentElement.mount 
I/flutter (21219): #46     Element.inflateWidget 
I/flutter (21219): #47     Element.updateChild 
I/flutter (21219): #48     ComponentElement.performRebuild 
I/flutter (21219): #49     Element.rebuild 
I/flutter (21219): #50     ComponentElement._firstBuild 
I/flutter (21219): #51     StatefulElement._firstBuild 
I/flutter (21219): #52     ComponentElement.mount 
I/flutter (21219): #53     Element.inflateWidget 
I/flutter (21219): #54     Element.updateChild 
I/flutter (21219): #55     SingleChildRenderObjectElement.mount 
I/flutter (21219): #56     Element.inflateWidget 
I/flutter (21219): #57     Element.updateChild 
I/flutter (21219): #58     SingleChildRenderObjectElement.mount 
I/flutter (21219): #59     Element.inflateWidget 
I/flutter (21219): #60     Element.updateChild 
I/flutter (21219): #61     SingleChildRenderObjectElement.mount 
I/flutter (21219): #62     Element.inflateWidget 
I/flutter (21219): #63     Element.updateChild 
I/flutter (21219): #64     ComponentElement.performRebuild 
I/flutter (21219): #65     Element.rebuild 
I/flutter (21219): #66     ComponentElement._firstBuild 
I/flutter (21219): #67     ComponentElement.mount 
I/flutter (21219): #68     Element.inflateWidget 
I/flutter (21219): #69     Element.updateChild 
I/flutter (21219): #70     ComponentElement.performRebuild 
I/flutter (21219): #71     Element.rebuild 
I/flutter (21219): #72     ComponentElement._firstBuild 
I/flutter (21219): #73     ComponentElement.mount 
I/flutter (21219): #74     ParentDataElement.mount 
I/flutter (21219): #75     Element.inflateWidget 
I/flutter (21219): #76     Element.updateChild 
I/flutter (21219): #77     ComponentElement.performRebuild 
I/flutter (21219): #78     Element.rebuild 
I/flutter (21219): #79     ComponentElement._firstBuild 
I/flutter (21219): #80     StatefulElement._firstBuild 
I/flutter (21219): #81     ComponentElement.mount 
I/flutter (21219): #82     Element.inflateWidget 
I/flutter (21219): #83     Element.updateChild 
I/flutter (21219): #84     SliverMultiBoxAdaptorElement.updateChild 
I/flutter (21219): #85     SliverMultiBoxAdaptorElement.createChild.<anonymous closure> 
I/flutter (21219): #86     BuildOwner.buildScope 
I/flutter (21219): #87     SliverMultiBoxAdaptorElement.createChild 
I/flutter (21219): #88     RenderSliverMultiBoxAdaptor._createOrObtainChild.<anonymous closure> 
I/flutter (21219): #89     RenderObject.invokeLayoutCallback.<anonymous closure> 
I/flutter (21219): #90     PipelineOwner._enableMutationsToDirtySubtrees 
I/flutter (21219): #91     RenderObject.invokeLayoutCallback 
I/flutter (21219): #92     RenderSliverMultiBoxAdaptor._createOrObtainChild 
I/flutter (21219): #93     RenderSliverMultiBoxAdaptor.insertAndLayoutChild 
I/flutter (21219): #94     RenderSliverList.performLayout.advance 
I/flutter (21219): #95     RenderSliverList.performLayout 
I/flutter (21219): #96     RenderObject.layout 
I/flutter (21219): #97     RenderSliverPadding.performLayout 
I/flutter (21219): #98     RenderObject.layout 
I/flutter (21219): #99     RenderViewportBase.layoutChildSequence 
I/flutter (21219): #100    RenderViewport._attemptLayout 
I/flutter (21219): #101    RenderViewport.performLayout 
I/flutter (21219): #102    RenderObject.layout 
I/flutter (21219): #103    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #104    RenderObject.layout 
I/flutter (21219): #105    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #106    RenderObject.layout 
I/flutter (21219): #107    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #108    RenderObject.layout 
I/flutter (21219): #109    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #110    RenderObject.layout 
I/flutter (21219): #111    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #112    RenderObject.layout 
I/flutter (21219): #113    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #114    RenderObject.layout 
I/flutter (21219): #115    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #116    RenderObject.layout 
I/flutter (21219): #117    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #118    RenderObject.layout 
I/flutter (21219): #119    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #120    RenderObject.layout 
I/flutter (21219): #121    MultiChildLayoutDelegate.layoutChild 
I/flutter (21219): #122    _ScaffoldLayout.performLayout 
I/flutter (21219): #123    MultiChildLayoutDelegate._callPerformLayout 
I/flutter (21219): #124    RenderCustomMultiChildLayoutBox.performLayout 
I/flutter (21219): #125    RenderObject.layout 
I/flutter (21219): #126    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #127    RenderObject.layout 
I/flutter (21219): #128    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #129    _RenderCustomClip.performLayout 
I/flutter (21219): #130    RenderObject.layout 
I/flutter (21219): #131    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #132    RenderObject.layout 
I/flutter (21219): #133    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #134    RenderObject.layout 
I/flutter (21219): #135    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #136    RenderObject.layout 
I/flutter (21219): #137    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #138    RenderObject.layout 
I/flutter (21219): #139    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #140    RenderObject.layout 
I/flutter (21219): #141    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #142    RenderObject.layout 
I/flutter (21219): #143    _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout 
I/flutter (21219): #144    RenderObject.layout 
I/flutter (21219): #145    RenderOffstage.performLayout 
I/flutter (21219): #146    RenderObject.layout 
I/flutter (21219): #147    RenderStack.performLayout 
I/flutter (21219): #148    RenderObject._layoutWithoutResize 
I/flutter (21219): #149    PipelineOwner.flushLayout 
I/flutter (21219): #150    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding.drawFrame 
I/flutter (21219): #151    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame 
I/flutter (21219): #152    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback 
I/flutter (21219): #153    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback 
I/flutter (21219): #154    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame 
I/flutter (21219): #155    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame 
I/flutter (21219): #159    _invoke  (dart:ui/hooks.dart:219:10)
I/flutter (21219): #160    _drawFrame  (dart:ui/hooks.dart:178:3)
I/flutter (21219): (elided 3 frames from package dart:async)
I/flutter (21219): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
W/IInputConnectionWrapper(21219): showStatusIcon on inactive InputConnection
V/Activity(21219): calling onResume for activity: com.example.firebase_articles
V/Activity(21219): microarray app lock. pck=com.example.firebase_articles cls=com.example.firebase_articles.MainActivity
V/Activity(21219): microarray app lock. send BC
I/flutter (21219): new path: /data/data/com.example.firebase_articles/cache/img_8438.jpg
I/flutter (21219): EVENT StorageTaskEventType.progress
I/flutter (21219): EVENT StorageTaskEventType.progress
I/flutter (21219): EVENT StorageTaskEventType.progress
I/flutter (21219): EVENT StorageTaskEventType.success
I/flutter (21219): Another exception was thrown: 'package:notus/src/heuristics/format_rules.dart': Failed assertion: line 167 pos 14: '!embed.isUnset': is not true.
W/IInputConnectionWrapper(21219): showStatusIcon on inactive InputConnection
V/Activity(21219): calling onResume for activity: com.example.firebase_articles
V/Activity(21219): microarray app lock. pck=com.example.firebase_articles cls=com.example.firebase_articles.MainActivity
V/Activity(21219): microarray app lock. send BC
W/IInputConnectionWrapper(21219): showStatusIcon on inactive InputConnection
V/Activity(21219): calling onResume for activity: com.example.firebase_articles
V/Activity(21219): microarray app lock. pck=com.example.firebase_articles cls=com.example.firebase_articles.MainActivity
V/Activity(21219): microarray app lock. send BC
I/flutter (21219): new path: /data/data/com.example.firebase_articles/cache/img_5982.jpg
I/flutter (21219): EVENT StorageTaskEventType.progress
I/flutter (21219): EVENT StorageTaskEventType.progress
I/flutter (21219): EVENT StorageTaskEventType.progress
I/flutter (21219): EVENT StorageTaskEventType.success
W/IInputConnectionWrapper(21219): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(21219): endBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(21219): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(21219): endBatchEdit on inactive InputConnection
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
I/flutter (21219): Another exception was thrown: NoSuchMethodError: The getter 'type' was called on null.
Metadata
Metadata
Assignees
Labels
No labels