openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
830 stars 277 forks source link

[Sign in] Crash when selecting text #3864

Open g123k opened 1 year ago

g123k commented 1 year ago

Hi everyone,

When selecting a text (the email or the password) in the Sign-in screen, there is a brief error:

======== Exception caught by widgets library =======================================================
The following assertion was thrown building _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#ff3b8](state: _OverlayEntryWidgetState#d1de7):
'package:flutter/src/rendering/object.dart': Failed assertion: line 2951 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.md

When the exception was thrown, this was the stack: 
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:2951:12)
#3      RenderBox.localToGlobal (package:flutter/src/rendering/box.dart:2661:39)
#4      SelectionOverlay.showToolbar.<anonymous closure> (package:flutter/src/widgets/text_selection.dart:1343:30)
#5      ContextMenuController.show.<anonymous closure> (package:flutter/src/widgets/context_menu_controller.dart:59:54)
#6      _OverlayEntryWidgetState.build (package:flutter/src/widgets/overlay.dart:259:34)
#7      StatefulElement.build (package:flutter/src/widgets/framework.dart:5080:27)
#8      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4968:15)
#9      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

Here is a video of the issue Crash.webm

g123k commented 1 year ago

It seems it's a known issue: https://github.com/flutter/flutter/issues/122375