Re: Crash on rotate image



Try applying the attached patch to src/JpegUtils.cs. It might give more
information.

Loz

On Thu, 2005-01-27 at 20:27 +0000, Matthew Kay wrote:
> Hi,
> 
> I just compiled 0.06 from source, despairing of this bug in the 0.03
> Debian package. When I try to rotate an image from the browse view, I
> get this crash:
> 
> Unhandled Exception: System.Exception: Exception of type
> System.Exception was thrown.
> in [0x00017] (at /usr/local/src/f-spot-0.0.6/src/JpegUtils.cs:58)
> JpegUtils:Transform (string,string,JpegUtils/TransformType)
> in [0x000bd] (at /usr/local/src/f-spot-0.0.6/src/RotateCommand.cs:50)
> RotateCommand:Execute (RotateCommand/Direction,Photo[])
> in [0x0001c] (at /usr/local/src/f-spot-0.0.6/src/MainWindow.cs:372)
> MainWindow:RotateSelectedPictures (RotateCommand/Direction)
> in [0x00002] (at /usr/local/src/f-spot-0.0.6/src/MainWindow.cs:1336)
> MainWindow:HandleRotate270Command (object,System.EventArgs)
> in <0x00069> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object_EventArgs
> (object,System.EventArgs)
> in <0x0012d> GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
> in <0x0005a> (wrapper native-to-managed)
> GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
> in (unmanaged) (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x00007> Gtk.Application:Run ()
> in <0x00007> Gnome.Program:Run ()
> in [0x00076] (at /usr/local/src/f-spot-0.0.6/src/main.cs:30) Driver:Main
> (string[])
> 
> Any ideas? Am I missing some crucial library?
> 
> M
> 
> _______________________________________________
> F-spot-list mailing list
> F-spot-list gnome org
> http://mail.gnome.org/mailman/listinfo/f-spot-list
-- 
Laurence Hygate <loz flower powernet co uk>
Index: JpegUtils.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/JpegUtils.cs,v
retrieving revision 1.2
diff -u -p -r1.2 JpegUtils.cs
--- JpegUtils.cs	30 Nov 2004 09:03:12 -0000	1.2
+++ JpegUtils.cs	27 Jan 2005 22:17:07 -0000
@@ -53,7 +53,9 @@ public class JpegUtils {
 	{
 		string error_message = null;
 
+		System.Console.WriteLine("source_path=" + source_path + ", destination_path=" + destination_path);
 		if (! f_transform_jpeg (source_path, destination_path, transform, ref error_message))
+			System.Console.WriteLine(error_message);
 			throw new Exception (error_message);
 	}
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]