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

custom-element自定义html标签混合开发报错异常问题 #1369

Closed
zelllez opened this issue Apr 29, 2022 · 3 comments · Fixed by #1375
Closed

custom-element自定义html标签混合开发报错异常问题 #1369

zelllez opened this issue Apr 29, 2022 · 3 comments · Fixed by #1375
Assignees
Labels
bug Something isn't working

Comments

@zelllez
Copy link

zelllez commented Apr 29, 2022

使用的 Kraken 版本 | What version of kraken are you using

0.10.x

重现步骤 | Steps To Reproduce

按照集成测试的例子跑一个custom-element例子,启动报错。

重现代码 | Code example:

name: myflutter01
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  get: ^4.6.1
  cached_network_image: ^3.0.0
  flutter_screenutil: ^5.0.1
  dio: ^4.0.4


  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  pigment: ^1.0.4
  kraken: ^0.10.4
  waterfall_flow: ^3.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages
import 'package:flutter/material.dart';
import 'package:kraken/kraken.dart';
import 'package:waterfall_flow/waterfall_flow.dart';

void main() {
  Kraken.defineCustomElement('waterfall-flow', (BindingContext? context) {
    return WaterfallFlowWidgetElement(context);
  });
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  final bundleContent = '''
 const flutterContainer = document.createElement('waterfall-flow');
    flutterContainer.style.height = '100vh';
    flutterContainer.style.display = 'block';
    const colors = ['red', 'yellow', 'black', 'blue', 'green'];
    for (let i = 0; i < 10; i++) {
      const div = document.createElement('div');
      div.style.width = '100%';
      div.style.border = `1px solid \${colors[i % colors.length]}`;
      div.appendChild(document.createTextNode(`\${i}`));

      const img = document.createElement('img');
      img.src = 'https://gw.alicdn.com/tfs/TB1CxCYq5_1gK0jSZFqXXcpaXXa-128-90.png';
      div.appendChild(img);
      img.style.width = '100px';

      flutterContainer.appendChild(div);
    }
    document.body.appendChild(flutterContainer);
  ''';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Kraken(
          bundle: KrakenBundle.fromContent(bundleContent),
        ),
      ),
    );
  }
}

class WaterfallFlowWidgetElement extends WidgetElement {
  WaterfallFlowWidgetElement(BindingContext? context) : super(context);

  List<Widget> _children = [];

  Widget _func(BuildContext context, int index) {
    return _children[index];
  }

  @override
  Widget build(BuildContext context, Map<String, dynamic> properties, List<Widget> children) {
    _children = children;

    return WaterfallFlow.builder(
      itemBuilder: _func,
      padding: EdgeInsets.all(5.0),
      gridDelegate: SliverWaterfallFlowDelegateWithFixedCrossAxisCount(
        crossAxisCount: 2,
        crossAxisSpacing: 5.0,
        mainAxisSpacing: 5.0,
        lastChildLayoutTypeBuilder: (index) =>
            index == children.length ? LastChildLayoutType.foot : LastChildLayoutType.none,
      ),
    );
  }
}

预期结果 | Expected results:
正常展示不报错

实际结果 | Actual results:
报错显示红框

@zelllez zelllez added the bug Something isn't working label Apr 29, 2022
@answershuto answershuto self-assigned this May 5, 2022
@zjt123
Copy link

zjt123 commented May 6, 2022

我也遇到类似问题,好像不止这个错误
I/.kraken_exampl(13956): ProcessProfilingInfo new_methods=512 is saved saved_to_disk=1 resolve_classes_delay=8000

======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
A RenderObject was disposed prior to its owning element being unmounted: RenderFlowLayout#79773 DISPOSED
'package:flutter/src/widgets/framework.dart':
Failed assertion: line 5813 pos 7: '!renderObject.debugDisposed!'

When the exception was thrown, this was the stack:
#2 RenderObjectElement.unmount (package:flutter/src/widgets/framework.dart:5813:7)
#3 KrakenElementToFlutterElementAdaptor.unmount (package:kraken/src/widget/element_to_widget_adaptor.dart:44:11)
#4 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1883:13)
#5 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1881:7)
#6 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
#7 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
#8 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1881:7)
#9 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
#10 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
#11 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1881:7)
#12 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
#13 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
#14 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1881:7)
#15 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
#16 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
#17 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1881:7)
#18 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
#19 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
#20 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1881:7)
#21 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
#22 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
#23 ListIterable.forEach (dart:_internal/iterable.dart:39:13)
#24 _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1892:25)
#25 BuildOwner.finalizeTree. (package:flutter/src/widgets/framework.dart:2879:27)
#26 BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2510:15)
#27 BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2878:7)
#28 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:19)
#29 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#30 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#31 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#32 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#36 _invoke (dart:ui/hooks.dart:166:10)
#37 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#38 _drawFrame (dart:ui/hooks.dart:129:31)
(elided 5 frames from class _AssertionError and dart:async)

