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

[widget_test] pumpWidget on Chip with EdgeInsets.symmetric causes _RenderChip violation of intrinsic protocol contract exception #49478

Closed
kurakurakuda opened this issue Jan 25, 2020 · 9 comments · Fixed by #69812
Assignees
Labels
a: tests "flutter test", flutter_test, or one of our tests c: crash Stack traces logged to the console f: material design flutter/packages/flutter/material repository. found in release: 1.22 Found to occur in 1.22 framework flutter/packages/flutter repository. See also f: labels. has reproducible steps The issue has been confirmed reproducible and is ready to work on

Comments

@kurakurakuda
Copy link

kurakurakuda commented Jan 25, 2020

Hi, all.

I am creating widget test refer to https://flutter.dev/docs/testing .
When I test the page including chip widget, I encoutered this error.

When running the app, there is no error.
Could you help this ?
Error is below.

logs
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
The intrinsic dimension methods of the _RenderChip class returned values that violate the intrinsic
protocol contract.
The following failure was detected:
 * getMinIntrinsicWidth(Infinity) returned a larger value (90.0) than getMaxIntrinsicWidth(Infinity)
(86.0)
If you are not writing your own RenderBox subclass, then this is not
your fault. Contact support: https://github.com/flutter/flutter/issues/new?template=BUG.md

The relevant error-causing widget was:
  Chip

When the exception was thrown, this was the stack:
#0      RenderBox.debugAssertDoesMeetConstraints.<anonymous closure> (package:flutter/src/rendering/box.dart:2016:11)
#1      RenderBox.debugAssertDoesMeetConstraints (package:flutter/src/rendering/box.dart:2028:6)
#2      RenderBox.size=.<anonymous closure> (package:flutter/src/rendering/box.dart:1745:7)
#3      RenderBox.size= (package:flutter/src/rendering/box.dart:1747:6)
#4      _RenderChip.performLayout (package:flutter/src/material/chip.dart:2616:5)
#5      RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#6      RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
#7      RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#8      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#9      RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#10     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#11     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#12     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#13     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#14     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#15     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#16     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#17     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#18     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#19     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#20     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#21     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#22     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#23     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1232:11)
#24     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#25     RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:392:13)
#26     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#27     RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:259:13)
#28     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#29     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#30     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#31     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#32     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#33     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#34     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#35     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
#36     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#37     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:744:15)
#38     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#39     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:744:15)
#40     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#41     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#42     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#44     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#45     RenderSliverMultiBoxAdaptor.insertAndLayoutChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:492:13)
#46     RenderSliverList.performLayout.advance (package:flutter/src/rendering/sliver_list.dart:195:19)
#47     RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:238:19)
#48     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#49     RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:134:11)
#50     RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:373:11)
#51     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#52     RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:410:13)
#53     RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1367:12)
#54     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1285:20)
#55     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#56     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#57     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#58     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#59     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#60     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#61     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#62     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#63     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#64     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#65     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#66     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#67     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#68     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#69     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#70     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#71     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#72     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#73     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#74     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
#75     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#76     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:163:11)
#77     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:477:7)
#78     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:232:7)
#79     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:391:14)
#80     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#81     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#82     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#83     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#84     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1232:11)
#85     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#86     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#87     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#88     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#89     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#90     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#91     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#92     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#93     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#94     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#95     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#96     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#97     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#98     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#99     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#100    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#101    RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3168:13)
#102    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#103    RenderStack.performLayout (package:flutter/src/rendering/stack.dart:505:15)
#104    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#105    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#106    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#107    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#108    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#109    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#110    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#111    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#112    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#113    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#114    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#115    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#116    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#117    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
#118    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
#119    RenderView.performLayout (package:flutter/src/rendering/view.dart:167:13)
#120    RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1584:7)
#121    PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:844:18)
#122    AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:977:23)
#123    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5)
#124    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15)
#125    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1041:9)
#126    AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:872:9)
#129    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:41)
#130    AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:859:27)
#131    WidgetTester.pumpWidget.<anonymous closure> (package:flutter_test/src/widget_tester.dart:323:22)
#134    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:41)
#135    WidgetTester.pumpWidget (package:flutter_test/src/widget_tester.dart:320:27)
#136    TaskOperatePageTest.testTextFieldOfTitle.<anonymous closure> (file:///C:/Users/81909/AndroidStudioProjects/priority-setting-app/priority_setting_app/test/widget/page/task/task_operate_page_testcases.dart:30:20)
#138    TaskOperatePageTest.testTextFieldOfTitle.<anonymous closure> (file:///C:/Users/81909/AndroidStudioProjects/priority-setting-app/priority_setting_app/test/widget/page/task/task_operate_page_testcases.dart:14:9)
#139    testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:124:25)
#141    testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:122:9)
#142    TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:696:19)
#156    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1066:17)
#158    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1054:35)
@iapicca
Copy link
Contributor

