Bug 540039 - gthumb will not import pictures from digital camera due to error Camera already in use
Summary: gthumb will not import pictures from digital camera due to error Camera alrea...
Keywords:
Status: CLOSED DUPLICATE of bug 552890
Alias: None
Product: Fedora
Classification: Fedora
Component: gthumb
Version: 12
Hardware: All
OS: Linux
high
urgent
Target Milestone: ---
Assignee: Behdad Esfahbod
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 543381 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-22 01:22 UTC by Zenith88
Modified: 2010-01-08 09:46 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-01-08 09:46:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zenith88 2009-11-22 01:22:23 UTC
Description of problem: gthumb will not import pictures from camera due to error:

An error occurred in the io-library ('Could not lock the device'): Camera is already in use.

Version-Release number of selected component (if applicable): Fedora 12


How reproducible:


Steps to Reproduce:
1. Attach camera (Olympus C740UZ in my case) to USB
2. Turn camera on
3. Select import photos with gthumb from the menu. Error is displayed:

An error occurred in the io-library ('Could not lock the device'): Camera is already in use.
  
Actual results:

Images not imported, Import button does nothing

Expected results:

You kidding? Images should be imported.

Additional info:

Google shows that this bug has been carried over from at least F9 to F10, F11 and now into F12. Hmm...

Comment 1 Andrea Musuruane 2009-11-24 06:56:27 UTC
I found this bug too with another USB camera - a Canon Exilim EX-Z110.

Comment 2 udo 2009-12-02 10:22:38 UTC
Ixus 860 here.

Comment 4 udo 2009-12-02 17:35:23 UTC
What can we do to help you fix the issue?

Comment 5 Zenith88 2009-12-02 18:53:59 UTC
Good luck, I moved onto Ubuntu. [waiving]

Comment 6 Matthias Clasen 2009-12-06 22:52:31 UTC
*** Bug 543381 has been marked as a duplicate of this bug. ***

Comment 7 Matthias Clasen 2009-12-06 22:55:00 UTC
This is unclear:

3. Select import photos with gthumb from the menu.

What menu are you talking about here, the panel menu, or gthumbs menu ? 
Was gthumb already running when you plugged the camera in ?
Did you not get a dialog asking you what to run, when you plugged the camera in ?

Comment 8 udo 2009-12-07 03:52:21 UTC
For me gthumb is not runnong and I cannot even select photos because of this error.

Comment 9 Andrea Musuruane 2009-12-07 09:09:52 UTC
(In reply to comment #7)
> This is unclear:
> 
> 3. Select import photos with gthumb from the menu.
> 
> What menu are you talking about here, the panel menu, or gthumbs menu ? 
> Was gthumb already running when you plugged the camera in ?
> Did you not get a dialog asking you what to run, when you plugged the camera in
> ?  

Matthias, step 3 refers to the pop up window you get upon inserting the USB device.

Comment 10 Zenith88 2009-12-07 23:40:06 UTC
Matthias,

What Andrea stated is correct, I think it is called 'Device Notifier' menu. The one which pops up when you attached a USB device, which has choices like browse with Dolphin, acquire images etc.

Comment 11 Jiri Cerny 2009-12-09 15:27:55 UTC
I have the same problem: gthumb is not importing photos. (even if I start it from the Application->Graphics menu and then do File->Import photos). I get the same error, that is 

An error occurred in the io-library ('Could not lock the device'): Camera is
already in use.

Additional information: If click with the right button on the icon of the camera at the Desktop and choose 'unmount' the icon disappears and gthumb photo import starts to work. 

Actually, it seems to me that the problem is not in the gthumb, but in the interaction of the gphoto2 library with gnome mounting the device (probably via gvfs?) See the following:

1. Attach the camera (icon on the desktop and 'Device Notifier' menu appear)
   Cancel in Device Notifier menu.

2. $ gphoto -l 
*** Error ***              
An error occurred in the io-library ('Could not lock the device'): Camera is already in use.
*** Error (-60: 'Could not lock the device') ***       

3. Right Click Camera Icon -> Unmount

4. $ gphoto -l 
There is 1 folder in folder '/'.                                               
 - store_00010001
There is 1 folder in folder '/store_00010001'. 
...

Comment 12 Axel Thimm 2009-12-21 20:12:01 UTC
I can confirm what Jiri wrote. At least there is a workaround - on my crowded desktop I didn't even see the icon until I read Jiri's comment, thanks!

Comment 13 Peter Brommer 2009-12-30 13:22:36 UTC
This bug is related to https://bugzilla.redhat.com/show_bug.cgi?id=533691

I plug in the media (either in the camera via USB or directly in the card reader), and it is automounted. As soon as I start gthumb either in the device notifier or by pressing the "Photos detected: Start gthumb?"-Button in Nautilus, the device is immediately unmounted.

Here's the log (at 14:19:30 I start gthumb):

Dec 30 14:18:22 rotezora kernel: sd 4:0:0:3: [sdf] 1986560 512-byte logical locks: (1.01 GB/970 MiB)
Dec 30 14:18:22 rotezora kernel: sd 4:0:0:3: [sdf] Assuming drive cache: write through
Dec 30 14:18:22 rotezora kernel: sd 4:0:0:3: [sdf] Assuming drive cache: write through
Dec 30 14:18:22 rotezora kernel: sdf: sdf1
Dec 30 14:19:32 rotezora gnome-keyring-daemon[1696]: removing removable location: /media/disk
Dec 30 14:19:32 rotezora gnome-keyring-daemon[1696]: no volume registered at: /media/disk

Gthumb then starts with the "Could not lock device" error mentioned above.

Comment 14 Hans de Goede 2010-01-08 09:46:24 UTC
Thanks for the bug report(s). I've hit this myself while working on:
https://fedoraproject.org/wiki/Features/BetterWebcamSupportF13
(some cameras double as a webcam)

And I've written a number of patches fixing this, see bug 552890. I hope to be able to release updated gvfs and gthumb packages fixing this soon, add your self to the CC of bug 552890 if you want to stay informed on the progress of fixing this.

*** This bug has been marked as a duplicate of bug 552890 ***


Note You need to log in before you can comment on or make changes to this bug.