Bug 726386

Summary: gimp doesn't close file handle correctly
Product: [Fedora] Fedora Reporter: Thomas Meyer <thomas.mey>
Component: gimpAssignee: Nils Philippsen <nphilipp>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-15 16:18:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Thomas Meyer 2011-07-28 13:23:43 UTC
Description of problem:
open a image file on an external usb stick. close the image file via ctrl+w. don't close the gimp program!

try to unmount the external usb stick:
$ umount /media/A712-CF64/
Unmount failed: Cannot unmount because file system on device is busy

$ lsof |grep /media/A712-CF64
gimp-2.6   2128        thomas  cwd       DIR               8,32      4096        1 /media/A712-CF64
gimp-2.6   2128  2129  thomas  cwd       DIR               8,32      4096        1 /media/A712-CF64
gimp-2.6   2128  2130  thomas  cwd       DIR               8,32      4096        1 /media/A712-CF64
script-fu  2131        thomas  cwd       DIR               8,32      4096        1 /media/A712-CF64

Version-Release number of selected component (if applicable):
2.6.11
gimp.x86_64 - 2:2.6.11-16.fc15

How reproducible:
always

Steps to Reproduce:
1. open image on external usb stick
2. close image file via ctrl+w
3. try to unmount external usb stick
  
Actual results:
cannot unmount external drive, because the gimp process still seems to have the file opened.

Expected results:
external drive should be unmountable, as i closed the file in the gimp program

Additional info:

Comment 1 Nils Philippsen 2011-08-04 12:41:14 UTC
How exactly did you start gimp? Did you cd to the media drive, then launch it from the command line? Did you use your file manager (which one) to open this file with gimp?

Comment 2 Thomas Meyer 2011-08-04 20:12:56 UTC
Hi. I'm using XFCE and start gimp via the xfce-mouse-start-icon->graphic->GIMP.

then in GIMP I do File->Open and then choose the (not yet mounted?) external drive and open the file. then I close the file again via File->Close.

Comment 3 Nils Philippsen 2011-08-11 13:56:21 UTC
Hmm, I checked that with a freshly started GIMP instance and found that I could umount my external drive just well.

Can you reproduce this?

Did you have another GIMP instance running at the point when you clicked xfce-mouse-start-icon->graphic->GIMP? In this case it wouldn't have started a new process, but let the existing process (which might have had its working directory on your external drive, thus preventing it to be umounted) open a new window.

Comment 4 Thomas Meyer 2011-10-15 16:18:50 UTC
Sorry, i'm unable to reproduce this. now it seems to work! strange. sorry for the noise.