-
-
Notifications
You must be signed in to change notification settings - Fork 923
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug:
I compiled the example for Linux (Desctop), and it constantly gives a rendering error. The same project runs on Chrome(Web)
Html widget configuration:
Everything from the example
Screenshots:
Device details and Flutter/Dart/flutter_html versions:
Stacktrace/Logcat
Additional info:
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
Debug service listening on ws://127.0.0.1:37779/tTQOaE2qU5g=/ws
Syncing files to device Linux...
[Flutter Math] LaTeX-incompatible input and strict mode is set to 'warn': Unrecognized Unicode character "" (8290) [unknownSymbol]
[Flutter Math] LaTeX-incompatible input and strict mode is set to 'warn': Unrecognized Unicode character "" (8290) [unknownSymbol]
[Flutter Math] LaTeX-incompatible input and strict mode is set to 'warn': Unrecognized Unicode character "" (8290) [unknownSymbol]
[Flutter Math] LaTeX-incompatible input and strict mode is set to 'warn': Unrecognized Unicode character "ⅆ" (8518) [unknownSymbol]
======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
RenderParagraph object was given an infinite size during layout.
This probably means that it is a render object that tries to be as big as possible, but it was put inside another render object that allows its children to pick their own size.
The nearest ancestor providing an unbounded height constraint is: _RenderSingleChildViewport#f36c9 relayoutBoundary=up13 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... needs compositing
... parentData: <none> (can use size)
... constraints: BoxConstraints(0.0<=w<=1280.0, 0.0<=h<=664.0)
... size: MISSING
The constraints that applied to the RenderParagraph were: BoxConstraints(w=1264.0, 0.0<=h<=Infinity)
The exact size it was given was: Size(1264.0, Infinity)
See https://flutter.dev/docs/development/ui/layout/box-constraints for more information.
The relevant error-causing widget was:
Text file:///mnt/hdd_e/Programs/Flutter/tests/flutter_html-master/lib/html_parser.dart:1089:19
When the exception was thrown, this was the stack:
#0 RenderBox.debugAssertDoesMeetConstraints.<anonymous closure> (package:flutter/src/rendering/box.dart:2206:9)
#1 RenderBox.debugAssertDoesMeetConstraints (package:flutter/src/rendering/box.dart:2300:6)
#2 RenderBox.size=.<anonymous closure> (package:flutter/src/rendering/box.dart:1992:7)
#3 RenderBox.size= (package:flutter/src/rendering/box.dart:1994:6)
#4 RenderParagraph.performLayout (package:flutter/src/rendering/paragraph.dart:658:5)
...
The following RenderObject was being processed when the exception was fired: RenderParagraph#8243f relayoutBoundary=up33 NEEDS-LAYOUT NEEDS-PAINT
... parentData: <none> (can use size)
... constraints: BoxConstraints(w=1264.0, 0.0<=h<=Infinity)
... size: Size(1264.0, Infinity)
... textAlign: start
... textDirection: ltr
... softWrap: wrapping at box width
... overflow: clip
... locale: en_US
... maxLines: unlimited
RenderObject: RenderParagraph#8243f relayoutBoundary=up33 NEEDS-LAYOUT NEEDS-PAINT
parentData: <none> (can use size)
constraints: BoxConstraints(w=1264.0, 0.0<=h<=Infinity)
size: Size(1264.0, Infinity)
textAlign: start
textDirection: ltr
softWrap: wrapping at box width
overflow: clip
locale: en_US
maxLines: unlimited
... text: TextSpan
... debugLabel: ((englishLike body1 2014).merge(blackHelsinki bodyText2)).merge(unknown)
... inherit: false
... color: Color(0xdd000000)
... backgroundColor: Color(0x00000000)
... family: Roboto
... familyFallback: Ubuntu, Cantarell, DejaVu Sans, Liberation Sans, Arial
... size: 16.4
... weight: 700
... baseline: alphabetic
... height: 1.2x
... decoration: TextDecoration.none
... : TextSpan
... inherit: true
... color: Color(0xdd000000)
... backgroundColor: Color(0x00000000)
... family: Roboto
... size: 16.4
... weight: 700
... height: 1.2x
... decoration: TextDecoration.none
... : TextSpan
... "Support for "
... : TextSpan
... inherit: true
... color: Color(0xdd000000)
... backgroundColor: Color(0x00000000)
... family: Monospace
... size: 16.4
... weight: 700
... height: 1.2x
... decoration: TextDecoration.none
... : TextSpan
... "sub"
... : TexkgroundColor: Color(0x00000000)
... family: Monospace
... size: 16.4
... weight: 700
... height: 1.2x
... decoration: TextDecoration.none
... : TextSpan
... "sup"
====================================================================================================
tSpan
... "/"
... : TextSpan
... inherit: true
... color: Color(0xdd000000)
... backgroundColor: Color(0x00000000)
... family: Monospace
... size: 16.4
... weight: 700
... height: 1.2x
... decoration: TextDecoration.none
... : TextSpan
... "sup"
====================================================================================================
A picture of a cute animal (not mandatory but encouraged)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
