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

引述块下删除列表触发状态异常 #4918

Closed
Strelitzia-Reginae-Aiton opened this issue May 16, 2022 · 7 comments
Closed

引述块下删除列表触发状态异常 #4918

Strelitzia-Reginae-Aiton opened this issue May 16, 2022 · 7 comments
Assignees
Labels
Milestone

Comments

@Strelitzia-Reginae-Aiton
Copy link

Strelitzia-Reginae-Aiton commented May 16, 2022

描述问题 Describe the problem

在Consice Light主题下,在引述块中建立任务列表/无序列表(此时引述块中只有任务列表/无序列表)后,删除任务列表/无序列表会导致引述块无法输入内容,一定时间后系统会自动报错(即使撤销也会发生)

期待的结果 Expected result

解决在引述块中删除内容后将引述块整体删除

截屏或者录屏演示 Screenshot or screen recording presentation

创建引述块并创建任务列表

image

清空引述块中的内容

image

一段时间后/撤销后系统提示

image

版本环境 Version environment

  • Version: 2.0.9
  • Operating system: Windows 10 家庭中文版 21H2 内部版本:19044.1706

日志文件 Log file

I 2022/05/16 18:05:04 sync.go:177: set sync interval to [16m]
I 2022/05/16 18:21:04 sync.go:177: set sync interval to [32m]
I 2022/05/16 18:44:06 sync.go:240: sync [cloud=47574, local=47575] uploaded in [0.82s]
I 2022/05/16 18:44:06 sync.go:248: set sync interval to [5m]
I 2022/05/16 18:49:07 sync.go:177: set sync interval to [8m]
E 2022/05/16 19:06:43 transaction.go:919: get node [20220330234403-iqox5pc] in tree [20220218115631-19yb9ef] failed
I 2022/05/16 19:06:45 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 19:06:45 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=141 kB]
I 2022/05/16 19:06:47 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.13s], tree stat [count=175, size=3.9 MB]
I 2022/05/16 19:06:47 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.22s], tree stat [count=8, size=841 kB]
I 2022/05/16 19:06:48 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [0.98s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 19:06:48 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.24s], tree stat [count=47, size=466 kB]
I 2022/05/16 19:06:48 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.09s], tree stat [count=23, size=547 kB]
I 2022/05/16 19:06:49 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.02s], tree stat [count=6, size=66 kB]
I 2022/05/16 19:06:49 index.go:191: resolving refs...
I 2022/05/16 19:06:49 index.go:318: resolved refs [195]
E 2022/05/16 19:07:06 transaction.go:823: not found previous block [id=]
I 2022/05/16 19:07:09 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 19:07:09 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=133 kB]
I 2022/05/16 19:07:10 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.06s], tree stat [count=175, size=3.9 MB]
I 2022/05/16 19:07:10 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.18s], tree stat [count=8, size=841 kB]
I 2022/05/16 19:07:11 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [0.99s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 19:07:12 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.22s], tree stat [count=47, size=466 kB]
I 2022/05/16 19:07:12 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.09s], tree stat [count=23, size=547 kB]
I 2022/05/16 19:07:12 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.02s], tree stat [count=6, size=66 kB]
I 2022/05/16 19:07:12 index.go:191: resolving refs...
I 2022/05/16 19:07:12 index.go:318: resolved refs [189]
E 2022/05/16 19:14:07 transaction.go:919: get node [20220516191142-41i1jjm] in tree [20220516191142-xtyyhmc] failed
I 2022/05/16 19:14:45 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 19:14:45 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=134 kB]
I 2022/05/16 19:14:46 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.11s], tree stat [count=176, size=3.9 MB]
I 2022/05/16 19:14:47 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.19s], tree stat [count=8, size=841 kB]
I 2022/05/16 19:14:48 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [1.02s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 19:14:48 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.23s], tree stat [count=47, size=466 kB]
I 2022/05/16 19:14:48 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.10s], tree stat [count=23, size=547 kB]
I 2022/05/16 19:14:48 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.02s], tree stat [count=6, size=66 kB]
I 2022/05/16 19:14:48 index.go:191: resolving refs...
I 2022/05/16 19:14:48 index.go:318: resolved refs [193]
I 2022/05/16 19:16:59 working.go:86:

