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

客户端设置 remote 后导出 PDF 时崩溃 #14

Open
3 tasks done
Clouder0 opened this issue Feb 26, 2024 · 0 comments
Open
3 tasks done

客户端设置 remote 后导出 PDF 时崩溃 #14

Clouder0 opened this issue Feb 26, 2024 · 0 comments

Comments

@Clouder0
Copy link
Contributor

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

在非 127.0.0.1 的地址上运行 kernel,并使用 --args --remote=... 启动本地客户端,在导出 PDF 时崩溃。

是因为在 kernel 中 ExportTempContent 这个 API 直接返回了 localhost 的 URL 给 Electron 前端,而在前端中加载导出窗口时,直接尝试加载该 url,而 kernel 又不在 127.0.0.1 运行,导致崩溃。

image

解决方案的话,可能需要在 kernel 中添加一个环境变量选项,设置 bindAddr 的实际地址,在各种 URL 拼接中不使用 127.0.0.1 而是这个 bindAddr.

eacec1974026727954fefc9a85612eb1 6395f9bd1a91e2aa6e91aa264a7bead7 eacec1974026727954fefc9a85612eb1 446aa51cdd1588716c247dd9bac80210

Expected result

正常启动。

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.0.0
- Operating System: Debian12 & Windows11
- Browser (if used):

Log file

见上文

More information

No response

@Clouder0 Clouder0 changed the title 客户端设置 remote url 导出时崩溃 客户端设置 remote 后导出 PDF 时崩溃 Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant