Skip to content

The interface crashes after maximizing the window on Linux desktop #11218

Closed
@codetang-2417

Description

@codetang-2417

manjaro下使用,linux系统崩溃后重启,无法启动思源笔记

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

打开siyuan笔记后,将siyuan笔记更新到了3.0.12-1,然后linux系统出现问题没有保存工作就重启了。
重启后打开siyuan后不能进入工作界面,直接退出。
使用命令行打开siyuan,出现段错误后退出。且不会退出当前异常的siyan-kernel

$ siyuan-note --help                                                                                                                                                                ✔3s 
app is packaged [true], command line args [/usr/lib/electron30/electron, /usr/lib/siyuan-note/app, env ELECTRON_OZONE_PLATFORM_HINT=auto, , --help]
command line switch [/usr/lib/siyuan-note/app]
command line switch [env ELECTRON_OZONE_PLATFORM_HINT=auto]
command line switch []
command line switch [--help]
got kernel port [36781]
ui version [3.0.12], booting kernel [/usr/lib/siyuan-note/kernel/SiYuan-Kernel --port 36781 --wd /usr/lib/siyuan-note]
booted kernel process [pid=68687, port=36781]
checking kernel version
got kernel version [3.0.12]
network proxy [system]
zsh: segmentation fault (core dumped)  siyuan-note --help

打开失败后,搜索已有的siyuan进程将出现:

$ ps aux | grep SiYuan                                                                                                                                                                    
ling       68644  0.9  0.8 34593692 215228 pts/1 Sl   16:59   0:00 /usr/lib/electron30/electron --type=gpu-process --enable-crash-reporter=800fd682-96bf-4181-a123-6b02b5847adc,no_channel --user-data-dir=/home/ling/.config/SiYuan-Electron --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAEAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=3,i,6489962842040794812,12509560350905883248,262144 --enable-features=PlatformHEVCDecoderSupport,kWebSQLAccess --disable-features=SpareRendererForSitePerProcess --variations-seed-version
ling       68649  0.0  0.3 33910744 73660 pts/1  Sl   16:59   0:00 /usr/lib/electron30/electron --type=utility --utility-sub-type=network.mojom.NetworkService --lang=zh-CN --service-sandbox-type=none --enable-crash-reporter=800fd682-96bf-4181-a123-6b02b5847adc,no_channel --user-data-dir=/home/ling/.config/SiYuan-Electron --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,6489962842040794812,12509560350905883248,262144 --enable-features=PlatformHEVCDecoderSupport,kWebSQLAccess --disable-features=SpareRendererForSitePerProcess --variations-seed-version
ling       68687  1.2  0.3 2624524 84960 pts/1   Sl   16:59   0:01 /usr/lib/siyuan-note/kernel/SiYuan-Kernel --port 36781 --wd /usr/lib/siyuan-note

如果在打开失败后,再次打开,可以正常出现 工作空间被锁定 提示界面,且命令行内容如下

$ siyuan-note --help                                                                                                                                                            SEGV ✘  3s  
app is packaged [true], command line args [/usr/lib/electron30/electron, /usr/lib/siyuan-note/app, env ELECTRON_OZONE_PLATFORM_HINT=auto, , --help]
command line switch [/usr/lib/siyuan-note/app]
command line switch [env ELECTRON_OZONE_PLATFORM_HINT=auto]
command line switch []
command line switch [--help]
got kernel port [34017]
ui version [3.0.12], booting kernel [/usr/lib/siyuan-note/kernel/SiYuan-Kernel --port 34017 --wd /usr/lib/siyuan-note]
booted kernel process [pid=69047, port=34017]
checking kernel version
kernel [pid=69047, port=34017] exited with code [24]
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel version failed: net::ERR_CONNECTION_REFUSED
get kernel ver failed

尝试过重新安装新版本的siyuan,但都无法打开。

Expected result

siyaun可以正常打开

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.0.12
- Operating System: 6.1.85-1-MANJARO
- Browser (if used):

Log file

I 2024/05/01 17:10:08 process.go:76: active UI proc count [2]
I 2024/05/01 17:10:22 working.go:146: 
      ___                                   ___           ___           ___
     /  /\        ___           ___        /__/\         /  /\         /__/\
    /  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\
   /  /:/ /\    /  /:/        |  |:|        \  \:\     /  /:/\:\        \  \:\
  /  /:/ /::\  /__/::\        |  |:|    ___  \  \:\   /  /:/~/::\   _____\__\:\
 /__/:/ /:/\:\ \__\/\:\__   __|__|:|   /__/\  \__\:\ /__/:/ /:/\:\ /__/::::::::\
 \  \:\/:/~/:/    \  \:\/\ /__/::::\   \  \:\ /  /:/ \  \:\/:/__\/ \  \:\~~\~~\/
  \  \::/ /:/      \__\::/    ~\~~\:\   \  \:\  /:/   \  \::/       \  \:\  ~~~
   \__\/ /:/       /__/:/       \  \:\   \  \:\/:/     \  \:\        \  \:\
     /__/:/        \__\/         \__\/    \  \::/       \  \:\        \  \:\
     \__\/                                 \__\/         \__\/         \__\/
I 2024/05/01 17:10:22 runtime.go:74: kernel is booting:
    * ver [3.0.12]
    * arch [amd64]
    * os [arch]
    * pid [70968]
    * runtime mode [prod]
    * working directory [/usr/lib/siyuan-note]
    * read only [false]
    * container [std]
    * database [ver=20220501]
    * workspace directory [/home/ling/SiYuan]
I 2024/05/01 17:10:22 conf.go:124: loaded conf [/home/ling/SiYuan/conf/conf.json]
I 2024/05/01 17:10:22 runtime.go:123: use network proxy [system]
I 2024/05/01 17:10:22 serve.go:116: kernel [pid=70968] http server [127.0.0.1:46853] is booting
I 2024/05/01 17:10:22 ocr.go:275: tesseract-ocr enabled [ver=5.3.4, maxSize=2 MB, langs=osd]
I 2024/05/01 17:10:22 blocktree.go:509: read block tree [0 B] to [/home/ling/SiYuan/temp/blocktree], elapsed [0.00s]
I 2024/05/01 17:10:22 conf.go:848: database size [4.1 kB], tree/block count [0/0]
I 2024/05/01 17:10:22 working.go:192: kernel booted
I 2024/05/01 17:10:22 box.go:76: auto stat [trees=0, blocks=0, dataSize=49.16 kB, assetsSize=0 B]
I 2024/05/01 17:10:22 disk.go:33: disk usage [total=413.99 GB, used=316.02 GB, free=76.87 GB]
I 2024/05/01 17:10:23 pandoc.go:155: initialized built-in pandoc [ver=, bin=/home/ling/SiYuan/temp/pandoc/bin/pandoc]
I 2024/05/01 17:10:23 conf.go:1093: pandoc initialized, set pandoc bin to [/home/ling/SiYuan/temp/pandoc/bin/pandoc]
I 2024/05/01 17:10:23 serve.go:129: reverse proxy server [127.0.0.1:6806] is booting
W 2024/05/01 17:11:22 process.go:66: no active UI proc, continue to check from attached ui processes after 15s
W 2024/05/01 17:11:37 process.go:72: no active UI proc, continue to check from all processes after 15s
I 2024/05/01 17:11:53 process.go:76: active UI proc count [2]
W 2024/05/01 17:12:23 process.go:66: no active UI proc, continue to check from attached ui processes after 15s
W 2024/05/01 17:12:38 process.go:72: no active UI proc, continue to check from all processes after 15s
I 2024/05/01 17:12:53 process.go:76: active UI proc count [2]

More information

另外,使用windows打开同一个工作空间没有问题。重新安装了其他版本的siyuan(3.0.11-1),也不能正常打开。

Activity

codetang-2417

codetang-2417 commented on May 1, 2024

@codetang-2417
Author

问题解决,原因是~/.config/siyuan/windowState.json文件中的配置"isMaximized":true,这个选项更改为false后正常。

codetang-2417

codetang-2417 commented on May 1, 2024

@codetang-2417
Author

但是进入工作空间后,点击窗口最大化还是闪退了...

88250

88250 commented on May 2, 2024

@88250
Member

点窗口 最大化 界面就会崩溃吗?

self-assigned this
on May 2, 2024
changed the title [-]manjaro下使用,linux系统崩溃后重启,无法启动思源笔记[/-] [+]The interface crashes after maximizing the window on Linux desktop[/+] on May 2, 2024
added this to the 3.0.13 milestone on May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@codetang-2417

      Issue actions

        The interface crashes after maximizing the window on Linux desktop · Issue #11218 · siyuan-note/siyuan