ductientn97 / gphotoframe

Automatically exported from code.google.com/p/gphotoframe
Other
0 stars 0 forks source link

gphotoframe produces X Window System Error on LTSP client and does not run #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
LTSP=Linux Terminal Server Project  http://www.ltsp.org/

What steps will reproduce the problem?
1. Login to LTSP cient
2. Start gphotoframe
3.

What is the expected output? What do you see instead?
It is expected that gphotoframe starts, however it does not start at all.

What version of the product are you using? On what operating system?
GNOME Photo Frame 1.3, Ubuntu 10.04 LTS - Lucid Lynx with

Please provide any additional information below.

Shell output when running gphotoframe in the terminal

media@henderson:~$ gphotoframe 
The program 'gphotoframe' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 135 error_code 1 request_code 137 minor_code 1)
  (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.)
media@henderson:~$ 

Info about LTSP setup:

fhenderson@henderson:~$ ltsp-info
server information:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.2 LTS
Release:    10.04
Codename:   lucid

server packages:
ii ldm-server 2:2.1.1-0ubuntu2
un ldminfod <none>
un ltsp-client <none>
ii ltsp-docs 0.99+bzr105-1
ii ltsp-manager 0.0.2-0ubuntu3
ii ltsp-server 5.2.1-0ubuntu9
ii ltsp-server-standalone 5.2.1-0ubuntu9
un ltsp-utils <none>
ii ltspfs 0.6-0ubuntu1

packages in chroot: /opt/ltsp/i386
ii ldm 2:2.1.1-0ubuntu2
un ldm-themes <none>
ii ldm-ubuntu-theme 2:2.0.41
un ldm-ubuntu-themes <none>
ii ltsp-client 5.2.1-0ubuntu9
ii ltsp-client-core 5.2.1-0ubuntu9
ii ltspfsd 0.6-0ubuntu1
ii ltspfsd-core 0.6-0ubuntu1

found: /opt/ltsp/i386/etc/lts.conf

found: /var/lib/tftpboot/ltsp/i386/lts.conf

found image: /opt/ltsp/images/i386.img

fhenderson@henderson:~$ 

I found this problem and answer with LTSP and another python program:
http://sourceforge.net/mailarchive/forum.php?thread_name=b97aa91c-b6af-4674-a055
-65510657be04%40mail&forum_name=ltsp-discuss

I then tried running using the variable discussed and got back the following:

media@henderson:~$ LIBGL_ALWAYS_INDIRECT=1 gphotoframe

(gphotoframe:12415): Clutter-WARNING **: Unable to create a new stage: the glx 
backend does not support multiple stages.
/usr/lib/python2.6/dist-packages/gphotoframe/image/clutterimage.py:20: Warning: 
invalid (NULL) pointer instance
  self.image = self.embed = cluttergtk.Embed()
/usr/lib/python2.6/dist-packages/gphotoframe/image/clutterimage.py:20: Warning: 
g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  self.image = self.embed = cluttergtk.Embed()
Traceback (most recent call last):
  File "/usr/bin/gphotoframe", line 31, in <module>
    PhotoListStore()
  File "/usr/lib/python2.6/dist-packages/gphotoframe/liststore.py", line 33, in __init__
    self.photoframe = PhotoFrameFactory().create(self)
  File "/usr/lib/python2.6/dist-packages/gphotoframe/frame.py", line 24, in create
    photoframe = PhotoFrame(photolist)
  File "/usr/lib/python2.6/dist-packages/gphotoframe/frame.py", line 52, in __init__
    self._set_photoimage()
  File "/usr/lib/python2.6/dist-packages/gphotoframe/frame.py", line 120, in _set_photoimage
    self.photoimage = PhotoImageFactory().create(self)
  File "/usr/lib/python2.6/dist-packages/gphotoframe/image/__init__.py", line 12, in create
    return cls(photoframe)
  File "/usr/lib/python2.6/dist-packages/gphotoframe/image/clutterimage.py", line 23, in __init__
    self.stage.set_color(clutter.color_from_string(color))
AttributeError: 'NoneType' object has no attribute 'set_color'
media@henderson:~$ 

I hope this helps solve the problem. Please contact me if you need more 
info/help troubleshooting this.

Original issue reported on code.google.com by frederic...@gmail.com on 23 May 2011 at 7:36

GoogleCodeExporter commented 8 years ago
Can you refer to issue #74?

Original comment by yendo0206 on 23 May 2011 at 8:17

GoogleCodeExporter commented 8 years ago
Ok, I took a look at issue #74. What I found is that with python-clutter-gtk 
uninstalled that gphotoframe will start on the LTSP client.

With it reinstalled and the gconf key that you mentioned in #74 set I cannot 
start it on the LTSP client.

I have to wonder what is different as I can always start it on the server.

Original comment by frederic...@gmail.com on 23 May 2011 at 10:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I think this problem is due to clutter libs or OpenGL libs on Ubuntu, not to 
gphotoframe.

Did you try it?

http://code.google.com/p/gphotoframe/issues/detail?id=74#c3

> With it reinstalled and the gconf key that you mentioned in #74 set I cannot 
start it on the LTSP client.

Did the gphotoframe show some error messages?

Original comment by yendo0206 on 24 May 2011 at 1:43

GoogleCodeExporter commented 8 years ago
Hi!

I did not try the fix in 
http://code.google.com/p/gphotoframe/issues/detail?id=74#c3
It had dependency problems and wanted to uninstall ubuntu-desktop a major 
package, so I aborted the install.

The other than the error messages in the terminal that I posted before, I found 
in the messages log these:

May 23 13:36:35 henderson kernel: [22638.206889] gphotoframe[23713]: segfault 
at 6f687481 ip 02f34860 sp bfb17038 error 4 in 
libQtCore.so.4.6.2[2ed0000+276000]

May 25 16:29:48 henderson kernel: [32726.845851] gphotoframe[6648]: segfault at 
6f687481 ip 07192860 sp bfbbe4d8 error 4 in libQtCore.so.4.6.2[712e000+276000]

Original comment by frederic...@gmail.com on 26 May 2011 at 10:11

GoogleCodeExporter commented 8 years ago
>>>> media@henderson:~$ LIBGL_ALWAYS_INDIRECT=1 gphotoframe
>>>> 
>>>> (gphotoframe:12415): Clutter-WARNING **: Unable to create a new stage: the 
glx backend does not support multiple stages.
>>>> /usr/lib/python2.6/dist-packages/gphotoframe/image/clutterimage.py:20: 
Warning: invalid (NULL) pointer instance
>>>>   self.image = self.embed = cluttergtk.Embed()
>>>> /usr/lib/python2.6/dist-packages/gphotoframe/image/clutterimage.py:20: 
Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' 
failed
>>>>   self.image = self.embed = cluttergtk.Embed()

>>> With it reinstalled and the gconf key that you mentioned in #74 set I 
cannot start it on the LTSP client.

>> Did the gphotoframe show some error messages?

> The other than the error messages in the terminal that I posted before, I 
found in the messages log these:

Thank you for your report.
But, I can not reproduce the problem.

Original comment by yendo0206 on 30 May 2011 at 11:49

GoogleCodeExporter commented 8 years ago
I added a gconf key ui/disabel_clutter.
Could you try to disable clutter library support with gconf?

  gconftool-2 --type bool --set /apps/gphotoframe/ui/disable_clutter true

Original comment by yendo0206 on 6 Dec 2011 at 3:38