GNOME Bugzilla – Bug 512842
Fullscreen mode displays photos with a green tint, crash on exit
Last modified: 2008-04-11 13:55:21 UTC
Please describe the problem: F-spot on PPC still seems to be riddled with bugs at version 0.4.1 on Gentoo Linux. After managing to get it to compile with external dbus-sharp and dbus-glib-sharp I had a running program. When I try to do a slideshow of my photos, the get a green tint (which I heard is from endienness?). When I then hit esc, the program crashes. <b>The error</b> <code> zachary@localhost ~ $ f-spot Initializing Mono.Addins Starting new FSpot server Query: SELECT photos.id, photos.time, photos.uri, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time Query: SELECT photos.id, photos.time, photos.uri, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time libGL warning: 3D driver claims to not support visual 0x4b Query: SELECT photos.id, photos.time, photos.uri, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time (f-spot:17933): Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem (f-spot:17933): Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem Query: SELECT photos.id, photos.time, photos.uri, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time Reloading Query: SELECT photos.id, photos.time, photos.uri, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time item changed open uri = file:///home/zachary/Desktop/Photos/00009.jpg open uri = file:///home/zachary/Desktop/Photos/00009.jpg open uri = file:///home/zachary/Desktop/Photos/00009.jpg open uri = file:///home/zachary/Desktop/Photos/00009.jpg open uri = file:///home/zachary/Desktop/Photos/swing.JPG open uri = file:///home/zachary/Desktop/Photos/swing.JPG error checking orientation open uri = file:///home/zachary/Desktop/Photos/purple.JPG open uri = file:///home/zachary/Desktop/Photos/purple.JPG error checking orientation open uri = file:///home/zachary/Desktop/Photos/Ashley7.JPG open uri = file:///home/zachary/Desktop/Photos/Ashley7.JPG error checking orientation item changed open uri = file:///home/zachary/Desktop/Photos/00009.jpg open uri = file:///home/zachary/Desktop/Photos/00009.jpg (f-spot:17933): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference. item changed open uri = file:///home/zachary/Desktop/Photos/00009.jpg open uri = file:///home/zachary/Desktop/Photos/00009.jpg Inhibit screensaver for slideshow open uri = file:///home/zachary/Desktop/Photos/00009.jpg open uri = file:///home/zachary/Desktop/Photos/00009.jpg max texture size 1024 scaling to 0.3137255 scaling image 1024 x 768 item changed open uri = file:///home/zachary/Desktop/Photos/swing.JPG error checking orientation open uri = file:///home/zachary/Desktop/Photos/swing.JPG open uri = file:///home/zachary/Desktop/Photos/swing.JPG open uri = file:///home/zachary/Desktop/Photos/swing.JPG error checking orientation max texture size 1024 scaling to 1 Disposing 1 IsTexture 1 Done Disposing 1 item changed open uri = file:///home/zachary/Desktop/Photos/stripes.JPG error checking orientation open uri = file:///home/zachary/Desktop/Photos/stripes.JPG open uri = file:///home/zachary/Desktop/Photos/stripes.JPG open uri = file:///home/zachary/Desktop/Photos/stripes.JPG error checking orientation max texture size 1024 scaling to 1 Disposing 1 IsTexture 1 Done Disposing 1 item changed open uri = file:///home/zachary/Desktop/Photos/purple.JPG error checking orientation open uri = file:///home/zachary/Desktop/Photos/purple.JPG open uri = file:///home/zachary/Desktop/Photos/purple.JPG open uri = file:///home/zachary/Desktop/Photos/purple.JPG error checking orientation max texture size 1024 scaling to 1 Disposing 2 IsTexture 1 Done Disposing 2 UnInhibit screensaver The program 'f-spot' received an X Window System error. This probably reflects a bug in the program. The error was 'BadValue (integer parameter out of range for operation)'. (Details: serial 5990 error_code 2 request_code 143 minor_code 9) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) </code> Steps to reproduce: 1. Find a PPC machine with f-spot installed 2. Start f-spot 3. Click slideshow button 4. Watch for a bit to see the green pictures 5. Press escape to see the program crash Actual results: photos of little green aliens appeared, then a crash. Expected results: cute Baby pictures that didn't look like little aliens. When I hit the esc button expecting to return to browse mode from the slideshow. Does this happen every time? Yes Other information: OS: Gentoo PPC Computer: Power Mac G3 (B&W) Radeon 7000(VT) with 32MB VRAM Processor: PowerPC G4 400Mhz RAM: 756MB Versons of various programs: media-gfx/f-spot-0.4.1 sys-apps/dbus-1.0.2-r2 dev-dotnet/dbus-sharp-0.6.0 dev-dotnet/dbus-glib-sharp-0.4.1 dev-lang/mono-1.2.5.1-r1 sys-apps/hal-0.5.9.1-r3
*** Bug 518238 has been marked as a duplicate of this bug. ***
i reported Bug 518238 , i only get the green tint, no crash. so maybe the crash is a separate issue.
Other information: this is also filed at https://bugs.launchpad.net/ubuntu/+source/f-spot/+bug/194705 which has a screen shot http://launchpadlibrarian.net/12162538/f-spot.png
I am pretty sure the issue is when the Textures are created from the MemorySurface. Instead of Gl.GL_BGRA one needs Gl.GL_ARGB but unfortunately that does not exist :-( So I am not sure what to do about that (push around the components so that RGBA works?)
Created attachment 109025 [details] [review] fix According to the Apple website that I looked at, this should be the correct thing to do. But someone should try this on a little endian machine I guess.
the patch at comment #5 doesn't seem to causing any problem on i386.
the patch fixes the greenness for me on powerpc G4 on ubuntu hardy. thanks
fixed in r3814