After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 512842 - Fullscreen mode displays photos with a green tint, crash on exit
Fullscreen mode displays photos with a green tint, crash on exit
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Browsing
0.4.x
Other All
: Normal normal
: ---
Assigned To: Geoff Norton
F-spot maintainers
: 518238 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-01-29 17:14 UTC by Zachary Dovel
Modified: 2008-04-11 13:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (644 bytes, patch)
2008-04-10 21:36 UTC, Benjamin Berg
committed Details | Review

Description Zachary Dovel 2008-01-29 17:14:37 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
Comment 1 Stephane Delcroix 2008-02-25 15:23:06 UTC
*** Bug 518238 has been marked as a duplicate of this bug. ***
Comment 2 sam tygier 2008-02-25 16:23:37 UTC
i reported Bug 518238 , i only get the green tint, no crash.

so maybe the crash is a separate issue.
Comment 3 sam tygier 2008-02-25 16:25:38 UTC
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
Comment 4 Benjamin Berg 2008-04-10 21:02:20 UTC
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?)
Comment 5 Benjamin Berg 2008-04-10 21:36:04 UTC
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.
Comment 6 Maxxer 2008-04-10 21:44:01 UTC
the patch at comment #5 doesn't seem to causing any problem on i386.
Comment 7 sam tygier 2008-04-10 22:15:54 UTC
the patch fixes the greenness for me on powerpc G4 on ubuntu hardy. thanks
Comment 8 Stephane Delcroix 2008-04-11 13:55:21 UTC
fixed in r3814