[GH-ISSUE #4763] [Bug] After certain operations, the editor will enter a stuck state. #2135

Open
opened 2026-03-23 21:19:57 +00:00 by mirror · 2 comments
Owner

Originally created by @q200892907 on GitHub (Feb 28, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4763

Originally assigned to: @LucasXu0 on GitHub.

Bug Description

[ +2 ms] [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (end): Invalid value: Not in inclusive range 14..20: 6
[ ] #0 RangeError.checkValidRange (dart:core/errors.dart:364:9)
[ ] #1 _StringBase.substring (dart:core-patch/string_patch.dart:413:27)
[ ] #2 _OpIterator.next (package:appflowy_editor/src/core/document/text_delta.dart:591:23)
[ ] #3 Delta.compose (package:appflowy_editor/src/core/document/text_delta.dart:277:33)
[ ] #4 TextTransaction.compose. (package:appflowy_editor/src/core/transform/transaction.dart:569:59)
[ ] #5 ListBase.fold (dart:collection/list.dart:202:22)
[ ] #6 TextTransaction.compose (package:appflowy_editor/src/core/transform/transaction.dart:569:22)
[ ] #7 Transaction.operations (package:appflowy_editor/src/core/transform/transaction.dart:23:7)
[ ] #8 EditorState.apply (package:appflowy_editor/src/editor_state.dart:286:41)
[ ] #9 onInsert (package:appflowy_editor/src/editor/editor_component/service/ime/delta_input_on_insert_impl.dart:110:22)
[ ]
[ ] #10 KeyboardServiceWidgetState.initState. (package:appflowy_editor/src/editor/editor_component/service/keyboard_service_widget.dart:65:38)
[ ]
[ ] #11 NonDeltaTextInputService.apply (package:appflowy_editor/src/editor/editor_component/service/ime/non_delta_input_service.dart:49:9)
[ ]
[ +1 ms] [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (end): Invalid value: Not in inclusive range 14..20: 6
[ ] #0 RangeError.checkValidRange (dart:core/errors.dart:364:9)
[ ] #1 _StringBase.substring (dart:core-patch/string_patch.dart:413:27)
[ ] #2 _OpIterator.next (package:appflowy_editor/src/core/document/text_delta.dart:591:23)
[ ] #3 Delta.compose (package:appflowy_editor/src/core/document/text_delta.dart:277:33)
[ ] #4 TextTransaction.compose. (package:appflowy_editor/src/core/transform/transaction.dart:569:59)
[ ] #5 ListBase.fold (dart:collection/list.dart:202:22)
[ ] #6 TextTransaction.compose (package:appflowy_editor/src/core/transform/transaction.dart:569:22)
[ ] #7 Transaction.operations (package:appflowy_editor/src/core/transform/transaction.dart:23:7)
[ ] #8 EditorState.apply (package:appflowy_editor/src/editor_state.dart:286:41)
[ ] #9 onInsert (package:appflowy_editor/src/editor/editor_component/service/ime/delta_input_on_insert_impl.dart:110:22)
[ ]
[ ] #10 KeyboardServiceWidgetState.initState. (package:appflowy_editor/src/editor/editor_component/service/keyboard_service_widget.dart:65:38)
[ ]
[ ] #11 NonDeltaTextInputService.apply (package:appflowy_editor/src/editor/editor_component/service/ime/non_delta_input_service.dart:49:9)
[ ]

https://github.com/AppFlowy-IO/AppFlowy/assets/4517301/9f385462-3055-440f-9894-f7c117a2cc97

How to Reproduce

After pressing the video operation, the editor reports an error and cannot continue typing.
demo{demo}{demo}->demo{demo}\_{demo}->demo\_{demo}\_{demo}

Expected Behavior

The editor is normal

Operating System

desktop

AppFlowy Version(s)

main

Screenshots

No response

Additional Context

No response

Originally created by @q200892907 on GitHub (Feb 28, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4763 Originally assigned to: @LucasXu0 on GitHub. ### Bug Description [ +2 ms] [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (end): Invalid value: Not in inclusive range 14..20: 6 [ ] #0 RangeError.checkValidRange (dart:core/errors.dart:364:9) [ ] #1 _StringBase.substring (dart:core-patch/string_patch.dart:413:27) [ ] #2 _OpIterator.next (package:appflowy_editor/src/core/document/text_delta.dart:591:23) [ ] #3 Delta.compose (package:appflowy_editor/src/core/document/text_delta.dart:277:33) [ ] #4 TextTransaction.compose.<anonymous closure> (package:appflowy_editor/src/core/transform/transaction.dart:569:59) [ ] #5 ListBase.fold (dart:collection/list.dart:202:22) [ ] #6 TextTransaction.compose (package:appflowy_editor/src/core/transform/transaction.dart:569:22) [ ] #7 Transaction.operations (package:appflowy_editor/src/core/transform/transaction.dart:23:7) [ ] #8 EditorState.apply (package:appflowy_editor/src/editor_state.dart:286:41) [ ] #9 onInsert (package:appflowy_editor/src/editor/editor_component/service/ime/delta_input_on_insert_impl.dart:110:22) [ ] <asynchronous suspension> [ ] #10 KeyboardServiceWidgetState.initState.<anonymous closure> (package:appflowy_editor/src/editor/editor_component/service/keyboard_service_widget.dart:65:38) [ ] <asynchronous suspension> [ ] #11 NonDeltaTextInputService.apply (package:appflowy_editor/src/editor/editor_component/service/ime/non_delta_input_service.dart:49:9) [ ] <asynchronous suspension> [ +1 ms] [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (end): Invalid value: Not in inclusive range 14..20: 6 [ ] #0 RangeError.checkValidRange (dart:core/errors.dart:364:9) [ ] #1 _StringBase.substring (dart:core-patch/string_patch.dart:413:27) [ ] #2 _OpIterator.next (package:appflowy_editor/src/core/document/text_delta.dart:591:23) [ ] #3 Delta.compose (package:appflowy_editor/src/core/document/text_delta.dart:277:33) [ ] #4 TextTransaction.compose.<anonymous closure> (package:appflowy_editor/src/core/transform/transaction.dart:569:59) [ ] #5 ListBase.fold (dart:collection/list.dart:202:22) [ ] #6 TextTransaction.compose (package:appflowy_editor/src/core/transform/transaction.dart:569:22) [ ] #7 Transaction.operations (package:appflowy_editor/src/core/transform/transaction.dart:23:7) [ ] #8 EditorState.apply (package:appflowy_editor/src/editor_state.dart:286:41) [ ] #9 onInsert (package:appflowy_editor/src/editor/editor_component/service/ime/delta_input_on_insert_impl.dart:110:22) [ ] <asynchronous suspension> [ ] #10 KeyboardServiceWidgetState.initState.<anonymous closure> (package:appflowy_editor/src/editor/editor_component/service/keyboard_service_widget.dart:65:38) [ ] <asynchronous suspension> [ ] #11 NonDeltaTextInputService.apply (package:appflowy_editor/src/editor/editor_component/service/ime/non_delta_input_service.dart:49:9) [ ] <asynchronous suspension> https://github.com/AppFlowy-IO/AppFlowy/assets/4517301/9f385462-3055-440f-9894-f7c117a2cc97 ### How to Reproduce After pressing the video operation, the editor reports an error and cannot continue typing. demo{demo}{demo}->demo{demo}\\\_{demo}->demo\\\_{demo}\\_{demo} ### Expected Behavior The editor is normal ### Operating System desktop ### AppFlowy Version(s) main ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@q200892907 commented on GitHub (Feb 29, 2024):

@LucasXu0 demo{demo}{demo}->demo{demo}\_{demo}->demo\_{demo}\_{demo}

<!-- gh-comment-id:1970295821 --> @q200892907 commented on GitHub (Feb 29, 2024): @LucasXu0 demo{demo}{demo}->demo{demo}\\\_{demo}->demo\\\_{demo}\\_{demo}
Author
Owner

@q200892907 commented on GitHub (Mar 15, 2024):

After certain operations, the editor will enter a stuck state. @LucasXu0

<!-- gh-comment-id:1998836837 --> @q200892907 commented on GitHub (Mar 15, 2024): After certain operations, the editor will enter a stuck state. @LucasXu0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2135
No description provided.