gcm callibrate fails with Error creating directory: File name too long

Bug #1078202 reported by Franck
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-color-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Trying to callibrate a webcam:

1) install shared-color-targets, else you fall into bug https://bugs.launchpad.net/ubuntu/+source/gnome-color-manager/+bug/643168
2) follow the steps to callibrate a camera:
- choose device
- click callibrate
- choose callibration quality
- choose target (I pick the default, IT8.7/2, as it is the target I have)
- choose profile title: I keep the default, "webcam"
- see the callibration fail with message: Error creating directory: File name too long

Running gnome-control-center from a terminal give a not much more informative message:
(gcm-calibrate:20956): Gcm-WARNING **: failed to calibrate: Error creating directory: File name too long

Revision history for this message
Franck (alci) wrote :

Forgot to mention the version I tested: this is gnome-color-manager 3.6.0-0ubuntu1 on Quantal.

Revision history for this message
petermolnar (petermolnar) wrote :

Affects me as well. Mint 14 RC with Unity, kernel 3.6.0-6.dmz.1-liquorix-amd64, any folder name fails for me with the same process.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-color-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Kevin Dalley (nereocystis) wrote :

This problem shows up when using ecryptfs.

kevin@nereocystis:~/src/gnome-color-manager-3.6.0$ ./src/gcm-calibrate --device cups-Officejet-6500-E709n
filename set to: /home/kevin/.config/gnome-color-manager/calibration/GCM - Hewlett Packard - HP Officejet 6500 e709n - dnssd___Officejet_206500_20E709n_20_5B09F0B5_5D__pdl-datastream__tcp_local_ (2013-02-10) [00-56-58] - 00-56-58

This filename is 178 characters long, but ecryptfs can only handle 143 characters.

https://bugs.launchpad.net/ecryptfs/+bug/344878

These lines in gcm_calibrate.c is the problem.
  file = g_file_new_for_path (filename);

  ret = g_file_make_directory_with_parents (file, NULL, error);

g_file_make_directory_with_parents fails.

Revision history for this message
Kevin Dalley (nereocystis) wrote :

The file name is actually gcm-calibrate.c

dash "-", not underscore "_".

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.