iapicca commented Jan 27, 2020

Hi @kurakurakuda
can you please provide your flutter doctor -v ,
your flutter test --verbose
and a reproducible minimal code sample.
Thank you

@iapicca iapicca added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 27, 2020
@kurakurakuda
Copy link
Author

kurakurakuda commented Jan 27, 2020

Hi, @iapicca

Thank you for your response.
This is output in my local.

flutter doctor -v
[√] Flutter (Channel beta, v1.13.6, on Microsoft Windows [Version 10.0.18362.592], locale ja-JP)
    • Flutter version 1.13.6 at C:\Users\81909\flutter\flutter
    • Framework revision 659dc8129d (4 weeks ago), 2019-12-30 09:24:47 -0800
    • Engine revision bdc9708d23
    • Dart version 2.8.0 (build 2.8.0-dev.0.0 c547f5d933)


[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\81909\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.41.1)
    • VS Code at C:\Users\81909\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.7.0

[√] VS Code, 64-bit edition (version 1.28.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.7.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.  
flutter test --verbose
[  +61 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 659dc8129d4edb9166e9a0d600439d135740933f
[        ] executing: [C:\Users\81909\flutter\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +140 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +2 ms] v1.13.6-0-g659dc8129d
[   +6 ms] executing: [C:\Users\81909\flutter\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +44 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/beta
[   +7 ms] executing: [C:\Users\81909\flutter\flutter\] git ls-remote --get-url origin
[  +42 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[  +75 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +6 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +66 ms] switching to directory LocalDirectory: 'test' to run tests
[   +2 ms] running test package with arguments: [-r, compact, --concurrency=6, --test-randomize-ordering-seed=0, --,
C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app\test\widget_test.dart]
00:00 +0: loading C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app\test\widget_test.dart                                                     [ +120 ms] test 0: starting test C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app\test\widget_test.dart
[  +17 ms] test 0: starting shell process
[  +11 ms] Stopping scan for flutter_test_config.dart; found project root at C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app
[   +6 ms] Compiler will use the following file as its incremental dill file:
C:\Users\81909\AppData\Local\Temp\flutter_test_compiler.e8078cc2-40fe-11ea-aa02-00e18c5db36b\output.dill
[   +1 ms] Listening to compiler controller...
[   +8 ms] Compiling C:\Users\81909\AppData\Local\Temp\flutter_test_listener.e8078cc1-40fe-11ea-aa02-00e18c5db36b/listener.dart
[  +17 ms] C:\Users\81909\flutter\flutter\bin\cache\dart-sdk\bin\dart.exe
C:\Users\81909\flutter\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\81909\flutter\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\81909\AppData\Local\Temp\flutter_test_compiler.e8078cc2-40fe-11ea-aa02-00e18c5db36b\output.dill --packages
C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app\.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --initialize-from-dill C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app\build\testfile.dill.track.dill
[  +29 ms] <- compile C:\Users\81909\AppData\Local\Temp\flutter_test_listener.e8078cc1-40fe-11ea-aa02-00e18c5db36b/listener.dart
00:01 +0: loading C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app\test\widget_test.dart                                                     [+1355 ms] <- accept
[   +6 ms] <- reset
[   +7 ms] Compiling C:\Users\81909\AppData\Local\Temp\flutter_test_listener.e8078cc1-40fe-11ea-aa02-00e18c5db36b/listener.dart took 1415ms
[   +1 ms] C:\Users\81909\flutter\flutter\bin\cache\artifacts\engine\windows-x64\flutter_tester.exe --disable-observatory --enable-checked-mode --verify-entry-points
--enable-software-rendering --skia-deterministic-rendering --enable-dart-profiling --non-interactive --use-test-fonts
--packages=C:\Users\81909\AndroidStudioProjects\priority-setting-app\priority_setting_app\.packages
C:\Users\81909\AppData\Local\Temp\flutter_test_listener.e8078cc1-40fe-11ea-aa02-00e18c5db36b/listener.dart.dill
[   +2 ms] Using this directory for fonts configuration: C:\Users\81909\AppData\Local\Temp\flutter_test_fonts.e8078cc4-40fe-11ea-aa02-00e18c5db36b
[   +9 ms] test 0: awaiting initial result for pid 1852
[ +245 ms] test 0: process with pid 1852 connected to test harness
[   +2 ms] test 0: awaiting test result for pid 1852
00:03 +22: [TaskOperatePageTest] Test TextField of title.
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
The intrinsic dimension methods of the _RenderChip class returned values that violate the intrinsic
protocol contract.
The following failure was detected:
 * getMinIntrinsicWidth(Infinity) returned a larger value (94.0) than getMaxIntrinsicWidth(Infinity)
(86.0)
If you are not writing your own RenderBox subclass, then this is not
your fault. Contact support: https://github.com/flutter/flutter/issues/new?template=BUG.md

The relevant error-causing widget was:
  Chip
  file:///C:/Users/81909/AndroidStudioProjects/priority-setting-app/priority_setting_app/lib/ui/component/priority/priority_chip.dart:25:16

When the exception was thrown, this was the stack:
#0      RenderBox.debugAssertDoesMeetConstraints.<anonymous closure> (package:flutter/src/rendering/box.dart:2020:11)
#1      RenderBox.debugAssertDoesMeetConstraints (package:flutter/src/rendering/box.dart:2032:6)
#2      RenderBox.size=.<anonymous closure> (package:flutter/src/rendering/box.dart:1749:7)
#3      RenderBox.size= (package:flutter/src/rendering/box.dart:1751:6)
#4      _RenderChip.performLayout (package:flutter/src/material/chip.dart:2658:5)
#5      RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#6      RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
#7      RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#8      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#9      RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#10     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#11     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#12     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#13     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#14     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#15     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#16     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#17     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#18     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#19     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#20     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#21     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#22     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#23     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1240:11)
#24     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#25     RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:392:13)
#26     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#27     RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:264:13)
#28     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#29     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#30     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#31     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#32     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#33     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#34     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#35     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
#36     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#37     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:744:15)
#38     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#39     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:744:15)
#40     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#41     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#42     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#44     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#45     RenderSliverMultiBoxAdaptor.insertAndLayoutChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:492:13)
#46     RenderSliverList.performLayout.advance (package:flutter/src/rendering/sliver_list.dart:195:19)
#47     RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:238:19)
#48     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#49     RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:134:11)
#50     RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:373:11)
#51     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#52     RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:451:13)
#53     RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1443:12)
#54     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1352:20)
#55     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#56     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#57     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#58     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#59     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#60     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#61     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#62     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#63     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#64     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#65     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#66     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#67     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#68     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#69     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#70     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#71     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#72     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#73     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#74     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
#75     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#76     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:163:11)
#77     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:477:7)
#78     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:232:7)
#79     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:391:14)
#80     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#81     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#82     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#83     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#84     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1240:11)
#85     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#86     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#87     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#88     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#89     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#90     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#91     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#92     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#93     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#94     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#95     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#96     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#97     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#98     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#99     RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#100    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#101    RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3212:13)
#102    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#103    RenderStack.performLayout (package:flutter/src/rendering/stack.dart:503:15)
#104    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#105    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#106    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#107    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#108    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#109    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#110    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#111    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#112    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#113    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#114    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#115    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#116    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#117    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:110:13)
#118    RenderObject.layout (package:flutter/src/rendering/object.dart:1767:7)
#119    RenderView.performLayout (package:flutter/src/rendering/view.dart:167:13)
#120    RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1628:7)
#121    PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:888:18)
#122    AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:1005:23)
#123    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5)
#124    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1108:15)
#125    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1047:9)
#126    AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:875:9)
#129    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:41)
#130    AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:862:27)
#131    WidgetTester.pumpWidget.<anonymous closure> (package:flutter_test/src/widget_tester.dart:441:22)
#134    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:41)
#135    WidgetTester.pumpWidget (package:flutter_test/src/widget_tester.dart:438:27)
#136    TaskOperatePageTest.testTextFieldOfTitle.<anonymous closure> (file:///C:/Users/81909/AndroidStudioProjects/priority-setting-app/priority_setting_app/test/widget/page/task/task_operate_page_testcases.dart:30:20)
#138    TaskOperatePageTest.testTextFieldOfTitle.<anonymous closure> (file:///C:/Users/81909/AndroidStudioProjects/priority-setting-app/priority_setting_app/test/widget/page/task/task_operate_page_testcases.dart:14:9)
#139    testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:140:29)
#153    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1095:17)
#155    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1083:35)
(elided 34 frames from class _FakeAsync, package dart:async, package dart:async-patch, and package stack_trace)

The following RenderObject was being processed when the exception was fired: _RenderChip#7e625 relayoutBoundary=up22 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
  creator: _ChipRenderWidget ← Padding ← DecoratedBox ← Container ← AnimatedBuilder ← _PointerListener
    ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← MouseRegion ← Semantics ←
    ⋯
  parentData: offset=Offset(0.0, 0.0) (can use size)
  constraints: BoxConstraints(unconstrained)
  size: Size(94.0, 32.0)
This RenderObject had the following descendants (showing up to depth 5):
    avatar: RenderStack#626c1 NEEDS-PAINT
    label: RenderParagraph#395be relayoutBoundary=up23 NEEDS-PAINT
      text: TextSpan
    deleteIcon: RenderStack#6810b NEEDS-PAINT

════════════════════════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following message was thrown:
Multiple exceptions (64) were detected during the running of the current test, and at least one was
unexpected.
════════════════════════════════════════════════════════════════════════════════════════════════════
00:03 +22 -1: [TaskOperatePageTest] Test TextField of title.  [E]
  Test failed. See exception logs above.
  The test description was: [TaskOperatePageTest] Test TextField of title.

[+1743 ms] test 0: process with pid 1852 no longer needed by test harness
[   +1 ms] test 0: cleaning up...
[   +1 ms] test 0: ensuring end-of-process for shell
[  +16 ms] test 0: deleting temporary directory
[   +9 ms] test 0: shutting down test harness socket server
[   +2 ms] test 0: finished
00:03 +22 -1: Some tests failed.
[  +10 ms] Deleting C:\Users\81909\AppData\Local\Temp\flutter_test_compiler.e8078cc2-40fe-11ea-aa02-00e18c5db36b...
[   +6 ms] killing pid 31020
[  +35 ms] Deleting C:\Users\81909\AppData\Local\Temp\flutter_test_fonts.e8078cc4-40fe-11ea-aa02-00e18c5db36b...
[   +7 ms] test package returned with exit code 1

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      TestCommand.runCommand (package:flutter_tools/src/commands/test.dart:272:7)
<asynchronous suspension>
#2      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#3      _rootRun (dart:async/zone.dart:1126:13)
#4      _CustomZone.run (dart:async/zone.dart:1023:19)
#5      _runZoned (dart:async/zone.dart:1518:10)
#6      runZoned (dart:async/zone.dart:1465:12)
#7      AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#8      FastFlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:822:20)
#9      CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#10     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:333:21)
<asynchronous suspension>
#11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#12     _rootRun (dart:async/zone.dart:1126:13)
#13     _CustomZone.run (dart:async/zone.dart:1023:19)
#14     _runZoned (dart:async/zone.dart:1518:10)
#15     runZoned (dart:async/zone.dart:1465:12)
#16     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#17     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:284:19)
#18     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#19     new Future.sync (dart:async/future.dart:224:31)
#20     CommandRunner.run (package:args/command_runner.dart:112:14)
#21     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:227:18)
#22     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:22)
#23     _rootRun (dart:async/zone.dart:1126:13)
#24     _CustomZone.run (dart:async/zone.dart:1023:19)
#25     _runZoned (dart:async/zone.dart:1518:10)
#26     runZoned (dart:async/zone.dart:1502:12)
#27     run.<anonymous closure> (package:flutter_tools/runner.dart:62:18)
<asynchronous suspension>
#28     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#29     _rootRun (dart:async/zone.dart:1126:13)
#30     _CustomZone.run (dart:async/zone.dart:1023:19)
#31     _runZoned (dart:async/zone.dart:1518:10)
#32     runZoned (dart:async/zone.dart:1465:12)
#33     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#34     runInContext (package:flutter_tools/src/context_runner.dart:64:24)
#35     run (package:flutter_tools/runner.dart:51:10)
#36     main (package:flutter_tools/executable.dart:65:9)
#37     main (file:///C:/Users/81909/flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#38     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
#39     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)

Thank you.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 27, 2020
@kurakurakuda
Copy link
Author

kurakurakuda commented Jan 27, 2020

and below is sample chip widget failed.

Widget build(BuildContext context) {
    return Container(
      margin: const EdgeInsets.only(right: 8.0),
      child: Tooltip(
        message:  'This is Test',
        waitDuration: const Duration(milliseconds: 1),
        child: Chip(
          label: Text(
            '10',
            style: const TextStyle(
              color: Colors.white,
            ),
          ),
          padding: const EdgeInsets.symmetric(horizontal: 4.0),
          backgroundColor: _setColor(total, order),
        ),
      ),
    );

@VladyslavBondarenko
Copy link

Related to #32116

@VladyslavBondarenko VladyslavBondarenko added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Jan 27, 2020
@Onwa1kenobi
Copy link

Any update on this?

@kurakurakuda
Copy link
Author

@Onwa1kenobi
Still have error.

@kowongh
Copy link

kowongh commented Mar 19, 2020

I'm getting this error as well.

@markusaksli-nc
Copy link
Contributor

Reproducible on the latest master 1.22.0-10.0.pre.269. The failure seems to be caused by padding: EdgeInsets.symmetric.

flutter doctor -v
[√] Flutter (Channel master, 1.22.0-10.0.pre.269, on Microsoft Windows [Version 10.0.19041.508], locale en-US)
    • Flutter version 1.22.0-10.0.pre.269 at C:\Development\flutter_master
    • Framework revision 51fa704642 (2 days ago), 2020-09-19 11:27:04 -0700
    • Engine revision 4b8477d115
    • Dart version 2.10.0 (build 2.10.0-142.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.6.30320.27
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (6 available)
    • SM G950F (mobile)           • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • sdk gphone x86 arm (mobile) • emulator-5554      • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)           • windows            • windows-x64    • Microsoft Windows [Version 10.0.19041.508]
    • Web Server (web)            • web-server         • web-javascript • Flutter Tools
    • Chrome (web)                • chrome             • web-javascript • Google Chrome 85.0.4183.102
    • Edge (web)                  • edge               • web-javascript • Microsoft Edge 85.0.564.51

• No issues found!
Minimal reproducible code sample

main.dart

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Sample',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Sample'),
        ),
        body: Chip(
          label: Text(
            '10',
          ),
          //padding: const EdgeInsets.all(4.0), //This doesn't cause a failure
          padding: const EdgeInsets.symmetric(horizontal: 4.0), //This line causes the test failure
        ),
      ),
    );
  }
}

