[SOLVED]Screenshot failed to save

Post Reply
BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

[SOLVED]Screenshot failed to save

by BBmine » Post

So I was on HOMETOWN and wanted to take a group selfie. However, when I hit F12, it said "Failed to save screenshot './date-time.png' "

BTW I'm using Debian 9 Linux, and the portable AppImage client.

dawgdoc helped me solve this :D Thanks!
BBmine wrote:
dawgdoc wrote:When I first upgraded to MT 0.4.16 initially I could not save screenshots. I had to go into Advanced Settings and state a folder for them to be saved into.

Settings > Advanced Settings > Client > Graphics > Menus > Screenshot Folder.
Thank you so much!! I changed the path to /home/user and it works!!! :D *high five*
Last edited by BBmine on Wed Nov 08, 2017 21:12, edited 2 times in total.

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: Screenshot failed to save

by jas » Post

Is it trying to write the png to a read-only directory?

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Screenshot failed to save

by Linuxdirk » Post

Isn't it that those containers are very limited regarding storage access?

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Screenshot failed to save

by BBmine » Post

jas wrote:Is it trying to write the png to a read-only directory?
No, with the 0.5.0-dev client that I have actually installed on my PC, it saves fine, and the permissions are rw.
Linuxdirk wrote:Isn't it that those containers are very limited regarding storage access?
Not sure what you're trying to say.

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Screenshot failed to save

by Linuxdirk » Post

BBmine wrote:Not sure what you're trying to say.
Maybe your containered applicatioon does not have sufficient permissions to write to the actual storage of your system. Is there any more information in debug.txt?

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Screenshot failed to save

by BBmine » Post

Linuxdirk wrote:
BBmine wrote:Not sure what you're trying to say.
Maybe your containered applicatioon does not have sufficient permissions to write to the actual storage of your system. Is there any more information in debug.txt?
I see nothing in debug.txt about that.

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Screenshot failed to save

by Linuxdirk » Post

So debug.txt only says "Failed to save screenshot ..."?

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Screenshot failed to save

by BBmine » Post

Linuxdirk wrote:So debug.txt only says "Failed to save screenshot ..."?
No, that's what I see ingame. I can check again....This is all I get from the session where I try to take a screenie.

Code: Select all

2017-10-19 06:39:39: WARNING[Main]: Could not load icon file '/usr/share/icons/hicolor/128x128/apps/minetest.png'
2017-10-19 06:39:39: WARNING[Main]: Could not load icon file '/tmp/.mount_YvQzWu/usr/bin/../share/minetest/misc/minetest-xorg-icon-128.png'
2017-10-19 06:39:45: ACTION[Main]: Local map saving started, map will be saved at '/home/user/.minetest/worlds/server_hometownserver.com_30000'
2017-10-19 06:39:49: WARNING[Main]: Irrlicht: PNG warning: Incorrect bKGD chunk length

User avatar
TumeniNodes
Member
Posts: 2941
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: Screenshot failed to save

by TumeniNodes » Post

mmm, I had this happen in the past as well but, I cannot remember the specifics. I think it was related to my hard drive issues before it died. And, yes, for some reason my directories were becoming :read only

it would be a good idea to check your storage infos and permissions for directories, etc.. this is definitely a sign that "something" is going on, which may not be so obvious at the moment. and it's hardware related, not Minetest related.

wish I could help more but that is all I remember, and can suggest. good luck
A Wonderful World

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Screenshot failed to save

by Linuxdirk » Post

TumeniNodes wrote:and it's hardware related, not Minetest related.
Or because it is in a container that might not have write access to the screenshot save location.

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Screenshot failed to save

by BBmine » Post

@TumeniNodes my hard drive is only a few months old, and it's a Seagate (Yes, I know, SEAGATE! I am not kidding...) but it seems like the privs are good.

dawgdoc
Member
Posts: 260
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: Screenshot failed to save

by dawgdoc » Post

When I first upgraded to MT 0.4.16 initially I could not save screenshots. I had to go into Advanced Settings and state a folder for them to be saved into.

Settings > Advanced Settings > Client > Graphics > Menus > Screenshot Folder.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Screenshot failed to save

by BBmine » Post

dawgdoc wrote:When I first upgraded to MT 0.4.16 initially I could not save screenshots. I had to go into Advanced Settings and state a folder for them to be saved into.

Settings > Advanced Settings > Client > Graphics > Menus > Screenshot Folder.
Thank you so much!! I changed the path to /home/user and it works!!! :D *high five*

dawgdoc
Member
Posts: 260
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: Screenshot failed to save

by dawgdoc » Post

BBmine wrote:
dawgdoc wrote:.... I had to go into Advanced Settings and state a folder for them to be saved into.

Settings > Advanced Settings > Client > Graphics > Menus > Screenshot Folder.
Thank you so much!! I changed the path to /home/user and it works!!! :D *high five*
You are most welcome.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: Screenshot failed to save

by hajo » Post

dawgdoc wrote:screenshots. I had to go into Advanced Settings and state a folder for them to be saved into.
Settings > Advanced Settings > Client > Graphics > Menus > Screenshot Folder.
BTW, is there a way to specify that screenshots should be saved
to a directory inside the world-directory for the current server ?

Or maybe just change the filename for screenshots
(from screenshot_$DATE_$TIME.png to scr_$SERVER_$DATE_$TIME.png) ?

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Screenshot failed to save

by BBmine » Post

hajo wrote:
dawgdoc wrote:screenshots. I had to go into Advanced Settings and state a folder for them to be saved into.
Settings > Advanced Settings > Client > Graphics > Menus > Screenshot Folder.
BTW, is there a way to specify that screenshots should be saved
to a directory inside the world-directory for the current server ?

Or maybe just change the filename for screenshots
(from screenshot_$DATE_$TIME.png to scr_$SERVER_$DATE_$TIME.png) ?
Inside the world directory? What if you're connected to a public server?

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: Screenshot failed to save

by hajo » Post

BBmine wrote:
hajo wrote:screenshots .. saved to a directory inside the world-directory for the current server ?
Or maybe just change the filename for screenshots
Inside the world directory? What if you're connected to a public server?
If you turn on local-mapsaving, that data ends up in a local world-directory.
I want that to be used for screenshots too.

dawgdoc
Member
Posts: 260
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: Screenshot failed to save

by dawgdoc » Post

hajo wrote:
dawgdoc wrote:screenshots. I had to go into Advanced Settings and state a folder for them to be saved into.
Settings > Advanced Settings > Client > Graphics > Menus > Screenshot Folder.
BTW, is there a way to specify that screenshots should be saved
to a directory inside the world-directory for the current server ?

Or maybe just change the filename for screenshots
(from screenshot_$DATE_$TIME.png to scr_$SERVER_$DATE_$TIME.png) ?
From a quick look at advanced settings and looking at minetest.conf I could find no way to change the screenshot name or have paths to more than one location. My guess is that it would take a change in the engine code to enable what you are requesting. That may be an ideal suggestion to make on github for a feature.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

User avatar
TumeniNodes
Member
Posts: 2941
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: Screenshot failed to save

by TumeniNodes » Post

BBmine wrote:@TumeniNodes my hard drive is only a few months old, and it's a Seagate (Yes, I know, SEAGATE! I am not kidding...) but it seems like the privs are good.
But the question is, was this not set in your initial install of MTG, or did you change it?
if it worked fine before, and you did not make any changes, then how and why did it stop working?

I'm very glad there was a simple solution but, I see it as important to understand how the issue came about in the first place.
A Wonderful World

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Screenshot failed to save

by BBmine » Post

TumeniNodes wrote:
BBmine wrote:@TumeniNodes my hard drive is only a few months old, and it's a Seagate (Yes, I know, SEAGATE! I am not kidding...) but it seems like the privs are good.
But the question is, was this not set in your initial install of MTG, or did you change it?
if it worked fine before, and you did not make any changes, then how and why did it stop working?

I'm very glad there was a simple solution but, I see it as important to understand how the issue came about in the first place.
I had been using 0.5.0-dev, but once it got to the breaking changes, meaning I couldn't connect to servers on 0.4.16, I switched to the 0.4.16 stable AppImage. (I would've switched to the 0.4.16 install, but IDK if there's a way to replace the dev I compiled.)

dawgdoc
Member
Posts: 260
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: Screenshot failed to save

by dawgdoc » Post

TumeniNodes wrote:
BBmine wrote:@TumeniNodes my hard drive is only a few months old, and it's a Seagate (Yes, I know, SEAGATE! I am not kidding...) but it seems like the privs are good.
But the question is, was this not set in your initial install of MTG, or did you change it?
if it worked fine before, and you did not make any changes, then how and why did it stop working?

I'm very glad there was a simple solution but, I see it as important to understand how the issue came about in the first place.
For me screenshots stopped working when I upgraded from 0.4.15 to 0.4.16. I made no changes that I know of. I upgraded using the Stable PPA while on LinuxMint 18.2. I did not delete the 0.4.15, I just used the package manager (Synaptic) to install over it.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests