mate-desktop / mate-utils

GNU General Public License v2.0
39 stars 31 forks source link

mate-screenshot dialog crashes #357

Closed spartanhooah closed 11 months ago

spartanhooah commented 11 months ago

Expected behaviour

I can take and save a screenshot when hitting the PrtSc key.

Actual behaviour

A "Save Screenshot" window opens with the screenshot, but there's an error dialog in front. It says "Unable to save the screenshot to disk:

Fatal error in PNG image file: Write Error"

If I click the OK button on the error dialog, both it and the "Save Screenshot" window close. If I alt-tab, then the error dialog goes away, but the "Save Screenshot" window remains, although I can't interact with it. If I hit Esc on that window in this state, it will close.

Steps to reproduce the behavior

Hit the PrtSc key

MATE general version

1.26.2

Package version

I don't know what package this is. The Screenshot application seems to work fine, but it's not bound to PrtSc.

Linux Distribution

Fedora 37

Link to bugreport of your Distribution (requirement)

I don't know what this means.

raveit65 commented 11 months ago

PrtSc key What does that mean?

I don't know what package this is. The Screenshot application seems to work fine,

It's mate-utils

raveit65 commented 11 months ago

Hmm, the print key does nothing on my f38 box with =>mate-1.27 weird.....

raveit65 commented 11 months ago

But i do not get your error dialog.

spartanhooah commented 11 months ago

PrtSc is the Print Screen keyboard key on my laptop. I guess it's not always the same; my external keyboard has PrtScn.

raveit65 commented 11 months ago

The command was disabled at my box for some reasons. Now the print button works and i can save the screenshot. What's the output of this command? gsettings get org.mate.screenshot last-save-directory Does it link to a valid directory?

spartanhooah commented 11 months ago

The output is ''.

raveit65 commented 11 months ago

Try set a valid dir, eg. gsettings set org.mate.screenshot last-save-directory 'file:///media/Run-Progs/Schreibtisch' (this is mine).

spartanhooah commented 11 months ago

I set the value as file:///home/spartanhooah/Downloads but the error still happens.

raveit65 commented 11 months ago

And the gsettings get command shows the new dir?

spartanhooah commented 11 months ago

Yes.

raveit65 commented 11 months ago

Does it happen when you use mate-screenshot -i from terminal?

Ok, i need to boot a f37 box and i will try to reproduce the issue

spartanhooah commented 11 months ago

Yes, mate-screenshot 1 has the same problem.

raveit65 commented 11 months ago

Was there an update with libpng package in f37?

spartanhooah commented 11 months ago

dnf history list libpng only provides one line, from November 2022.

raveit65 commented 11 months ago

Or any other package which can be related? I guess mate-screenhot was working when you installed the system, or you can recall last time when it was working. It must be a reason that it stops working from one of the other day.

spartanhooah commented 11 months ago

I actually haven't tried to use it until today, so I have no idea if it used to work.

raveit65 commented 11 months ago

In an updated f37 VM mate-screenshot -i and saving the screenshot works fine.

spartanhooah commented 11 months ago

Huh. I wonder what else could be interfering.

raveit65 commented 11 months ago

Maybe add a new user account and try it there. Sometimes something in home dir can be cause such an issue.

spartanhooah commented 11 months ago

A new user has the same issue.

raveit65 commented 11 months ago

What graphic card are you using?

spartanhooah commented 11 months ago

Intel HD Graphics 4400 (integrated)

raveit65 commented 11 months ago

Do you have another box with different grahics? I am using amd Ryzen 5000 (integrated), but i don't think that this can cause the issue. I do not have another ideas what can cause the issue. Can you edit report header please? It has nothing to do with using a keyboard command.

spartanhooah commented 11 months ago

Title updated. I can try later today with a live USB, if I have time. Nothing else with Fedora actually installed, currently.

spartanhooah commented 11 months ago

I couldn't find a quick way to download the live installer for Fedora 37, so I updated my laptop to 38, and now the behavior is fixed.