widget_test.dart

import 'package:bug/main.dart';
import 'package:flutter_test/flutter_test.dart';

void main () {
  testWidgets("Chip tester pump test", (WidgetTester tester) async {
    await tester.pumpWidget(MyApp());
  });
}
Exception and stack
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
The intrinsic dimension methods of the _RenderChip class returned values that violate the intrinsic
protocol contract.
The following failures was detected:
 * getMinIntrinsicWidth(Infinity) returned a larger value (52.0) than getMaxIntrinsicWidth(Infinity)
(44.0)
 * getMinIntrinsicWidth(544.0) returned a larger value (52.0) than getMaxIntrinsicWidth(544.0)
(44.0)
If you are not writing your own RenderBox subclass, then this is not
your fault. Contact support: https://github.com/flutter/flutter/issues/new?template=BUG.md

The relevant error-causing widget was:
  Chip file:///C:/Users/marku/Desktop/triage/master/lib/main.dart:14:15

When the exception was thrown, this was the stack:
#0      RenderBox.debugAssertDoesMeetConstraints.<anonymous closure> (package:flutter/src/rendering/box.dart:2116:11)
#1      RenderBox.debugAssertDoesMeetConstraints (package:flutter/src/rendering/box.dart:2128:6)
#2      RenderBox.size=.<anonymous closure> (package:flutter/src/rendering/box.dart:1846:7)
#3      RenderBox.size= (package:flutter/src/rendering/box.dart:1848:6)
#4      _RenderChip.performLayout (package:flutter/src/material/chip.dart:2672:5)
#5      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#6      RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:207:12)
#7      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#8      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#9      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#10     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#11     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#12     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#13     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#14     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#15     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#16     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#17     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#18     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#19     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#20     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#21     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#22     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#23     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1306:11)
#24     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#25     RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:394:14)
#26     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#27     RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:266:14)
#28     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#29     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#30     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#31     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:171:12)
#32     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:498:7)
#33     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:243:7)
#34     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:402:14)
#35     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#36     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#37     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#38     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#39     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1306:11)
#40     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#41     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#42     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#44     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#45     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#46     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#47     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#48     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#49     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#50     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#51     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#52     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#53     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#54     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#55     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#56     RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3220:13)
#57     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#58     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#59     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#60     _RenderTheatre.performLayout (package:flutter/src/widgets/overlay.dart:714:15)
#61     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#62     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#63     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#64     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#65     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#66     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#67     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#68     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#69     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#70     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#71     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#72     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:14)
#73     RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#74     RenderView.performLayout (package:flutter/src/rendering/view.dart:167:14)
#75     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1634:7)
#76     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:884:18)
#77     AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:1098:23)
#78     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:301:5)
#79     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15)
#80     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1055:9)
#81     AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:968:9)
#84     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:72:41)
#85     AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:955:27)
#86     WidgetTester.pumpWidget.<anonymous closure> (package:flutter_test/src/widget_tester.dart:522:22)
#89     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:72:41)
#90     WidgetTester.pumpWidget (package:flutter_test/src/widget_tester.dart:519:27)
#91     main.<anonymous closure> (file:///C:/Users/marku/Desktop/triage/master/test/widget_test.dart:7:18)
#92     main.<anonymous closure> (file:///C:/Users/marku/Desktop/triage/master/test/widget_test.dart:6:31)
#93     testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:144:29)
#104    FakeAsync.flushMicrotasks (package:fake_async/fake_async.dart:193:32)
#105    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1196:17)
#106    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1184:35)
(elided 29 frames from dart:async and package:stack_trace)

