编辑表格就自动闪退,docker 容器也挂了,看了一下日志:
2021/08/21 00:02:50 [Recovery] 2021/08/21 - 00:02:50 panic recovered:
runtime error: slice bounds out of range [:14] with length 0
/usr/local/go/src/runtime/panic.go:98 (0x43d164)
/go/src/github.com/siyuan-note/siyuan-src/kernel/util/path.go:132 (0xf952b8)
/go/src/github.com/siyuan-note/siyuan-src/kernel/model/transaction.go:511 (0xf95121)
/go/src/github.com/siyuan-note/siyuan-src/kernel/model/transaction.go:497 (0xf94d24)
/go/src/github.com/siyuan-note/siyuan-src/kernel/model/transaction.go:62 (0xf91ca4)
/go/src/github.com/siyuan-note/siyuan-src/kernel/api/transaction.go:43 (0xff87a7)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/context.go:165 (0xf87e55)
/go/src/github.com/siyuan-note/siyuan-src/kernel/model/session.go:66 (0xf87e37)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/context.go:165 (0xd35bb5)
/go/pkg/mod/github.com/gin-contrib/sessions@v0.0.3/sessions.go:52 (0xd35b9d)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/context.go:165 (0xd33379)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/recovery.go:99 (0xd33360)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/context.go:165 (0xd296c9)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/gin.go:489 (0xd296af)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/gin.go:445 (0xd2919b)
/usr/local/go/src/net/http/server.go:2867 (0x7b1562)
/usr/local/go/src/net/http/server.go:1932 (0x7ac98c)
/usr/local/go/src/runtime/asm_amd64.s:1371 (0x47a3a0)
E 2021/08/21 00:03:14 transaction.go:41: begin tx failed: transaction has not been closed
F 2021/08/21 00:03:14 transaction.go:56: transaction failed: transaction has not been closed, transactions [[map[doOperations:[map[action:update data:<div data-node-id="20210820160207-ih7cizj" data-node-index="1" data-type="NodeTable" class="table" style="text-align: left; width: 50%; flex: 0 0 auto;"><grammarly-extension data-grammarly-shadow-root="true" style="position: absolute; top: 0px; left: 0px; pointer-events: none;" class="cGcvT"></grammarly-extension><grammarly-extension data-grammarly-shadow-root="true" style="position: absolute; top: 0px; left: 0px; pointer-events: none;" class="cGcvT"></grammarly-extension><div contenteditable="true" spellcheck="false"><table><thead><tr><th>col1</th><th>col2</th><th>col3</th></tr></thead><tbody><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table></div><div class="protyle-attr" contenteditable="false"></div></div> id:20210820160207-ih7cizj]]]]]
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于