Skip to content

updateRecentDocCloseTime 异常 #16267

@TCOTC

Description

@TCOTC

有时候关闭的页签不对应任何一个文档(不知道怎么重现),关闭页签时会出现问题

I 2025/11/02 22:06:42 working.go:178: 
      ___                                   ___           ___           ___
     /  /\        ___           ___        /__/\         /  /\         /__/\
    /  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\
   /  /:/ /\    /  /:/        |  |:|        \  \:\     /  /:/\:\        \  \:\
  /  /:/ /::\  /__/::\        |  |:|    ___  \  \:\   /  /:/~/::\   _____\__\:\
 /__/:/ /:/\:\ \__\/\:\__   __|__|:|   /__/\  \__\:\ /__/:/ /:/\:\ /__/::::::::\
 \  \:\/:/~/:/    \  \:\/\ /__/::::\   \  \:\ /  /:/ \  \:\/:/__\/ \  \:\~~\~~\/
  \  \::/ /:/      \__\::/    ~\~~\:\   \  \:\  /:/   \  \::/       \  \:\  ~~~
   \__\/ /:/       /__/:/       \  \:\   \  \:\/:/     \  \:\        \  \:\
     /__/:/        \__\/         \__\/    \  \::/       \  \:\        \  \:\
     \__\/                                 \__\/         \__\/         \__\/
I 2025/11/02 22:06:42 runtime.go:93: kernel is booting:
    * ver [3.3.6]
    * arch [amd64]
    * os [Microsoft Windows 11 Pro]
    * pid [25348]
    * runtime mode [prod]
    * working directory [C:\Users\Admin\AppData\Local\Programs\SiYuan\resources]
    * read only [false]
    * container [std]
    * database [ver=20220501]
    * workspace directory [D:\Datafile\SiYuan]
I 2025/11/02 22:06:42 conf.go:129: loaded conf [D:\Datafile\SiYuan\conf\conf.json]
I 2025/11/02 22:06:42 conf.go:423: repo key [58bfb2cbea2a0bf08591bfa53bef2fbf635f282f]
I 2025/11/02 22:06:42 conf.go:515: OpenAI API enabled
    userAgent=SiYuan/3.3.6 std/windows
    baseURL=https://api.siliconflow.cn/v1
    timeout=600s
    proxy=
    model=deepseek-ai/DeepSeek-V3
    maxTokens=0
    temperature=1.0
    maxContexts=2
I 2025/11/02 22:06:42 runtime.go:145: use network proxy [system]
I 2025/11/02 22:06:42 serve.go:208: kernel [pid=25348] http server [0.0.0.0:14112] is booting
I 2025/11/02 22:06:42 working.go:555: database [D:\Datafile\SiYuan\temp\siyuan.db] size [868.21 MB]
I 2025/11/02 22:06:42 working.go:555: database [D:\Datafile\SiYuan\temp\blocktree.db] size [59.75 MB]
I 2025/11/02 22:06:42 working.go:555: database [D:\Datafile\SiYuan\temp\history.db] size [186.85 MB]
I 2025/11/02 22:06:42 working.go:555: database [D:\Datafile\SiYuan\temp\asset_content.db] size [2.98 MB]
I 2025/11/02 22:06:42 pandoc.go:146: built-in pandoc [ver=3.1.1, bin=D:\Datafile\SiYuan\temp\pandoc\bin\pandoc.exe]
I 2025/11/02 22:06:42 conf.go:1177: pandoc initialized, set pandoc bin to [D:\Datafile\SiYuan\temp\pandoc\bin\pandoc.exe]
I 2025/11/02 22:06:42 sync.go:146: sync before boot
I 2025/11/02 22:06:42 sync.go:1732: got cloud latest [device=f404ac12-c865-4481-9a96-99853c695ffd/windows, id=e6567ca783c8acbf58941deed7db5ed993bd34b6, files=10385, size=3.62 GB, created=2025-11-02 20:29:25], cost [152.2193ms]
I 2025/11/02 22:06:42 repository.go:1344: boot get sync cloud files elapsed [0.15s]
I 2025/11/02 22:06:43 fixedport.go:35: fixed port service [0.0.0.0:6806] is running
I 2025/11/02 22:06:43 repo.go:660: walk data [files=10385] cost [914.9392ms]
I 2025/11/02 22:06:43 ref.go:134: got local full latest [files=10385, size=2.2 MB], cost [7.9435ms]
I 2025/11/02 22:06:43 ref.go:93: updated local latest to [device=f404ac12-c865-4481-9a96-99853c695ffd/windows, id=2a702d7b6dee88f81941bee57af3adfbd20782d1, files=10385, size=3.62 GB, created=2025-11-02 22:06:43], full latest [size=2.2 MB], cost [12.587ms]
I 2025/11/02 22:06:43 repository.go:1310: boot index repo elapsed [1.12s]
I 2025/11/02 22:06:43 conf.go:913: tree/block count [2281/178029]
I 2025/11/02 22:06:43 working.go:224: kernel booted
I 2025/11/02 22:06:43 font.go:57: loaded system fonts [174] in [242ms]
I 2025/11/02 22:06:43 cron.go:61: cron job [[RefreshRhyResultJob]] executed
I 2025/11/02 22:06:44 box.go:77: auto stat [trees=2281, blocks=178029, dataSize=3.62 GB, assetsSize=3.53 GB]
I 2025/11/02 22:06:44 disk.go:33: disk usage [total=454.8 GB, used=305.64 GB, free=149.16 GB]
W 2025/11/02 22:06:50 elevator_windows.go:101: not found elevator [C:\Users\Admin\AppData\Local\Programs\SiYuan\resources\elevator\elevator-amd64.exe]
W 2025/11/02 22:19:48 transaction.go:113: op tx [5483ms]
W 2025/11/02 22:36:57 elevator_windows.go:101: not found elevator [C:\Users\Admin\AppData\Local\Programs\SiYuan\resources\elevator\elevator-amd64.exe]
I 2025/11/02 22:56:41 broadcast.go:444: close broadcast session in channel [snippets-plugin-sync] with status code 1001: 
W 2025/11/02 23:06:57 elevator_windows.go:101: not found elevator [C:\Users\Admin\AppData\Local\Programs\SiYuan\resources\elevator\elevator-amd64.exe]
E 2025/11/02 23:20:04 file.go:1994: list doc tree failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\收集箱\2025年 11月: The system cannot find the path specified.
W 2025/11/02 23:36:57 elevator_windows.go:101: not found elevator [C:\Users\Admin\AppData\Local\Programs\SiYuan\resources\elevator\elevator-amd64.exe]
W 2025/11/02 23:47:24 transaction.go:113: op tx [3476ms]
W 2025/11/02 23:48:58 transaction.go:113: op tx [4063ms]
W 2025/11/02 23:49:11 transaction.go:113: op tx [4518ms]
I 2025/11/03 00:00:35 broadcast.go:444: close broadcast session in channel [snippets-plugin-sync] with status code 1001: 
I 2025/11/03 00:06:44 box.go:77: auto stat [trees=2284, blocks=179215, dataSize=3.62 GB, assetsSize=3.53 GB]
I 2025/11/03 00:06:44 disk.go:33: disk usage [total=454.8 GB, used=305.81 GB, free=148.99 GB]
W 2025/11/03 00:06:57 elevator_windows.go:101: not found elevator [C:\Users\Admin\AppData\Local\Programs\SiYuan\resources\elevator\elevator-amd64.exe]
E 2025/11/03 00:29:07 file.go:1994: list doc tree failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\网页剪藏: The system cannot find the file specified.
W 2025/11/03 00:30:38 theme.go:176: stat install theme README.md failed: CreateFile D:\Datafile\SiYuan\conf\appearance\themes\theme-sample\README.md: The system cannot find the file specified.
I 2025/11/03 00:30:41 push_reload.go:85: reload plugins [codeChanges=[siyuan-hqweay-go], dataChanges=[], removes=[]]
W 2025/11/03 00:33:11 transaction.go:113: op tx [64539ms]
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
E 2025/11/03 00:33:11 tree.go:119: load tree [/20250719204519-bb08ura/20251103002907-490ydbn.sy] failed: open D:\Datafile\SiYuan\data\20230616211653-mofivww\20250719204519-bb08ura\20251103002907-490ydbn.sy: The system cannot find the file specified.
I 2025/11/03 00:33:22 broadcast.go:444: close broadcast session in channel [snippets-plugin-sync] with status code 1001: 
E 2025/11/03 00:33:27 logging.go:219: PANIC RECOVERED: interface conversion: interface {} is nil, not string
	C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:792 (0x7ff6e906abf1)
	gopanic: fn()
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/runtime/iface.go:275 (0x7ff6e90074e4)
	panicdottypeE: panic(&TypeAssertionError{iface, have, want, ""})
D:/CodeProjects/siyuan/kernel/api/storage.go:296 (0x7ff6eb09e5ad)
	updateRecentDocCloseTime: rootID := arg["rootID"].(string)
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:273 (0x7ff6eafaa997)
	CheckAuth: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
C:/Users/Admin/go/pkg/mod/github.com/gin-contrib/[email protected]/sessions.go:54 (0x7ff6eb0d9324)
	Serve.Sessions.func3: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
C:/Users/Admin/go/pkg/mod/github.com/gin-contrib/[email protected]/handler.go:99 (0x7ff6eb01ea98)
	(*gzipHandler).Handle: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/server/serve.go:885 (0x7ff6eb0ddd27)
	jwtMiddleware: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/server/serve.go:867 (0x7ff6eb0ddb5e)
	corsMiddleware.func1: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:436 (0x7ff6eafab96f)
	Recover: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:413 (0x7ff6eafab914)
	Timing: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:494 (0x7ff6eafabfac)
	ControlConcurrency: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:689 (0x7ff6ea028e0f)
	(*Engine).handleHTTPRequest: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:643 (0x7ff6ea0287a9)
	(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
C:/Users/Admin/go/pkg/mod/golang.org/x/[email protected]/http2/h2c/h2c.go:125 (0x7ff6ea00e892)
	h2cHandler.ServeHTTP: s.Handler.ServeHTTP(w, r)
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:3301 (0x7ff6e9368fad)
	serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2102 (0x7ff6e9347a64)
	(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/runtime/asm_amd64.s:1700 (0x7ff6e9073700)
	goexit: BYTE	$0x90	// NOP

E 2025/11/03 00:33:28 logging.go:219: PANIC RECOVERED: interface conversion: interface {} is nil, not string
	C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:792 (0x7ff6e906abf1)
	gopanic: fn()
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/runtime/iface.go:275 (0x7ff6e90074e4)
	panicdottypeE: panic(&TypeAssertionError{iface, have, want, ""})
D:/CodeProjects/siyuan/kernel/api/storage.go:296 (0x7ff6eb09e5ad)
	updateRecentDocCloseTime: rootID := arg["rootID"].(string)
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:273 (0x7ff6eafaa997)
	CheckAuth: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
C:/Users/Admin/go/pkg/mod/github.com/gin-contrib/[email protected]/sessions.go:54 (0x7ff6eb0d9324)
	Serve.Sessions.func3: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
C:/Users/Admin/go/pkg/mod/github.com/gin-contrib/[email protected]/handler.go:99 (0x7ff6eb01ea98)
	(*gzipHandler).Handle: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/server/serve.go:885 (0x7ff6eb0ddd27)
	jwtMiddleware: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/server/serve.go:867 (0x7ff6eb0ddb5e)
	corsMiddleware.func1: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:436 (0x7ff6eafab96f)
	Recover: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:413 (0x7ff6eafab914)
	Timing: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
D:/CodeProjects/siyuan/kernel/model/session.go:494 (0x7ff6eafabfac)
	ControlConcurrency: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:192 (0x7ff6ea01bccd)
	(*Context).Next: c.handlers[c.index](c)
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:689 (0x7ff6ea028e0f)
	(*Engine).handleHTTPRequest: c.Next()
C:/Users/Admin/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:643 (0x7ff6ea0287a9)
	(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
C:/Users/Admin/go/pkg/mod/golang.org/x/[email protected]/http2/h2c/h2c.go:125 (0x7ff6ea00e892)
	h2cHandler.ServeHTTP: s.Handler.ServeHTTP(w, r)
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:3301 (0x7ff6e9368fad)
	serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2102 (0x7ff6e9347a64)
	(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
C:/Users/Admin/go/pkg/mod/golang.org/[email protected]/src/runtime/asm_amd64.s:1700 (0x7ff6e9073700)
	goexit: BYTE	$0x90	// NOP

I 2025/11/03 00:33:52 broadcast.go:444: close broadcast session in channel [snippets-plugin-sync] with status code 1001: 
W 2025/11/03 00:34:22 transaction.go:113: op tx [71123ms]
I 2025/11/03 00:34:45 broadcast.go:444: close broadcast session in channel [snippets-plugin-sync] with status code 1001: 
W 2025/11/03 00:36:57 elevator_windows.go:101: not found elevator [C:\Users\Admin\AppData\Local\Programs\SiYuan\resources\elevator\elevator-amd64.exe]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions