-
Notifications
You must be signed in to change notification settings - Fork 169
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
Global search: some Chinese character cause CRASH #958
Comments
Hello @laoyuan, thank you for reaching out!! Would it be possible to get a snippet of any of the notes that cause the crash? |
@jleandroperez 童年的某个夜晚清晰地印在我的记忆里挥之不去:我站在河南省罗山县某村庄的池塘边,那是我的祖辈曾生活过的地方,我身边还站着许多人,有大人也有孩子。我们一起仰望着晴朗的夜空,一颗小星星缓缓划过黯淡的天际。 这是中国发射的第一颗人造卫星:东方红一号。那天是1970年4月25日,我七岁。 从“斯普特尼克号”(人类第一颗人造卫星)发射到太空已过13年,距离第一位宇航员飞出地球也已历时9年。而就在一周前,“阿波罗13号”从险象环生的登月行动中安全返航。 但这些我都不知道。当我凝视着那颗小小的、滑翔的星星时,我的心中充满了难以形容的好奇和向往。 而让我感同身受且记忆深刻的,是腹中的饥饿。那时,这片地区非常贫穷。饥饿伴随着每一个孩子。我比较幸运,因为我的脚上还有鞋子。站在我身边的小伙伴,大部分都是光着脚的,有些小脚丫还长着前一年冬天的冻疮,没能痊愈。在我身后,微弱的煤油灯从破茅草屋墙上的缝隙中透出昏黄的光线——这个村子直到20世纪80年代才通电。 站在旁边的大人说,这颗卫星可不像飞机,它是飞离地球之外的。那时的大气层还没有被工业粉尘和废气污染,繁星璀璨,银河系清晰可见。在我看来,满天星星的距离并不比那颗滑翔的小卫星远多少,所以我想它正飞向群星之间。我甚至担心,它在经过密集的恒星团时会撞上其中一颗。 |
Process: Simplenote [413] Date/Time: 2021-05-11 09:36:55.792 +0800 Time Awake Since Boot: 250 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Termination Signal: Illegal instruction: 4 Application Specific Information: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread |
We've previously fixed a crash happening during excerpts generation (Automattic/simplenote-ios#1064). I think the root cause is the same here, the crash happens when we try to calculate distance between two indexes of string (https://github.com/Automattic/simplenote-macos/blob/develop/Simplenote/String%2BSimplenote.swift#L152). Possible solutions may be to replace |
Still crash on 2.13 |
I have been looking into a similar crash on iOS Automattic/simplenote-ios#1403 I think these may be the same issue with how enumerateSubstrings work |
Another report via Twitter (thread starts here): https://twitter.com/Apple71171/status/1592036057042014208 |
I'm a heavy user from China. There're hundreds of notes by Chinese in my account. When I search for "的", which means "of", the most frequent word, Simplenote exits every time. Another account has only tens of notes, doing same thing dosn't exit.
Edition: 2.11
OS: 11.0.1 and 10.15.4
The text was updated successfully, but these errors were encountered: