-
-
Notifications
You must be signed in to change notification settings - Fork 868
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 when URL is rendered #1019
Comments
This is part of a MUCH larger widget tree that I didn't include due to size and complexity. I started recreating the widget tree in a test project to narrow down the problem and was able to find the perpetrator. For some reason, an html widget containing a link (a tag) when inside a standard flutter Material "Reorderable List View" will trigger the error. See the minimal reproducible example:
Leads to: ======== Exception caught by scheduler library ===================================================== 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. When the exception was thrown, this was the stack:
|
Thanks for the minimal reproducible example. I'll look into this. Clever app idea too, brother 😉 |
After some investigation, I've had to forward this issue onto the Flutter team, as it turns out to be an issue with Flutter itself. You can follow flutter/flutter#126840 for updates. |
This issue has been fixed in the Flutter master branch. Since the assertion doesn't cause a crash and since |
Describe the bug:
When including a link (
<a href=""></a>
) in the html content, I am getting an ambiguous bug:'package:flutter/src/semantics/semantics.dart': Failed assertion: line 3023 pos 16: 'node.parent == null || !node.parent!.isPartOfNodeMerging || node.isMergedIntoParent': is not true.
When I remove the tag, everything functions normally. As soon as I add it back in, the bug returns.
HTML to reproduce the issue:
Today's lesson will be streamed via the following link:<div><br></div><div><a href="https://www.apple.com" rel="nofollow">Streaming Link</a><b><u></u></b><br></div>
Html
widget configuration:Device details and Flutter/Dart/
flutter_html
versions:iOS Simulator iPhone 12 Pro
flutter_html 3.0.0-alpha.2 (Was also produced in version 2.2.1)
Stacktrace/Logcat
======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/semantics/semantics.dart': Failed assertion: line 3023 pos 16: 'node.parent == null || !node.parent!.isPartOfNodeMerging || node.isMergedIntoParent': 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 SemanticsOwner.sendSemanticsUpdate (package:flutter/src/semantics/semantics.dart:3023:16)
#3 PipelineOwner.flushSemantics (package:flutter/src/rendering/object.dart:1098:24)
#4 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:502:21)
#5 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:883:13)
#6 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#7 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#8 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
#9 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#13 _invoke (dart:ui/hooks.dart:151:10)
#14 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#15 _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
Additional info:
I am rendering multiple Containers with html in each container in rows...not sure if that is a problem to have multiple instances in one page.
The text was updated successfully, but these errors were encountered: