Molunerfinn / PicGo

:rocket:A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder
https://molunerfinn.com/PicGo/
MIT License
24.2k stars 2.24k forks source link

[Bug]: 软件上传图片时非常卡 #1195

Closed mervynlam closed 1 year ago

mervynlam commented 1 year ago

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

v2.3.1

系统信息 | System Information

Windows

问题重现 | Bug reproduce

使用typora搭配picgo,采用插入立刻上传的模式。 超过70%的情况会一直在上传中,拿不到结果,这个时候如果打开应用界面,操作会非常卡顿,操作反映迟缓。 其中多次这种情况发生时,关闭软件,软件会自动启动,然后马上就上传成功拿到结果。

相关日志 | Logs

以下是两次长时间(两次都是一分多钟,图片大概都是100+k)没拿到上传结果,关闭软件,然后软件自动启动,就马上拿到结果

2023-11-07 15:03:23 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\Mervyn\\Downloads\\image (9).jpg"]} 
2023-11-07 15:03:23 [PicGo INFO] [PicGo Server] upload files in list 
2023-11-07 15:03:23 [PicGo INFO] Before transform 
2023-11-07 15:03:23 [PicGo INFO] Transforming... Current transformer is [path] 
2023-11-07 15:03:46 [PicGo INFO] Before upload 
2023-11-07 15:03:46 [PicGo INFO] beforeUploadPlugins: renameFn running 
2023-11-07 15:03:46 [PicGo INFO] Uploading... Current uploader is [aliyun] 
2023-11-07 15:05:09 [PicGo INFO] [PicGo Server] shutdown 
2023-11-07 15:05:11 [PicGo INFO] detect second instance 
2023-11-07 15:05:11 [PicGo INFO] [PicGo Server] is listening at 36677 
2023-11-07 15:05:15 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\Mervyn\\Downloads\\image (9).jpg"]} 
2023-11-07 15:05:15 [PicGo INFO] [PicGo Server] upload files in list 
2023-11-07 15:05:15 [PicGo INFO] Before transform 
2023-11-07 15:05:15 [PicGo INFO] Transforming... Current transformer is [path] 
2023-11-07 15:05:15 [PicGo INFO] Before upload 
2023-11-07 15:05:15 [PicGo INFO] beforeUploadPlugins: renameFn running 
2023-11-07 15:05:15 [PicGo INFO] Uploading... Current uploader is [aliyun] 
2023-11-07 15:05:15 [PicGo SUCCESS] 
2023-11-07 15:10:11 [PicGo INFO] [PicGo Server] upload result https://mervyn-markdown-images.oss-cn-beijing.aliyuncs.com/202311071510522.jpg 
2023-11-07 15:11:58 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\Mervyn\\Downloads\\202211301111825.jpg"]} 
2023-11-07 15:11:58 [PicGo INFO] [PicGo Server] upload files in list 
2023-11-07 15:11:58 [PicGo INFO] Before transform 
2023-11-07 15:11:58 [PicGo INFO] Transforming... Current transformer is [path] 
2023-11-07 15:13:17 [PicGo INFO] [PicGo Server] shutdown 
2023-11-07 15:13:19 [PicGo INFO] [PicGo Server] is listening at 36677 
2023-11-07 15:13:23 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\Mervyn\\Downloads\\202211301111825.jpg"]} 
2023-11-07 15:13:23 [PicGo INFO] [PicGo Server] upload files in list 
2023-11-07 15:13:23 [PicGo INFO] Before transform 
2023-11-07 15:13:23 [PicGo INFO] Transforming... Current transformer is [path] 
2023-11-07 15:13:23 [PicGo INFO] Before upload 
2023-11-07 15:13:23 [PicGo INFO] beforeUploadPlugins: renameFn running 
2023-11-07 15:13:23 [PicGo INFO] Uploading... Current uploader is [aliyun] 
2023-11-07 15:13:23 [PicGo SUCCESS] 
Molunerfinn commented 1 year ago

可以更新 2.4.0 的beta 版本,2.3.1 存在一个日志写入死循环的问题。