Skip to content
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

容器块在顶层内容删除后撤销导致状态异常 #4342

Closed
whuwangyong opened this issue Mar 21, 2022 · 8 comments
Closed

容器块在顶层内容删除后撤销导致状态异常 #4342

whuwangyong opened this issue Mar 21, 2022 · 8 comments
Assignees
Labels
Milestone

Comments

@whuwangyong
Copy link

whuwangyong commented Mar 21, 2022

今天晚上连续遇到3次状态异常,受不了了。花费3小时反复测试,终于稳定复现出来:
容器块状态异常2

复现步骤(以列表块为例):

  1. 创建一个列表,并添加子项
  2. 剪切子项的父item(需使用Ctrl X快捷键,鼠标右键剪切不会触发)
  3. 用退格键删除父item
  4. Ctrl Z 撤销,触发异常

试了各种列表和引述块,都这样。推测容器块都有这个问题。(但是标题块行为不同,剪切时直接整个块消失,没有留下一个可以用退格键删除的空块。标题块的这个特性不知道是哪个版本加的。我记得1.7.x版本,标题块这样操作也会状态异常。
更新:标题块是叶子块,不是容器块。标题块id是下面内容的parent_id。我把这里混淆了。)

日志

不用说了,都是这一行:

E 2022/03/22 00:28:33 transaction.go:945: update data is nil

相关issue

#4310
#4170

@88250 88250 self-assigned this Mar 21, 2022
@88250 88250 added the Bug label Mar 21, 2022
@whuwangyong
Copy link
Author

whuwangyong commented Mar 21, 2022

补充:

在状态异常后,有时点击重建索引无法退出程序,一直卡住,只能杀进程。所幸数据未丢。
正在清理过时索引

微信截图_20220322003623

@88250
Copy link
Member

88250 commented Mar 21, 2022

我这里能够重现了,非常感谢!

重建索引的问题稍微进行了调整,下个版本请继续帮忙留意。

老铁早点休息,晚安。

@88250 88250 added this to the 1.9.3 milestone Mar 21, 2022
@88250
Copy link
Member

88250 commented Mar 21, 2022

按照楼主老铁的思路,补充引述块和超级块的重现步骤:

issue

issue

@Kitsuta-le
Copy link

太牛了哥!

@whzecomjm
Copy link

感谢 今天写笔记因为这个原因快崩溃了

@Nafish-Narang
Copy link

我也遇到了这个问题!但是没有摸索出复现方法,期待1.9.3版本的表现!感谢你!

@mangost
Copy link

mangost commented Apr 10, 2022

类似(?)异常在删除隐藏的标题后撤销时也会稳定重复出现,如下。

文档:

第一行
# 第二行
第三行
  1. 点击第二行(H1)以隐藏第三行。
  2. 用鼠标选中第二行所在块和下方的空白块
  3. Backspace。

出现

状态异常 v1.9.5

#4422

@88250
Copy link
Member

88250 commented Apr 11, 2022

@mangost 升级到最新版试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants