Skip to content

archlinux下使用picgo上传图片会卡住很长时间 #524

Closed
@sunerpy

Description

声明:我已经仔细看过 文档FAQ、和搜索过已经关闭的 issues 后依然没有找到答案,所以才发了一个新的 issue。

问题类型

Bug Report

PicGo 的相关信息

aur/picgo-appimage 2.2.2-1 (+3 0.13) (Installed)

archlinux 5.7.2-arch1-1

问题重现

archlinux桌面KDE,使用的是yay工具从aur仓库下载的picgo-appimage 2.2.2-1
当使用picgo的GUI工具上传图片时,拖拽上传表现正常,时间很快,如下文

2020-06-21 01:12:30 [PicGo INFO] Before transform
2020-06-21 01:12:30 [PicGo INFO] Before upload
2020-06-21 01:12:30 [PicGo INFO] Uploading...
2020-06-21 01:12:30 [PicGo SUCCESS] 

但是在使用剪贴板上传时,经常会出现报错,需要重复选择上传才能成功,而且最要命的问题是在使用剪贴板上传时,整个KDE界面会卡住,此时无法切换到其他程序进行工作,表现为界面异常卡顿无法进行其他操作,直至二三十秒后才能上传成功,此时界面的卡顿也随之消失,系统运行恢复正常,网络没有问题,通过上面的拖拽上传可以发现速度是很快的,300M带宽,使用的阿里云OSS做的图床,只有剪贴板上传有此现象,日志如下:

2020-06-21 00:52:20 [PicGo ERROR] TypeError: Cannot read property 'width' of null
------Error Stack Begin------
TypeError: Cannot read property 'width' of null
    at /tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/plugins/transformer/path.js:20:28
    at async Promise.all (index 0)
    at async Object.handle (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/plugins/transformer/path.js:11:5)
    at async Lifecycle.doTransform (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/Lifecycle.js:51:9)
    at async Lifecycle.start (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/Lifecycle.js:19:13)
    at async PicGo.upload (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/PicGo.js:145:21)
-------Error Stack End-------
2020-06-21 00:52:26 [PicGo INFO] Before transform
2020-06-21 00:52:26 [PicGo INFO] Transforming...
2020-06-21 00:52:26 [PicGo WARN] failed
2020-06-21 00:52:26 [PicGo ERROR] TypeError: Cannot read property 'width' of null
------Error Stack Begin------
TypeError: Cannot read property 'width' of null
    at /tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/plugins/transformer/path.js:20:28
    at async Promise.all (index 0)
    at async Object.handle (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/plugins/transformer/path.js:11:5)
    at async Lifecycle.doTransform (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/Lifecycle.js:51:9)
    at async Lifecycle.start (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/Lifecycle.js:19:13)
    at async PicGo.upload (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/PicGo.js:145:21)
-------Error Stack End-------
2020-06-21 00:52:26 [PicGo ERROR] TypeError: Cannot read property 'width' of null
------Error Stack Begin------
TypeError: Cannot read property 'width' of null
    at /tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/plugins/transformer/path.js:20:28
    at async Promise.all (index 0)
    at async Object.handle (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/plugins/transformer/path.js:11:5)
    at async Lifecycle.doTransform (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/Lifecycle.js:51:9)
    at async Lifecycle.start (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/Lifecycle.js:19:13)
    at async PicGo.upload (/tmp/.mount_picgo.OFearz/resources/app.asar/node_modules/picgo/dist/src/core/PicGo.js:145:21)
-------Error Stack End-------
2020-06-21 00:52:35 [PicGo INFO] Before transform
2020-06-21 00:52:35 [PicGo INFO] Transforming...
2020-06-21 00:52:35 [PicGo INFO] Before upload
2020-06-21 00:52:35 [PicGo INFO] Uploading...
2020-06-21 00:53:00 [PicGo SUCCESS] 

功能请求


Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions