Attempt to save and replace a .png file results in error fstat()

Bug #835712 reported by Sam_
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-utils
Fix Released
Medium
gnome-utils (Ubuntu)
Fix Committed
Medium
Unassigned

Bug Description

Reproducable.
Make a screenshot of an empty gedit window via shortcut alt+print.
Save the file to e.g. folder 'Images', name the file e.g. test-1.
Make another screenshot, save the file to the same directory with the same file name.
The attempt to replace the file results in a dialog (translated from german (screenshot)):
Error during investigation of file /tmp/gnome-screenshot.<insert_number>/screenshot.png with fstat(): File or directory not found.

So actually it doesn't state the correct file name test-1, although it mentions it in the replacement dialog. (video)

## There is no problem to save and replace text files with same title.
## There is no problem to save screenshots, created with ccsm plugin, which have the same title and replacing it.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-screenshot 3.1.5-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-9.14-generic 3.0.3
Uname: Linux 3.0.0-9-generic x86_64
NonfreeKernelModules: wl
Architecture: amd64
Date: Sat Aug 27 23:43:23 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110423)
ProcEnviron:
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
SourcePackage: gnome-utils
UpgradeStatus: Upgraded to oneiric on 2011-08-01 (26 days ago)

Revision history for this message
Sam_ (and-sam) wrote :
Revision history for this message
Sam_ (and-sam) wrote :
Revision history for this message
Sam_ (and-sam) wrote :
Revision history for this message
Sam_ (and-sam) wrote :
Changed in gnome-utils:
importance: Unknown → Medium
status: Unknown → New
Sam_ (and-sam)
description: updated
Changed in gnome-utils (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Sam_ (and-sam) wrote :

Just tested, still the case with:
gnome-screenshot:
  Installed: 3.2.0-0ubuntu1
  Candidate: 3.2.0-0ubuntu1
  Version table:
 *** 3.2.0-0ubuntu1 0

Make a screenshot from terminal window only (via shortcut), name it test-1, save it to a folder.
Repeat the procedure, it refuses to replace the first test-1.

Changed in gnome-utils:
status: New → Confirmed
Revision history for this message
Sam_ (and-sam) wrote :

Still the case in precise, although it doesn't mention the fstat() in error dialog, but it still doesn't recognize the screenshot.
Tested with same procedure as in #5. (screenshot from error-dialog)

~$ apt-cache policy gnome-screenshot
gnome-screenshot:
  Installed: 3.2.1-0ubuntu1
  Candidate: 3.2.1-0ubuntu1
  Version table:
 *** 3.2.1-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Sam_ (and-sam) wrote :

Dialog on Precise from comment #6 belongs to bug 871135
The fstat() error is only with orig. reported from Oneiric.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is fixed in git and will be fixed in the next ubuntu version

Changed in gnome-utils (Ubuntu):
status: Triaged → Fix Committed
Changed in gnome-utils:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.