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]: 特定情况前台GUI崩溃时,PicList后台异常CPU占用 #186

Closed
3 tasks done
MIKU-N opened this issue Apr 8, 2024 · 6 comments
Closed
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@MIKU-N
Copy link

MIKU-N commented Apr 8, 2024

前置阅读 | Pre-reading

PicList的版本 | PicList Version

v.2.8.0

系统信息 | System Information

Windows

问题重现 | Bug reproduce

在进行图片上传时,有概率性的会造成GUI崩溃,在GUI崩溃后,PicList后台并未退出,而会造成异常高的CPU占用
此问题在上传较大GIF图片时大概率复现
image
此问题可通过手动结束PicList后台进程暂时解决
复现的操作录制
动画

相关日志 | Logs

piclist.log日志

2024-04-08 13:34:35 [PicList INFO] [PicList Server] is listening at 36677 of 0.0.0.0 
2024-04-08 13:34:35 [PicList INFO] File server is running, http://localhost:36699 
2024-04-08 13:36:23 [PicList INFO] Remove exif info. 
2024-04-08 13:36:28 [PicList INFO] Before transform 
2024-04-08 13:36:28 [PicList INFO] Transforming... Current transformer is [path] 
2024-04-08 13:36:28 [PicList INFO] Before upload 
2024-04-08 13:36:28 [PicList INFO] beforeUploadPlugins: renameFn running 
2024-04-08 13:36:28 [PicList INFO] create rename window 
2024-04-08 13:36:29 [PicList INFO] rename window ready, wait for rename... 
2024-04-08 13:36:31 [PicList INFO] Uploading... Current uploader is [sftpplist] 
2024-04-08 13:36:35 [PicList INFO] Remove exif info. 
2024-04-08 13:36:41 [PicList INFO] Before transform 
2024-04-08 13:36:41 [PicList INFO] Transforming... Current transformer is [path] 
2024-04-08 13:36:41 [PicList INFO] Before upload 
2024-04-08 13:36:41 [PicList INFO] beforeUploadPlugins: renameFn running 
2024-04-08 13:36:41 [PicList INFO] create rename window 

崩溃时的piclist-gui-local.log日志

2024-04-08 13:29:30 [PicList ERROR] 
------Error Stack Begin------
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
-------Error Stack End------- 
2024-04-08 13:36:41 [PicList ERROR] 
------Error Stack Begin------
TypeError: Object has been destroyed
    at IpcMainImpl.<anonymous> (C:\Program Files\PicList\resources\app.asar\index.js:8:2095837)
    at IpcMainImpl.emit (node:events:525:35)
    at EventEmitter.<anonymous> (node:electron/js2c/browser_init:2:80713)
    at EventEmitter.emit (node:events:513:28)
-------Error Stack End------- 
@MIKU-N MIKU-N added the bug Something isn't working label Apr 8, 2024
@MIKU-N
Copy link
Author

MIKU-N commented Apr 8, 2024

另外,根据过往的issues,我怀疑 #117 的问题与此有关,如果属实那么自v2.6.7起这个问题就一直存在了

@Kuingsmile
Copy link
Owner

Kuingsmile commented Apr 8, 2024

我用gif图片试试复现 另外 这个较大GIF 具体要多大的

@MIKU-N
Copy link
Author

MIKU-N commented Apr 8, 2024

我用gif图片试试复现 另外 这个较大GIF 具体要多大的

image
复现时所用的GIF大小

@MIKU-N
Copy link
Author

MIKU-N commented Apr 9, 2024

我用gif图片试试复现 另外 这个较大GIF 具体要多大的

指正一下,看起来不是图片格式与大小的问题,而是上传后出现重命名提示框时,取消重命名并立即重新上传的步骤会造成GUI崩溃。这个操作复现的成功率接近100%。GUI日志始终是相同的报错

2024-04-09 21:54:46 [PicList ERROR] 
------Error Stack Begin------
TypeError: Object has been destroyed
    at IpcMainImpl.<anonymous> (C:\Program Files\PicList\resources\app.asar\index.js:8:2098523)
    at IpcMainImpl.emit (node:events:525:35)
    at EventEmitter.<anonymous> (node:electron/js2c/browser_init:2:80713)
    at EventEmitter.emit (node:events:513:28)
-------Error Stack End------- 

另外这个情况似乎并不会造成后台进程的结束,反而可以让进程叠叠乐,如图是我制造了三次崩溃的结果(
image

@Kuingsmile
Copy link
Owner

Kuingsmile commented Apr 10, 2024

懂了 复现出来了 应该是上一张由于网络原因什么的还在上传过程中 又启动了新的上传 旧的重命名对象被销毁了导致的冲突 我去试着修复下

@MIKU-N
Copy link
Author

MIKU-N commented Apr 10, 2024

懂了 复现出来了 应该是上一张由于网络原因什么的还在上传过程中 又启动了新的上传 旧的重命名对象被销毁了导致的冲突 我去试着修复下

应该是网络原因导致的上传较慢,因为我这边服务器用的腾讯云新加坡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants