flutter-quill
flutter-quill copied to clipboard
Enter Chinese in the editor, and click other blank areas to crash when you do not confirm
Is there an existing issue for this?
- [X] I have searched the existing issues
Flutter Quill version
flutter_quill_extensions : 10.4.0
Steps to reproduce
1、Enter Chinese in the edit area, but do not confirm 2、Click on the blank space after the pre-entered text
Expected results
Don't crash
Actual results
crash
Code sample
just use the flutter_quill demo on iPad
Additional Context
https://github.com/user-attachments/assets/63e60d94-470e-4a00-8fdf-bc512b9b4d03
the debug console log:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'
*** First throw call stack:
(0x195f24cb4 0x18f0443d0 0x196033bbc 0x1042fe754 0x198952d34 0x19803f6b8 0x19803ec4c 0x19803cb8c 0x198948f98 0x19807e520 0x198082d94 0x198082054 0x198080340 0x1980c9018 0x1983ce5fc 0x195fee128 0x195ffa7b4 0x195f7f5e8 0x195f950d4 0x195f9a3ec 0x1d0b2f35c 0x1983276e8 0x19832734c 0x10065c8d4 0x1b5462dec)
libc++abi: terminating due to uncaught exception of type NSException
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00000001d455f558 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
-> 0x1d455f558 <+8>: b.lo 0x1d455f578 ; <+40>
0x1d455f55c <+12>: pacibsp
0x1d455f560 <+16>: stp x29, x30, [sp, #-0x10]!
0x1d455f564 <+20>: mov x29, sp
Target 0: (Runner) stopped.
Lost connection to device.
please help me, thanks very much @singerdmx
Can you share the full crash log? this seems to be a crash from native iOS, it could be an issue with a plugin, some internal method that communicates using a method channel.
Does the issue only occur on iPad or iPhone too?
It only crashes on the iPad not on the iPhone, and there are only so many crash logs, only flutter engine crash logs. you can repeat the question as shown in the video
---- Replied Message ---- | From | @.> | | Date | 09/14/2024 21:41 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [singerdmx/flutter-quill] Enter Chinese in the editor, and click other blank areas to crash when you do not confirm (Issue #2135) |
Can you share the full crash log? this seems to be a crash from native iOS, it could be an issue with a plugin, some internal method that communicates using a method channel.
Does the issue only occur on iPad or iPhone too?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
@EchoEllet @Winstonokk
this issue : https://github.com/flutter/flutter/issues/160009
Root reason is lose
updateSelectionRect, on iPad iOS 14+, flutter_quill will crash