I 2022/05/16 19:16:59 runtime.go:33: kernel is booting:
* ver [2.0.9]
* arch [amd64]
* runtime mode [prod]
* working directory [C:\Users\fohn\AppData\Local\Programs\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [C:\D\Siyuan, data 150 MB]
I 2022/05/16 19:16:59 serve.go:68: kernel is booting [http://127.0.0.1:6806]
I 2022/05/16 19:16:59 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 19:16:59 sync.go:93: sync before boot
I 2022/05/16 19:17:01 sync.go:251: sync [cloud=47575, local=47829, wroteFiles=7, transferSize=218 kB] uploaded in [1.30s]
I 2022/05/16 19:17:01 conf.go:493: pre-init database size [4.1 kB]
I 2022/05/16 19:17:01 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=134 kB]
I 2022/05/16 19:17:03 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.10s], tree stat [count=176, size=3.9 MB]
I 2022/05/16 19:17:03 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.22s], tree stat [count=8, size=841 kB]
I 2022/05/16 19:17:04 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [1.03s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 19:17:04 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.27s], tree stat [count=47, size=466 kB]
I 2022/05/16 19:17:05 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.15s], tree stat [count=23, size=547 kB]
I 2022/05/16 19:17:05 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.07s], tree stat [count=6, size=66 kB]
I 2022/05/16 19:17:05 index.go:318: resolved refs [193] in [131ms]
I 2022/05/16 19:17:05 conf.go:517: post-init database size [64 MB], tree stat [count=310, size=9.4 MB]
I 2022/05/16 19:17:05 working.go:122: kernel booted
E 2022/05/16 19:17:21 transaction.go:916: get node [20220516191252-nvgjsmy] in tree [20220516191142-xtyyhmc] failed
I 2022/05/16 19:17:23 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 19:17:23 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=134 kB]
I 2022/05/16 19:17:24 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.22s], tree stat [count=176, size=3.9 MB]
I 2022/05/16 19:17:25 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.19s], tree stat [count=8, size=841 kB]
I 2022/05/16 19:17:26 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [1.05s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 19:17:26 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.21s], tree stat [count=47, size=466 kB]
I 2022/05/16 19:17:26 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.10s], tree stat [count=23, size=547 kB]
I 2022/05/16 19:17:26 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.02s], tree stat [count=6, size=66 kB]
I 2022/05/16 19:17:26 index.go:318: resolved refs [193] in [135ms]
I 2022/05/16 19:17:52 sync.go:251: sync [cloud=47829, local=47839, wroteFiles=3, transferSize=49 kB] uploaded in [0.82s]

@Strelitzia-Reginae-Aiton
Copy link
Author

Siyuan v2.0.3与v2.0.9中均出现该问题

@88250
Copy link
Member

88250 commented May 16, 2022

请使用默认主题测试看看。

@Strelitzia-Reginae-Aiton
Copy link
Author

截屏演示

image

删除后
image

撤销后:
image

日志