I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true
I/flutter (13956): Kraken DevTool listening at ws://10.80.144.139:9222
I/flutter (13956): Open Chrome/Edge and enter following url to your navigator:
I/flutter (13956): devtools://devtools/bundled/inspector.html?ws=10.80.144.139:9222
I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true
I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true
I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true
I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true

======== Exception caught by widgets library =======================================================
The following assertion was thrown building NotificationListener:
'package:flutter/src/foundation/node.dart': Failed assertion: line 128 pos 12: 'child._parent == null': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was:
WaterfallFlow WaterfallFlow:file:///D:/job/demo/flutter/kraken/kraken/example/lib/main.dart:196:26
When the exception was thrown, this was the stack:
#2 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:128:12)
#3 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1337:11)
#4 RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:3120:7)
#5 SingleChildRenderObjectElement.insertRenderObjectChild (package:flutter/src/widgets/framework.dart:6210:18)
#6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:5870:35)
#7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5544:5)
#8 KrakenElementToFlutterElementAdaptor.mount (package:kraken/src/widget/element_to_widget_adaptor.dart:32:11)
... Normal element mounting (33 frames)
#41 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#42 Element.updateChild (package:flutter/src/widgets/framework.dart:3425:18)
#43 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1242:37)
#44 SliverMultiBoxAdaptorElement.createChild. (package:flutter/src/widgets/sliver.dart:1227:20)
#45 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2573:19)
#46 SliverMultiBoxAdaptorElement.createChild (package:flutter/src/widgets/sliver.dart:1220:12)
#47 RenderSliverMultiBoxAdaptor._createOrObtainChild. (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:349:23)
#48 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:1968:59)
#49 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:916:15)
#50 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1968:14)
#51 RenderSliverMultiBoxAdaptor._createOrObtainChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:338:5)
#52 RenderSliverMultiBoxAdaptor.insertAndLayoutChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:484:5)
#53 RenderSliverWaterfallFlow.performLayout.advance (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:566:19)
#54 RenderSliverWaterfallFlow.performLayout (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:668:14)
#55 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#56 RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:12)
#57 RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:371:11)
#58 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#59 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:510:13)
#60 RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1580:12)
#61 RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1489:20)
#62 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1713:7)
#63 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:885:18)
#64 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:453:19)
#65 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:883:13)
#66 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#67 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#68 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#69 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#73 _invoke (dart:ui/hooks.dart:166:10)
#74 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#75 _drawFrame (dart:ui/hooks.dart:129:31)
(elided 5 frames from class _AssertionError and dart:async)

======== Exception caught by widgets library =======================================================
The following assertion was thrown building KeepAlive(keepAlive: false):
'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 258 pos 16: 'child == null || indexOf(child) > index': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was:
WaterfallFlow WaterfallFlow:file:///D:/job/demo/flutter/kraken/kraken/example/lib/main.dart:196:26
When the exception was thrown, this was the stack:
#2 RenderSliverMultiBoxAdaptor._debugVerifyChildOrder (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:258:16)
#3 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:269:12)
#4 SliverMultiBoxAdaptorElement.insertRenderObjectChild (package:flutter/src/widgets/sliver.dart:1415:18)
#5 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:5870:35)
#6 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5544:5)
... Normal element mounting (27 frames)
#33 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#34 Element.updateChild (package:flutter/src/widgets/framework.dart:3425:18)
#35 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1242:37)
#36 SliverMultiBoxAdaptorElement.createChild. (package:flutter/src/widgets/sliver.dart:1227:20)
#37 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2573:19)
#38 SliverMultiBoxAdaptorElement.createChild (package:flutter/src/widgets/sliver.dart:1220:12)
#39 RenderSliverMultiBoxAdaptor._createOrObtainChild. (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:349:23)
#40 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:1968:59)
#41 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:916:15)
#42 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1968:14)
#43 RenderSliverMultiBoxAdaptor._createOrObtainChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:338:5)
#44 RenderSliverMultiBoxAdaptor.insertAndLayoutChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:484:5)
#45 RenderSliverWaterfallFlow.performLayout.advance (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:566:19)
#46 RenderSliverWaterfallFlow.performLayout (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:668:14)
#47 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#48 RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:12)
#49 RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:371:11)
#50 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#51 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:510:13)
#52 RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1580:12)
#53 RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1489:20)
#54 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1713:7)
#55 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:885:18)
#56 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:453:19)
#57 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:883:13)
#58 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#59 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#60 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#61 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#65 _invoke (dart:ui/hooks.dart:166:10)
#66 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#67 _drawFrame (dart:ui/hooks.dart:129:31)
(elided 5 frames from class _AssertionError and dart:async)

E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):

