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

[BUG] Failed assertion: line 1318 pos 14: 'readOnly && !obscureText': is not true. #84

Open
dab246 opened this issue Oct 14, 2024 · 0 comments

Comments

@dab246
Copy link
Contributor

dab246 commented Oct 14, 2024

Description

  • When i copy & paste long text subjectaklkdsakdsakdkaklfklklafkamfklasmfkamfsklamfsakflsafklasmfaskfsakfasubjectaklkdsakdsakdkaklfklklafkamfklasmfkamfsklamfsakflsafklasmfaskfsakfa to input field then i get error 'readOnly && !obscureText': is not true.
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-14.at.16.27.12.mp4

Env

  • Happens on iOS Simulator & Android Emulator when run interaction test

Log

Performing hot restart...
Syncing files to device iPhone 15 Pro Max...
Restarted application in 419ms.

======== Exception caught by widgets library =======================================================
The following assertion was thrown building _ScribbleFocusable(state: _ScribbleFocusableState#efde4):
'package:flutter/src/rendering/editable.dart': Failed assertion: line 1318 pos 14: 'readOnly && !obscureText': 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.yml

The relevant error-causing widget was: 
  TextField TextField:file:///Users/dab.dev/Workspace/Projects/languagetool_textfield/lib/src/presentation/language_tool_text_field.dart:130:30
When the exception was thrown, this was the stack: 
#2      RenderEditable.describeSemanticsConfiguration (package:flutter/src/rendering/editable.dart:1318:14)
#3      RenderObject._semanticsConfiguration (package:flutter/src/rendering/object.dart:3487:7)
#4      RenderObject.markNeedsSemanticsUpdate (package:flutter/src/rendering/object.dart:3558:41)
#5      RenderEditable.text= (package:flutter/src/rendering/editable.dart:782:5)
#6      _Editable.updateRenderObject (package:flutter/src/widgets/editable_text.dart:5507:9)
#7      RenderObjectElement._performRebuild (package:flutter/src/widgets/framework.dart:6502:36)
#8      RenderObjectElement.update (package:flutter/src/widgets/framework.dart:6479:5)
#9      MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6925:11)
#10     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#11     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#12     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#13     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#14     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#15     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#16     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#17     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#18     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#19     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#20     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#21     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#22     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#23     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#24     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#25     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#26     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#27     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#28     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#29     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#30     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#31     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#32     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#33     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#34     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#35     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#36     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#37     ProxyElement.update (package:flutter/src/widgets/framework.dart:5816:5)
#38     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#39     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#40     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#41     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#42     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#43     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#44     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#45     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#46     ProxyElement.update (package:flutter/src/widgets/framework.dart:5816:5)
#47     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#48     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#49     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#50     ProxyElement.update (package:flutter/src/widgets/framework.dart:5816:5)
#51     _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:105:11)
#52     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#53     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#54     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#55     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#56     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#57     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#58     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#59     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#60     ProxyElement.update (package:flutter/src/widgets/framework.dart:5816:5)
#61     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#62     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#63     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#64     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#65     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#66     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#67     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#68     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#69     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#70     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#71     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#72     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#73     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#74     ProxyElement.update (package:flutter/src/widgets/framework.dart:5816:5)
#75     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#76     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#77     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#78     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#79     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#80     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#81     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#82     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#83     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#84     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#85     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#86     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#87     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#88     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#89     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#90     StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#91     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#92     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#93     Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#94     ProxyElement.update (package:flutter/src/widgets/framework.dart:5816:5)
#95     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#96     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#97     Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#98     SlottedRenderObjectElement._updateChildren (package:flutter/src/widgets/slotted_render_object_widget.dart:295:33)
#99     SlottedRenderObjectElement.update (package:flutter/src/widgets/slotted_render_object_widget.dart:256:5)
#100    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#101    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#102    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#103    Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#104    StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#105    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#106    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#107    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#108    Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#109    StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#110    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#111    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#112    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#113    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#114    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#115    Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#116    StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#117    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#118    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#119    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#120    Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#121    StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#122    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#123    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#124    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#125    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#126    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#127    Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#128    StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#129    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#130    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#131    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#132    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#133    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#134    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#135    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#136    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#137    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#138    Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#139    StatefulElement.update (package:flutter/src/widgets/framework.dart:5673:5)
#140    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#141    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6776:14)
#142    Element.updateChild (package:flutter/src/widgets/framework.dart:3827:15)
#143    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5512:16)
#144    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5650:11)
#145    Element.rebuild (package:flutter/src/widgets/framework.dart:5203:7)
#146    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2905:19)
#147    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1136:21)
#148    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:443:5)
#149    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#150    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1313:9)
#151    SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1171:5)
#152    _invoke (dart:ui/hooks.dart:312:13)
#153    PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#154    _drawFrame (dart:ui/hooks.dart:283:31)
(elided 2 frames from class _AssertionError)
====================================================================================================

======== Exception caught by rendering library =====================================================
The following assertion was thrown during layout:
A RenderFlex overflowed by 99140 pixels on the bottom.

The relevant error-causing widget was: 
  Column Column:file:///Users/dab.dev/Workspace/Projects/languagetool_textfield/example/lib/main.dart:37:15
The overflowing RenderFlex has an orientation of Axis.vertical.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.

Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size.
This is considered an error condition because it indicates that there is content that cannot be seen. If the content is legitimately bigger than the available space, consider clipping it with a ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, like a ListView.

The specific RenderFlex in question is: RenderFlex#b5f4b relayoutBoundary=up1 OVERFLOWING
...  needs compositing
...  parentData: offset=Offset(0.0, 0.0); id=_ScaffoldSlot.body (can use size)
...  constraints: BoxConstraints(0.0<=w<=430.0, 0.0<=h<=932.0)
...  size: Size(430.0, 932.0)
...  direction: vertical
...  mainAxisAlignment: center
...  mainAxisSize: max
...  crossAxisAlignment: center
...  verticalDirection: down
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
====================================================================================================

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/object.dart': Failed assertion: line 3337 pos 12: 'attached': 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.yml

When the exception was thrown, this was the stack: 
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:3337:12)
#3      RenderBox.localToGlobal (package:flutter/src/rendering/box.dart:2886:39)
#4      RenderEditable._snapToPhysicalPixel (package:flutter/src/rendering/editable.dart:2282:33)
#5      RenderEditable.getLocalRectForCaret (package:flutter/src/rendering/editable.dart:1826:28)
#6      EditableTextState._updateComposingRectIfNeeded (package:flutter/src/widgets/editable_text.dart:4487:38)
#7      EditableTextState._schedulePeriodicPostFrameCallbacks (package:flutter/src/widgets/editable_text.dart:4393:5)
#8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1326:11)
#10     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1171:5)
#11     _invoke (dart:ui/hooks.dart:312:13)
#12     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#13     _drawFrame (dart:ui/hooks.dart:283:31)
(elided 2 frames from class _AssertionError)
====================================================================================================

Flutter Official Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant