martyr-deepin / deepin-screenshot

Deprecated (migrated into deepin-screen-recorder after v20), consider create and maintain your own fork if you love it.
https://www.deepin.org/original/deepin-screenshot/
GNU General Public License v3.0
346 stars 102 forks source link

Can't save anywhere #81

Closed janetat closed 4 years ago

janetat commented 4 years ago

When I save an image, it gives me an error: Save failed. Please save it in your home directory. How to solve it?

BLumia commented 4 years ago

any details? like which distro, save to where, full log or other informations that may helps?

janetat commented 4 years ago

My distro is: Linux xx-PC 4.15.0-30deepin-generic #31 SMP Fri Nov 30 04:29:02 UTC 2018 x86_64 GNU/Linux deepin 15.11

前几天截图还可以工作。但是现在无论保存在哪里(指定文件夹或者桌面),都提示“保存失败。请保存在当前用户目录下”。

另外,请问一下deepin-screenshot的日志在哪里看?/var/log/里面找不到

BLumia commented 4 years ago

~/.cache/deepin/deepin-screenshot/deepin-screenshot.log

不过不清楚你用的会不会是 flatpak 之类的版本,可以先确认一下(个人不推荐使用 flatpak 版),以及 log 内容和你终端直接执行对应的可执行程序所得到的输出是一样的。

janetat commented 4 years ago
  1. 我的应用是在深度的应用商店安装的,版本为4.2.2-1
  2. 日志如下:

    2020-01-09, 12:59:46.156 [Warning] [ 0] QImage::scaled: Image is a null image 2020-01-09, 12:59:46.156 [Warning] [ 0] QImage::pixel: coordinate (1941,306) out of range 2020-01-09, 12:59:46.156 [Warning] [ 0] QPixmap::scaled: Pixmap is a null pixmap 2020-01-09, 12:59:46.156 [Warning] [ 0] QPixmap::scaled: Pixmap is a null pixmap 2020-01-09, 12:59:46.166 [Warning] [ 0] QImage::scaled: Image is a null image 2020-01-09, 12:59:46.166 [Warning] [ 0] QImage::pixel: coordinate (1942,306) out of range 2020-01-09, 12:59:46.166 [Warning] [ 0] QPixmap::scaled: Pixmap is a null pixmap 2020-01-09, 12:59:46.166 [Warning] [ 0] QPixmap::scaled: Pixmap is a null pixmap 2020-01-09, 12:59:46.173 [Warning] [ 0] QImage::scaled: Image is a null image 2020-01-09, 12:59:46.173 [Warning] [ 0] QImage::pixel: coordinate (1942,306) out of range 2020-01-09, 12:59:46.173 [Warning] [ 0] QPixmap::scaled: Pixmap is a null pixmap 2020-01-09, 12:59:46.173 [Warning] [ 0] QPixmap::scaled: Pixmap is a null pixmap 2020-01-09, 12:59:46.203 [Debug ] [ 0] MainWindow mouseReleaseEvent 2020-01-09, 12:59:46.991 [Debug ] [ 0] subToolBar shape: "saveList" 2020-01-09, 12:59:46.991 [Debug ] [ 0] show shapesWidget 2020-01-09, 12:59:46.995 [Debug ] [ 0] hoveredShape type: "" 2020-01-09, 12:59:48.381 [Debug ] [ 0] ConfigSettings: "save" "save_op" QVariant(uint, 2) 2020-01-09, 12:59:48.381 [Debug ] [ 0] release event !!! 2020-01-09, 12:59:48.381 [Debug ] [ 0] keyboardGrabbed: true 2020-01-09, 12:59:48.381 [Debug ] [ 0] ShapesWidget saveActionTriggered! 2020-01-09, 12:59:48.381 [Debug ] [ 0] clear selected!!! 2020-01-09, 12:59:48.382 [Debug ] [ 0] hoveredShape type: "" 2020-01-09, 12:59:48.385 [Debug ] [ 0] hoveredShape type: "" 2020-01-09, 12:59:48.482 [Debug ] [ 0] shotCurrentImg shotFullScreen 2020-01-09, 12:59:48.482 [Debug ] [ 0] release event !!! 2020-01-09, 12:59:48.482 [Debug ] [ 0] keyboardGrabbed: true 2020-01-09, 12:59:51.203 [Debug ] [ 0] ConfigSettings: "common" "default_savepath" QVariant(QString, "/home/allin/Desktop")

BLumia commented 4 years ago

终端执行

which deepin-screenshot

dpkg -S `which deepin-screenshot`

输出是?

janetat commented 4 years ago
  1. /usr/bin/deepin-screenshot
  2. deepin-screenshot: /usr/bin/deepin-screenshot
janetat commented 4 years ago
  1. 解决问题了。但是不知道原因。
  2. 我是三个屏幕的,两个外接。
  3. 在显示那里我调整了屏幕的位置,就可以截图了。
janetat commented 4 years ago

和#79 的问题类似。

BLumia commented 4 years ago

:joy: 好,顺便 v20 版本中截图和录屏合并成一个项目了(合并到了录屏中),不知道这个问题会不会随之处理(我没多屏可用),可以期待一下。