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
[Web][HTML] Hovering the cursor over Arabic characters causes an ArgumentError #146588
Labels
a: internationalization
Supporting other languages or locales. (aka i18n)
a: typography
Text rendering, possibly libtxt
c: regression
It was better in the past than it is now
e: web_html
HTML rendering backend for Web
engine
flutter/engine repository. See also e: labels.
found in release: 3.19
Found to occur in 3.19
found in release: 3.22
Found to occur in 3.22
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P3
Issues that are less important to the Flutter project
platform-web
Web applications specifically
team-web
Owned by Web platform team
triaged-web
Triaged by Web platform team
Comments
gromikkool
changed the title
Flutter web hovering the cursor over Arabic characters causes a mouse region error
Flutter web hovering the cursor over Arabic characters causes a ArgumentError
Apr 10, 2024
This comment was marked as duplicate.
This comment was marked as duplicate.
Reproducible using the code sample provided above, only with the html renderer. This does not happen on stable 3.16 as noted above. Labeling for further investigation logs
flutter doctor -v
|
danagbemava-nc
added
c: regression
It was better in the past than it is now
engine
flutter/engine repository. See also e: labels.
a: internationalization
Supporting other languages or locales. (aka i18n)
a: typography
Text rendering, possibly libtxt
platform-web
Web applications specifically
e: web_html
HTML rendering backend for Web
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
team-web
Owned by Web platform team
found in release: 3.19
Found to occur in 3.19
found in release: 3.22
Found to occur in 3.22
and removed
in triage
Presently being triaged by the triage team
labels
Apr 11, 2024
danagbemava-nc
changed the title
Flutter web hovering the cursor over Arabic characters causes a ArgumentError
[Web][HTML] Hovering the cursor over Arabic characters causes an ArgumentError
Apr 12, 2024
This comment was marked as duplicate.
This comment was marked as duplicate.
yjbanov
added
P3
Issues that are less important to the Flutter project
triaged-web
Triaged by Web platform team
labels
May 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
a: internationalization
Supporting other languages or locales. (aka i18n)
a: typography
Text rendering, possibly libtxt
c: regression
It was better in the past than it is now
e: web_html
HTML rendering backend for Web
engine
flutter/engine repository. See also e: labels.
found in release: 3.19
Found to occur in 3.19
found in release: 3.22
Found to occur in 3.22
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P3
Issues that are less important to the Flutter project
platform-web
Web applications specifically
team-web
Owned by Web platform team
triaged-web
Triaged by Web platform team
Steps to reproduce
Hello everyone!
I found a very annoying bug when using Arabic characters in any widget with HTML-RENDERER. We had version 3.16.9 and did not have this bug, after we upgraded to 3.19.5, the error started to pop up.
To reproduce the bug you need to move the cursor over the Arabic characters. I only managed to find out that this happens with some specific Arabic characters.
Expected results
The expected behavior is exceptions will stop appearing when user move the cursor over the Arabic characters.
Actual results
When I move cursor over arabic characters exceptions appear.
The following ArgumentError was thrown while handling a pointer data packet:
Invalid argument: 16.62
When the exception was thrown, this was the stack:
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3 throw
dart-sdk/lib/_internal/js_dev_runtime/private/js_number.dart 145:7 clamp]
lib/_engine/engine/text/layout_fragmenter.dart 654:44 [_getClosestCharacterInRange]
lib/_engine/engine/text/layout_fragmenter.dart 649:39 [_getClosestCharacterInRange]
lib/_engine/engine/text/layout_fragmenter.dart 649:39 [_getClosestCharacterInRange]
lib/_engine/engine/text/layout_fragmenter.dart 685:12 getClosestCharacterBox
lib/_engine/engine/text/layout_service.dart 431:45 getClosestGlyphInfo
lib/_engine/engine/text/canvas_paragraph.dart 200:82 getClosestGlyphInfoForOffset
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: