question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Comment editor crashes when writing diacritics

See original GitHub issue

This issue was created automatically by a script.

Bug 1713496

Bug Reporter: @MikkCZ CC: @Pike

STR:

  1. Open any string, e.g. https://pontoon.mozilla.org/cs/firefox/all-resources/?string=74127.
  2. Open the comment textarea either on a suggestion or the string in general.
  3. On Czech keyboard do two times: – press acute/caron key (with or without Shift), followed by e.g. E, to write either “é” or “ě” – press space bar

What should happen:

  • The area should contain "é é " or "ě ě " depending on what you pressed.

What happens:

  • The first time space is pressed, the letter disappears. The second time the whole frontend crashes and two errors appear in the console.
Error: Cannot resolve a DOM point from Slate point: {"path":[0,0],"offset":3}
    toDOMPoint react-editor.ts:262
    toDOMRange react-editor.ts:277
    wt editable.tsx:184
    React 3
    unstable_runWithPriority scheduler.production.min.js:19
    React 4
    unstable_runWithPriority scheduler.production.min.js:19
    React 4
    onChange with-react.ts:177
    apply create-editor.ts:86
    promise callback*apply create-editor.ts:84
    apply with-react.ts:52
    insertText text.ts:448
    withoutNormalizing editor.ts:1587
    insertText text.ts:414
    insertText create-editor.ts:188
    insertText editor.ts:319
    onBeforeInput editable.tsx:498
    React 12
    unstable_runWithPriority scheduler.production.min.js:19
    React 13
    unstable_runWithPriority scheduler.production.min.js:19
    React 4
    Redux 5
    a middleware.js:22
    dispatch Redux
    r actions.js:67
    h runtime.js:63
    _invoke runtime.js:293
    S runtime.js:118
    Babel 2
react-dom.production.min.js:209:194
Uncaught (in promise) Error: Cannot resolve a DOM point from Slate point: {"path":[0,0],"offset":3}
    toDOMPoint react-editor.ts:262
    toDOMRange react-editor.ts:277
    wt editable.tsx:184
    React 3
    unstable_runWithPriority scheduler.production.min.js:19
    React 4
    unstable_runWithPriority scheduler.production.min.js:19
    React 4
    onChange with-react.ts:177
    apply create-editor.ts:86
    promise callback*apply create-editor.ts:84
    apply with-react.ts:52
    insertText text.ts:448
    withoutNormalizing editor.ts:1587
    insertText text.ts:414
    insertText create-editor.ts:188
    insertText editor.ts:319
    onBeforeInput editable.tsx:498
    React 12
    unstable_runWithPriority scheduler.production.min.js:19
    React 13
    unstable_runWithPriority scheduler.production.min.js:19
    React 4
    Redux 5
    a middleware.js:22
    dispatch Redux
    r actions.js:67
    h runtime.js:63
    _invoke runtime.js:293
    S runtime.js:118
    Babel 2
react-editor.ts:262:12

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
mathjazzcommented, Feb 3, 2022

Ah, thanks. Let’s continue as agreed on the meeting (i.e. as you suggested), sorry for the false alarm.

1reaction
Pikecommented, Feb 3, 2022

The kicker is that you need to start with an empty inbox.

Then add a diacritic, add a char, move, delete, crash.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1713496 - [Comments] react-editor crash when writing diacritics
What happens: The first time space is pressed, the letter disappears. The second time the whole frontend crashes and two errors appear in...
Read more >
diacritic accents make email window crash · Issue #718 - GitHub
I write emails in three languages, two of these three have accents, like this é. I am a paying customer and haven't received...
Read more >
bug #50676, CTD when writing Latin accents on... [Savannah]
Writing the accent character before the rest of the word DOES NOT result in a crash, e.g.: 1. Write "â" in the editor;...
Read more >
Using accents crashes OS X applications - Apple Community
Using accents crashes OS X applications. Hello everyone,. I'm writing to you here with much frustration about a problem that has been bugged ......
Read more >
[Script Editor Folds Beta] Studio crashes when typing special ...
After I reinstalled Windows 10, when I write the Cyrillic alphabet, the studio just crashes. I asked my friend about this, he does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found