E 2022/05/16 20:45:46 transaction.go:916: get node [20220516192223-rpc1tmc] in tree [20220516191142-xtyyhmc] failed
I 2022/05/16 20:45:49 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 20:45:49 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=134 kB]
I 2022/05/16 20:45:50 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.15s], tree stat [count=176, size=3.9 MB]
I 2022/05/16 20:45:51 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.19s], tree stat [count=8, size=841 kB]
I 2022/05/16 20:45:52 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [1.00s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 20:45:52 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.23s], tree stat [count=47, size=466 kB]
I 2022/05/16 20:45:52 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.09s], tree stat [count=23, size=547 kB]
I 2022/05/16 20:45:52 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.01s], tree stat [count=6, size=66 kB]
I 2022/05/16 20:45:52 index.go:318: resolved refs [194] in [130ms]
E 2022/05/16 20:46:56 transaction.go:820: not found previous block [id=]
E 2022/05/16 20:46:56 transaction.go:963: load tree [id=20220516204612-hyf2r7i] failed: block not found
I 2022/05/16 20:46:58 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 20:46:58 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=134 kB]
I 2022/05/16 20:46:59 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.13s], tree stat [count=176, size=3.9 MB]
I 2022/05/16 20:46:59 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.19s], tree stat [count=8, size=841 kB]
I 2022/05/16 20:47:01 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [1.00s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 20:47:01 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.23s], tree stat [count=47, size=466 kB]
I 2022/05/16 20:47:01 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.10s], tree stat [count=23, size=547 kB]
I 2022/05/16 20:47:01 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.02s], tree stat [count=6, size=66 kB]
I 2022/05/16 20:47:01 index.go:318: resolved refs [194] in [139ms]
E 2022/05/16 20:48:33 transaction.go:820: not found previous block [id=]
I 2022/05/16 20:49:06 sync.go:251: sync [cloud=47907, local=47993, wroteFiles=4, transferSize=67 kB] uploaded in [1.19s]
I 2022/05/16 20:49:36 database.go:72: reinitialized database [C:\D\Siyuan\temp\siyuan.db]
I 2022/05/16 20:49:36 index.go:181: rebuilt database for notebook [20220218115446-11rdqfn] in [0.03s], tree stat [count=12, size=134 kB]
I 2022/05/16 20:49:37 index.go:181: rebuilt database for notebook [20220217211224-gqda1yh] in [1.11s], tree stat [count=176, size=3.9 MB]
I 2022/05/16 20:49:37 index.go:181: rebuilt database for notebook [20220218001309-cvhz2il] in [0.19s], tree stat [count=8, size=841 kB]
I 2022/05/16 20:49:39 index.go:181: rebuilt database for notebook [20220218001325-4ncj3ni] in [1.07s], tree stat [count=38, size=3.4 MB]
I 2022/05/16 20:49:39 index.go:181: rebuilt database for notebook [20220218110059-6l0lf0b] in [0.35s], tree stat [count=47, size=466 kB]
I 2022/05/16 20:49:39 index.go:181: rebuilt database for notebook [20220224184133-0fbdwab] in [0.11s], tree stat [count=23, size=547 kB]
I 2022/05/16 20:49:39 index.go:181: rebuilt database for notebook [20220218111418-s65acwp] in [0.02s], tree stat [count=6, size=66 kB]
I 2022/05/16 20:49:39 index.go:318: resolved refs [194] in [131ms]

@88250
Copy link
Member

88250 commented May 16, 2022

麻烦录屏演示一下操作步骤,谢谢。

@Strelitzia-Reginae-Aiton
Copy link
Author

Strelitzia-Reginae-Aiton commented May 17, 2022

Untitled.mp4

在删除后,只要不与该界面交互,则不会产生错误,目前在删除后打开文档树、大纲、进入设置页面、打开其它文档均不会产生任何错误信息,直到与该页面发生交互(包括但不限于Ctrl+Z与鼠标左键单击)

@88250 88250 changed the title 关于引述块的bug 引述块下删除任务列表触发状态异常 May 17, 2022
@88250 88250 added the Bug label May 17, 2022
@88250
Copy link
Member

88250 commented May 17, 2022

感谢帮忙,已经确认问题,近期版本进行修复。

@88250 88250 added this to the 2.0.10 milestone May 17, 2022
@Strelitzia-Reginae-Aiton
Copy link
Author

在引述块中添加有序列表与无序列表后删除,同样会触发此类问题

@88250 88250 changed the title 引述块下删除任务列表触发状态异常 引述块下删除列表触发状态异常 May 17, 2022
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

3 participants