ivea
关注
73219 号成员,2021-11-15 13:57:53 加入
102
个人主页 浏览
2h1m
在线时长
  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-06 21:13

    接上个回复。经过验证,Teknik-Bold.ttf 文件中的字体许可说明过长导致了 sfnt 库的处理错误。

    对于安装了第三方字体的用户(特别如果是设计师等),该情况难免会出现,会严重影响用户体验,请尽快解决。

    该字体文件的下载地址附后,作为测试验证使用。

    链接: https://pan.baidu.com/s/1CtEupMtelBZa0VqxRc4K1A?pwd=u2mu

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-06 19:56

    3.1.19-dev3 也无法使用。我已经复现了相关的 bug,接之前的回复:

    单独测试 kernel/util/font.go 的代码,产生了 panic: runtime error: slice bounds out of range [26414:11380]

    具体错误信息如下:

    goroutine 6 [running]: github.com/ConradIrwin/font/sfnt.parseTableName({0x4abbe0?}, {0xc000516000, 0x12ca8, 0x12ca8}) C:/Users/user/go/pkg/mod/github.com/!conrad!irwin/font@v0.0.0-20240627033111-8567075b2bfe/sfnt/table_name.go:251 +0x3c6 github.com/ConradIrwin/font/sfnt.(*Font).parseTable(0xc00035a3e0, 0xc00040b170) C:/Users/user/go/pkg/mod/github.com/!conrad!irwin/font@v0.0.0-20240627033111-8567075b2bfe/sfnt/table.go:69 +0x17f github.com/ConradIrwin/font/sfnt.(*Font).Table(0xc00035a3e0, {0x0?}) C:/Users/user/go/pkg/mod/github.com/!conrad!irwin/font@v0.0.0-20240627033111-8567075b2bfe/sfnt/font.go:177 +0x49 github.com/ConradIrwin/font/sfnt.(*Font).NameTable(0x4f84f0?) C:/Users/user/go/pkg/mod/github.com/!conrad!irwin/font@v0.0.0-20240627033111-8567075b2bfe/sfnt/font.go:125 +0x19 my/siyuan-bug-test/util.loadFonts() E:/Test/siyuan-bug-test/util/font.go:122 +0x2ac my/siyuan-bug-test/util.LoadSysFonts() E:/Test/siyuan-bug-test/util/font.go:50 +0xb4 created by main.main in goroutine 1 E:/Test/siyuan-bug-test/main.go:12 +0x1a exit status 2

    具体是在处理 C:\WINDOWS\Fonts\Teknik-Bold.ttf 文件时发生的 panic。

    麻烦请修复下该 panic,以便可以正常使用,非常感谢!

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-06 19:23

    更多信息:具体发现在 3.1.15-dev2(即 pre-release v202412062347)开始,出现了问题(3.1.15-dev1 仍然没问题)

    进行 diff 后发现,在 kernel 主文件 main.go 增加了 go util.LoadSysFonts() 代码,用于系统字体列表的预加载(该代码在 util.SetBooted() 之后,所以在打印了 kernel booted 之后仍会退出);

    而在之前版本中并不会提前进行预加载,只会在进行 api 调用 /api/system/getSysFonts 时才会加载(猜测是在设置-编辑器-字体下拉框时加载,但是我这边下拉时的字体列表为空)。

    这是一个怀疑,但是在启动过程中有可能影响的代码我只发现了这个。请检查下相关代码,看看能不能解决问题,谢谢。

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-06 17:33

    最新进展,按照 @chensheng 的提示,我安装了 3.1.14 版本,然后成功启动了。

    之后 3.1.14 版本自动下载更新了 3.1.18 版本,结果就又启动不了了。

    所以现在能确认是 3.1.14 及之前的版本都没问题,问题出在 3.1.15 版本开始的新加代码中

    我看 3.1.15 的 release notes 中提到增加了 HarmonyOS 的支持,不知道是不是这个原因,能否排查下?

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-06 16:15

    你也有同样情况?3.1.15 之后引入了什么新的机制吗?哪里可以看到 release notes

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-06 16:13

    换设备那肯定没问题,不然所有人都报 bug 了。

    • 在 msconfig 关掉了所有系统服务做了测试,启动不起来;
    • 关闭了所有其他程序应用,启动不起来;
    • 在安全模式下,启动不起来;

    大概是排除了其他应用的服务的影响,还有什么可能性?

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-05 23:20

    windows 日志中的错误记录如下:

    故障存储段 ,类型 0 事件名称: AppHangB1 响应: 不可用 Cab ID: 0问题签名: P1: SiYuan.exe P2: 3.1.18.0 P3: 675110f5 P4: 6bee P5: 67246080 P6: P7: P8: P9: P10:
  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-05 21:53

    尝试了,放在了不同的目录,依然出现同样错误。

    然后下面是.config/app.log 的两次启动的日志(包括安装后的第一次启动)。同时,运行 booting kernel 的命令后同样也没有任何输出和反应。

    2025-01-05 13:46:52 app is packaged [true], command line args [E:\temp\SiYuan\SiYuan.exe] 2025-01-05 13:47:21 got kernel port [2932] 2025-01-05 13:47:21 ui version [3.1.18], booting kernel [E:\temp\SiYuan\resources\kernel\SiYuan-Kernel.exe --port 2932 --wd E:\temp\SiYuan\resources --workspace D:\Temp\Test\sy --lang zh_CN] 2025-01-05 13:47:21 booted kernel process [pid=17600, port=2932] 2025-01-05 13:47:21 checking kernel version 2025-01-05 13:47:22 got kernel version [3.1.18] 2025-01-05 13:47:24 windowStat [x=0, y=0, width=2048, height=1113], default [width=2048, height=1113], workArea [width=2560, height=1392] 2025-01-05 13:47:28 kernel [pid=17600, port=2932] exited with code [2] 2025-01-05 13:47:28 exited ui 2025-01-05 13:47:50 app is packaged [true], command line args [E:\temp\SiYuan\SiYuan.exe] 2025-01-05 13:47:50 got kernel port [2970] 2025-01-05 13:47:50 ui version [3.1.18], booting kernel [E:\temp\SiYuan\resources\kernel\SiYuan-Kernel.exe --port 2970 --wd E:\temp\SiYuan\resources] 2025-01-05 13:47:50 booted kernel process [pid=10404, port=2970] 2025-01-05 13:47:50 checking kernel version 2025-01-05 13:47:50 got kernel version [3.1.18] 2025-01-05 13:47:50 windowStat [x=0, y=0, width=2048, height=1114], default [width=2048, height=1113], workArea [width=2560, height=1392] 2025-01-05 13:47:50 kernel [pid=10404, port=2970] exited with code [2]
  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-05 20:00

    结尾的路径是初始化时设置的工作空间,是存在的。

    现在问题依然没有解决……内核启动还会和什么冲突?

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-04 18:34

    运行后没有反应,命令行没有输出,日志没有输出,未见有新进程产生

    E:\temp\SiYuan\resources\kernel>SiYuan-Kernel.exe --port 1242 --wd E:\temp\SiYuan\resources --workspace E:\temp\SiYuan\ws --lang zh_CNE:\temp\SiYuan\resources\kernel>
  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-04 12:34

    最新,以为解决了,还是没有解决,删除了全局配置重装后,确实可以启动了,进入了初始化的首界面(选定工作空间)。

    在选择了工作空间后(此时安装路径和工作空间都选择了不同的另一个路径),还是报同样的崩溃

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-04 12:28

    反馈下进展:重装后可以启动了

    应该是在删除全局配置后好了

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-04 11:18

    网络和防火墙检查下来没有问题(siyuan 的出入站策略没问题,本地地址没有任何 block),其他应用的本地 127.0.0.1 是可以连接的

  • 【已定位问题】:内核因未知原因退出 [code=2],v3.1.15/3.1.18 store 版 & 下载版

    2025-01-04 10:50

    这不是应用崩溃无法启动么?菜单也出现不了了。不过我在目录中找到 siyuan.log,不知是否有用,如下:

    I 2025/01/04 10:17:54 working.go:147:/ /\ ___ ___ /__/\ / /\ /__/ / /:/_ / /\ /__/| \ \:\ / /::\ \ \: / /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \: / /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\: /__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/:::::::: \ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/ \ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~ \__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \: /__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \: \__\/ \__\/ \__\/ \__\/ I 2025/01/04 10:17:54 runtime.go:87: kernel is booting:ver [3.1.15]arch [amd64]os [Microsoft Windows 11 Pro]pid [25784]runtime mode [prod]working directory [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.15.0_x64__1qfd3tsw4ngc2\app\resources]read only [false]container [std]database [ver=20220501]workspace directory [C:\Users\user\SiYuan] I 2025/01/04 10:17:54 conf.go:170: initialized language [zh_CN] based on device locale I 2025/01/04 10:17:54 conf.go:329: using Microsoft Store edition I 2025/01/04 10:17:54 runtime.go:139: use network proxy [system] I 2025/01/04 10:17:54 serve.go:209: kernel [pid=25784] http server [127.0.0.1:4644] is booting I 2025/01/04 10:17:54 blocktree.go:75: reinitialized database [C:\Users\user\SiYuan\temp\blocktree.db] I 2025/01/04 10:17:54 database.go:92: the database structure is changed, rebuilding database... I 2025/01/04 10:17:54 database.go:109: reinitialized database [C:\Users\user\SiYuan\temp\siyuan.db] I 2025/01/04 10:17:54 conf.go:856: database size [4.1 kB], tree/block count [0/0] I 2025/01/04 10:17:54 working.go:193: kernel booted I 2025/01/04 10:33:50 working.go:148:/ /\ ___ ___ /__/\ / /\ /__/ / /:/_ / /\ /__/| \ \:\ / /::\ \ \: / /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \: / /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\: /__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/:::::::: \ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/ \ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~ \__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \: /__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \: \__\/ \__\/ \__\/ \__\/ I 2025/01/04 10:33:50 runtime.go:87: kernel is booting:ver [3.1.18]arch [amd64]os [Microsoft Windows 11 Pro]pid [10804]runtime mode [prod]working directory [C:\Users\user\AppData\Local\Programs\SiYuan\resources]read only [false]container [std]database [ver=20220501]workspace directory [C:\Users\user\SiYuan] I 2025/01/04 10:33:50 conf.go:129: loaded conf [C:\Users\user\SiYuan\conf\conf.json] I 2025/01/04 10:33:50 runtime.go:139: use network proxy [system] I 2025/01/04 10:33:50 serve.go:209: kernel [pid=10804] http server [127.0.0.1:5323] is booting I 2025/01/04 10:33:50 working.go:513: database [C:\Users\user\SiYuan\temp\siyuan.db] size [4.1 kB] I 2025/01/04 10:33:50 working.go:513: database [C:\Users\user\SiYuan\temp\blocktree.db] size [4.1 kB] I 2025/01/04 10:33:50 working.go:513: database [C:\Users\user\SiYuan\temp\history.db] size [4.1 kB] I 2025/01/04 10:33:50 working.go:513: database [C:\Users\user\SiYuan\temp\asset_content.db] size [4.1 kB] I 2025/01/04 10:33:50 conf.go:846: tree/block count [0/0] I 2025/01/04 10:33:50 working.go:194: kernel booted