======== Exception caught by widgets library =======================================================
The following assertion was thrown building AutomaticKeepAlive(state: _AutomaticKeepAliveState#e6aa3(handles: no notifications ever received)):
'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 258 pos 16: 'child == null || indexOf(child) > index': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was:
WaterfallFlow WaterfallFlow:file:///D:/job/demo/flutter/kraken/kraken/example/lib/main.dart:196:26
When the exception was thrown, this was the stack:
#2 RenderSliverMultiBoxAdaptor._debugVerifyChildOrder (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:258:16)
#3 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:269:12)
#4 SliverMultiBoxAdaptorElement.insertRenderObjectChild (package:flutter/src/widgets/sliver.dart:1415:18)
#5 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:5870:35)
#6 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5544:5)
... Normal element mounting (21 frames)
#27 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#28 Element.updateChild (package:flutter/src/widgets/framework.dart:3425:18)
#29 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1242:37)
#30 SliverMultiBoxAdaptorElement.createChild. (package:flutter/src/widgets/sliver.dart:1227:20)
#31 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2573:19)
#32 SliverMultiBoxAdaptorElement.createChild (package:flutter/src/widgets/sliver.dart:1220:12)
#33 RenderSliverMultiBoxAdaptor._createOrObtainChild. (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:349:23)
#34 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:1968:59)
#35 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:916:15)
#36 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1968:14)
#37 RenderSliverMultiBoxAdaptor._createOrObtainChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:338:5)
#38 RenderSliverMultiBoxAdaptor.insertAndLayoutChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:484:5)
#39 RenderSliverWaterfallFlow.performLayout.advance (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:566:19)
#40 RenderSliverWaterfallFlow.performLayout (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:668:14)
#41 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#42 RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:12)
#43 RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:371:11)
#44 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#45 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:510:13)
#46 RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1580:12)
#47 RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1489:20)
#48 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1713:7)
#49 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:885:18)
#50 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:453:19)
#51 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:883:13)
#52 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#53 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#54 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#55 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#59 _invoke (dart:ui/hooks.dart:166:10)
#60 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#61 _drawFrame (dart:ui/hooks.dart:129:31)
(elided 5 frames from class _AssertionError and dart:async)

E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):

======== Exception caught by widgets library =======================================================
The following assertion was thrown building KeyedSubtree-[Key <[<'10'>]>]:
'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 258 pos 16: 'child == null || indexOf(child) > index': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was:
WaterfallFlow WaterfallFlow:file:///D:/job/demo/flutter/kraken/kraken/example/lib/main.dart:196:26
When the exception was thrown, this was the stack:
#2 RenderSliverMultiBoxAdaptor._debugVerifyChildOrder (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:258:16)
#3 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:269:12)
#4 SliverMultiBoxAdaptorElement.insertRenderObjectChild (package:flutter/src/widgets/sliver.dart:1415:18)
#5 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:5870:35)
#6 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5544:5)
... Normal element mounting (15 frames)
#21 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#22 Element.updateChild (package:flutter/src/widgets/framework.dart:3425:18)
#23 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1242:37)
#24 SliverMultiBoxAdaptorElement.createChild. (package:flutter/src/widgets/sliver.dart:1227:20)
#25 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2573:19)
#26 SliverMultiBoxAdaptorElement.createChild (package:flutter/src/widgets/sliver.dart:1220:12)
#27 RenderSliverMultiBoxAdaptor._createOrObtainChild. (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:349:23)
#28 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:1968:59)
#29 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:916:15)
#30 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1968:14)
#31 RenderSliverMultiBoxAdaptor._createOrObtainChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:338:5)
#32 RenderSliverMultiBoxAdaptor.insertAndLayoutChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:484:5)
#33 RenderSliverWaterfallFlow.performLayout.advance (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:566:19)
#34 RenderSliverWaterfallFlow.performLayout (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:668:14)
#35 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#36 RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:12)
#37 RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:371:11)
#38 RenderObject.layout (package:flutter/src/rendering/object.dart:1858:7)
#39 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:510:13)
#40 RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1580:12)
#41 RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1489:20)
#42 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1713:7)
#43 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:885:18)
#44 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:453:19)
#45 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:883:13)
#46 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#47 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#48 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#49 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#53 _invoke (dart:ui/hooks.dart:166:10)
#54 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#55 _drawFrame (dart:ui/hooks.dart:129:31)
(elided 5 frames from class _AssertionError and dart:async)

======== Exception caught by scheduler library =====================================================
The following LateError was thrown during a scheduler callback:
LateInitializationError: Field 'crossAxisOffset' has not been initialized.

When the exception was thrown, this was the stack:
#0 SliverWaterfallFlowParentData.crossAxisOffset (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart)
#1 SliverWaterfallFlowParentData.toString (package:waterfall_flow/src/rendering/sliver_waterfall_flow.dart:279:56)
#2 DiagnosticsProperty.valueToString (package:flutter/src/foundation/diagnostics.dart:2741:60)
#3 DiagnosticsProperty.toDescription (package:flutter/src/foundation/diagnostics.dart:2755:21)
#4 DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1569:24)
#5 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1608:6)
#6 DiagnosticsProperty.toJsonMap (package:flutter/src/foundation/diagnostics.dart:2695:45)
#7 DiagnosticsNode.toJsonList. (package:flutter/src/foundation/diagnostics.dart:1632:19)
#8 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#9 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#10 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#11 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#12 new List.of (dart:core-patch/array_patch.dart:50:28)
#13 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#14 DiagnosticsNode.toJsonList (package:flutter/src/foundation/diagnostics.dart:1633:8)
#15 DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1595:25)
#16 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1608:6)
#17 DiagnosticsNode.toJsonList. (package:flutter/src/foundation/diagnostics.dart:1632:19)
#18 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#19 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#20 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#21 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#22 new List.of (dart:core-patch/array_patch.dart:50:28)
#23 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#24 DiagnosticsNode.toJsonList (package:flutter/src/foundation/diagnostics.dart:1633:8)
#25 DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1601:23)
#26 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1608:6)
#27 DiagnosticsNode.toJsonList. (package:flutter/src/foundation/diagnostics.dart:1632:19)
#28 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#29 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#30 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#31 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#32 new List.of (dart:core-patch/array_patch.dart:50:28)
#33 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#34 DiagnosticsNode.toJsonList (package:flutter/src/foundation/diagnostics.dart:1633:8)
#35 DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1601:23)
#36 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1608:6)
#37 DiagnosticsNode.toJsonList. (package:flutter/src/foundation/diagnostics.dart:1632:19)
#38 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#39 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#40 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#41 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#42 new List.of (dart:core-patch/array_patch.dart:50:28)
#43 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#44 DiagnosticsNode.toJsonList (package:flutter/src/foundation/diagnostics.dart:1633:8)
#45 DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1601:23)
#46 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1608:6)
#47 DiagnosticsNode.toJsonList. (package:flutter/src/foundation/diagnostics.dart:1632:19)
#48 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#49 ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#50 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#51 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#52 new List.of (dart:core-patch/array_patch.dart:50:28)
#53 ListIterable.toList (dart:_internal/iterable.dart:213:44)
#54 DiagnosticsNode.toJsonList (package:flutter/src/foundation/diagnostics.dart:1633:8)
#55 DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1595:25)
#56 DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1608:6)
#57 WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1518:18)
#58 WidgetInspectorService._reportError (package:flutter/src/widgets/widget_inspector.dart:924:44)
#59 FlutterError.reportError (package:flutter/src/foundation/assertions.dart:1131:14)
#60 RenderObject._debugReportException (package:flutter/src/rendering/object.dart:1373:18)
#61 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1716:7)
#62 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:885:18)
#63 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:453:19)
#64 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:883:13)
#65 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#66 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#67 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#68 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#72 _invoke (dart:ui/hooks.dart:166:10)
#73 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#74 _drawFrame (dart:ui/hooks.dart:129:31)
(elided 3 frames from dart:async)

E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):
E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):
E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):
E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):
E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):
E/flutter (13956): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1937 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
E/flutter (13956): (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
E/flutter (13956): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (13956): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (13956): #2 RenderBox.size. (package:flutter/src/rendering/box.dart:1937:13)
E/flutter (13956): #3 RenderBox.size (package:flutter/src/rendering/box.dart:1950:6)
E/flutter (13956): #4 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:177:9)
E/flutter (13956): #5 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #6 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:535:18)
E/flutter (13956): #7 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #8 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #12 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #13 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #14 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:131:19)
E/flutter (13956): #15 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2413:11)
E/flutter (13956): #16 RenderView.hitTest (package:flutter/src/rendering/view.dart:185:14)
E/flutter (13956): #17 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:483:16)
E/flutter (13956): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:346:7)
E/flutter (13956): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (13956): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (13956): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (13956): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter (13956): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (13956): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter (13956): #25 _invoke1 (dart:ui/hooks.dart:185:10)
E/flutter (13956): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter (13956): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:98:31)
E/flutter (13956):
I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true
I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true
I/flutter (12812): delayed 7s: alive=true
I/flutter (12812): rev ping msg=HeartBeatMsg, alive=true

@answershuto
Copy link
Member

释放操作有一些生命周期桥接的问题,导致多次调用 dispose 等问题,具体见 pr。#1375

@zjt123
Copy link

zjt123 commented May 12, 2022

释放操作有一些生命周期桥接的问题,导致多次调用 dispose 等问题,具体见 pr。#1375

请问下 什么时候发个新版本?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants