Comment 21 for bug 197650

Revision history for this message
Ion Bulgar (ionbulgar) wrote :

gDesklets still crashes and it has the same symptoms.

I received this error when I deployed my desklet from Ubuntu 8.04 to 8.10 :

"ubuntu@ubuntu:~$
==========================================================[08/05/08-20:59:51]===
=== Unhandled error! Something bad and unexpected happened. ===

[EXC]
in /usr/lib/gdesklets/shell/ItemBrowser.py: line 114 __on_activate_item
in /usr/lib/gdesklets/utils/Observable.py: line 45 update_observer
in /usr/lib/gdesklets/shell/plugins/DisplayBrowser/__init__.py: line 121 __on_activate
in /usr/lib/gdesklets/shell/plugins/gDeskletsClient/__init__.py: line 36 open_display
in /usr/lib/gdesklets/main/client.py: line 54 open_display
in /usr/lib/gdesklets/main/client.py: line 38 __send
in /usr/lib/gdesklets/utils/xdr.py: line 75 recv
[EXC]/usr/lib/gdesklets/utils/xdr.py

[---] 70 chunk = ""
[---] 71 while (True):
[---] 72 try:
[---] 73 length = ord(s.recv(1))
[---] 74 except:
[ERR]> 75 raise XDRError
[---] 76
[---] 77 if (length): chunk += s.recv(length)
[---] 78
[---] 79 flag = s.recv(1)
[---] 80 if (flag == _CONT): continue
[---] 81

ubuntu@ubuntu:~$
"

After step by step troubleshooting I found out my bug started because of the switch from Python 2.4 to Python 2.5 and was created because of a "text" tag in one of my svg canvas from my desklet:
Example:
  <text x="250" y="150"
        font-family="Verdana" font-size="55" fill="blue" >
    Hello, out there
  </text>

I think gdesklets crashes when it comes to </text> because with <text x="250" y="150" font-family="Verdana" font-size="55" fill="blue" /> it works even though it's empty.