The following RenderObject was being processed when the exception was fired: _RenderChip#4941c relayoutBoundary=up13 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
  creator: _ChipRenderWidget ← Padding ← DecoratedBox ← Container ← AnimatedBuilder ← _PointerListener
    ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← _RawMouseRegion ←
    MouseRegion ← ⋯
  parentData: offset=Offset(0.0, 0.0) (can use size)
  constraints: BoxConstraints(0.0<=w<=800.0, 0.0<=h<=544.0)
  size: Size(52.0, 32.0)
This RenderObject had the following descendants (showing up to depth 5):
    avatar: RenderStack#3f84b NEEDS-PAINT
    label: RenderParagraph#73d67 relayoutBoundary=up14 NEEDS-PAINT
      text: TextSpan
    deleteIcon: RenderStack#49696 NEEDS-PAINT
════════════════════════════════════════════════════════════════════════════════════════════════════

@markusaksli-nc markusaksli-nc added f: material design flutter/packages/flutter/material repository. found in release: 1.22 Found to occur in 1.22 has reproducible steps The issue has been confirmed reproducible and is ready to work on c: crash Stack traces logged to the console labels Sep 21, 2020
@markusaksli-nc markusaksli-nc changed the title [widget_test] The test a page including chip widget failed [widget_test] pumpWidget on Chip with EdgeInsets.symmetric causes _RenderChip violation of intrinsic protocol contract exception Sep 21, 2020
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: tests "flutter test", flutter_test, or one of our tests c: crash Stack traces logged to the console f: material design flutter/packages/flutter/material repository. found in release: 1.22 Found to occur in 1.22 framework flutter/packages/flutter repository. See also f: labels. has reproducible steps The issue has been confirmed reproducible and is ready to work on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants