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

[Bug]: picgo.log文件过大 #935

Closed
3 tasks done
SuzumiyaAkizuki opened this issue Jul 3, 2022 · 6 comments
Closed
3 tasks done

[Bug]: picgo.log文件过大 #935

SuzumiyaAkizuki opened this issue Jul 3, 2022 · 6 comments
Assignees

Comments

@SuzumiyaAkizuki
Copy link

SuzumiyaAkizuki commented Jul 3, 2022

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

v2.3.1 beta 3

系统信息 | System Information

Windows

问题重现 | Bug reproduce

不敢重现,因为会瞬间把我的C盘塞满。
近期软件的异常行为有:使用Typora,阿里云OSS自动上传图片时,会经常卡在“Uploading”状态。此时使用任务管理器强制结束picgo任务,会显示上传完成。有时在任务栏托盘处试图打开picgo软件界面,会不显示任何东西。右键同样不显示任何东西。

相关日志 | Logs

2022-07-03 23:39:41 [PicGo ERROR] process error begin
------Error Stack Begin------
Error: EPIPE: broken pipe, write
at Socket._write (node:internal/net:55:25)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at Socket.Writable.write (node:internal/streams/writable:334:10)
at console.value (node:internal/console/constructor:289:16)
at console.warn (node:internal/console/constructor:368:26)
at consoleCall ()
at O (D:\Tools\PicGo\resources\app.asar\background.js:2:566541)
at process. (D:\Tools\PicGo\resources\app.asar\background.js:2:566966)
at process.emit (node:events:406:35)
-------Error Stack End-------
2022-07-03 23:39:41 [PicGo ERROR] process error end

这一段文字重复了很多次,文件有30G大。其中只有时间不同

@Molunerfinn
Copy link
Owner

可以删掉日志文件然后重启picgo。如果相册无法显示图片 大概就是相册文件损坏 需要一并删除picgo.db。更新最新beta版能修复相册文件损坏的问题。后续版本会限制日志文件大小

@Romic77
Copy link

Romic77 commented Jul 27, 2022

差点给我把硬盘吃完了. 吓死我了 吃了我30g

@Coooolfan
Copy link

相同问题 不敢尝试复现,在之前使用过七牛云的上传,还有typroa的图片右键选项里的上传图片选项和设置里的测试上传服务,别的没有用到过picgo。
版本是2.3.1.62 2.3.1-beta.4
log文件占用到了107GB

@Molunerfinn
Copy link
Owner

相同问题 不敢尝试复现,在之前使用过七牛云的上传,还有typroa的图片右键选项里的上传图片选项和设置里的测试上传服务,别的没有用到过picgo。 版本是2.3.1.62 2.3.1-beta.4 log文件占用到了107GB

应该是日志文件本身读写报错造成的死循环然后越写越大。后续版本会限制默认的日志文件大小,可以先删除这个文件再重启picgo就行。

@Molunerfinn
Copy link
Owner

下个版本,picgo.log这个日志文件大小会被限制为10MB,用户可以修改日志文件大小限制值,默认是10 (MB)。

同时,原本的PicGo GUI相关的日志(启动、非picgo-core相关的报错等)会被拆分到 picgo-gui-local.log ,同样有大小10MB的限制。

@Molunerfinn
Copy link
Owner

日志超过限制值之后,会销毁重建文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants