Skip to content

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

@Clouder0

Description

@Clouder0

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

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