Hello,

I found some more information:
https://bugs.launchpad.net/ubuntu/+source/f-spot/+bug/1189063
https://bugzilla.redhat.com/show_bug.cgi?id=903022

I improved the patch found at https://bugzilla.redhat.com/show_bug.cgi?id=903022, so there is at least an error message. But I did not found the exact reason for the problem, so it's just a work around. At least I can start f-spot now without problems.

Regards,
Hannes
diff -rNu f-spot-0.8.2-orig/src/Clients/MainApp/FSpot/ColorManagement.cs f-spot-0.8.2-fixed/src/Clients/MainApp/FSpot/ColorManagement.cs
--- f-spot-0.8.2-orig/src/Clients/MainApp/FSpot/ColorManagement.cs	2010-12-19 14:34:41.000000000 +0100
+++ f-spot-0.8.2-fixed/src/Clients/MainApp/FSpot/ColorManagement.cs	2014-04-22 15:34:22.328840552 +0200
@@ -60,15 +60,27 @@
 			if (Directory.Exists (path)) {
 				string[] IccColorProfilList = System.IO.Directory.GetFiles (path, "*.icc");
 				foreach (string ColorProfilePath in IccColorProfilList) {
-					Cms.Profile profile = new Cms.Profile (ColorProfilePath);
-					if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && profile.ProductDescription != null && !profs.ContainsKey (profile.ProductDescription))
-						profs.Add(profile.ProductDescription, profile);
+					try{
+						Cms.Profile profile = new Cms.Profile (ColorProfilePath);
+						if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && profile.ProductDescription != null && !profs.ContainsKey (profile.ProductDescription))
+							profs.Add(profile.ProductDescription, profile);
+						
+					}catch (ArgumentNullException ex) {
+						Console.WriteLine("IcmColorProfilList: ArgumentNullException caught:");
+						Console.WriteLine(ex.StackTrace);
+					}
 				}
 				string[] IcmColorProfilList = System.IO.Directory.GetFiles (path, "*.icm");
 				foreach (string ColorProfilePath in IcmColorProfilList) {
-					Cms.Profile profile = new Cms.Profile (ColorProfilePath);
-					if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && profile.ProductDescription != null && !profs.ContainsKey (profile.ProductDescription))
-						profs.Add(profile.ProductDescription, profile);
+					try{
+						Cms.Profile profile = new Cms.Profile (ColorProfilePath);
+						if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && profile.ProductDescription != null && !profs.ContainsKey (profile.ProductDescription))
+							profs.Add(profile.ProductDescription, profile);
+						
+					}catch (ArgumentNullException ex) {
+						Console.WriteLine("IcmColorProfilList: ArgumentNullException caught:");
+						Console.WriteLine(ex.StackTrace);
+					}
 				}
 				string[] DirList = System.IO.Directory.GetDirectories (path);
 					foreach (string dir in DirList)

Reply via email to