spe throws exception when using Index tab from the Sidebar

Bug #204751 reported by Patryk Bajer
2
Affects Status Importance Assigned to Milestone
spe (Ubuntu)
Fix Released
Undecided
Stani

Bug Description

Binary package hint: spe

got something like this:

  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/evtmgr.py", line 442, in handleEvent
    self.publisher.sendMessage(topic=self.topic, data=event)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub.py", line 796, in sendMessage
    self.__topicTree.sendMessage(aTopic, message, onTopicNeverCreated)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub.py", line 483, in sendMessage
    deliveryCount += node.sendMessage(message)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub.py", line 321, in sendMessage
    listener(message)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/evtmgr.py", line 480, in deliverEvent
    self.eventHandler(event) # Perform the call as wxWindows would
  File "/usr/share/spe/_spe/sm/wxp/smdi.py", line 546, in onFrameIdle
    self.panel.onIdle()
  File "/usr/share/spe/_spe/Parent.py", line 1064, in onIdle
    child.idle()
  File "/usr/share/spe/_spe/Child.py", line 781, in idle
    self.updateSidebar()
  File "/usr/share/spe/_spe/Child.py", line 860, in updateSidebar
    self.updateSidebarTab[tab]()
  File "/usr/share/spe/_spe/Child.py", line 990, in updateIndex
    self.index.Update()
  File "/usr/share/spe/_spe/sm/wxp/realtime.py", line 397, in Update
    self._update(self,recursively=False)
  File "/usr/share/spe/_spe/sm/wxp/realtime.py", line 105, in _update
    self._updateItem(child,index)
  File "/usr/share/spe/_spe/sm/wxp/realtime.py", line 327, in _updateItem
    Ctrl._updateItem(self,item,index)
  File "/usr/share/spe/_spe/sm/wxp/realtime.py", line 118, in _updateItem
    action[0](*arguments)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 4557, in SetItemData
    return _controls_.ListCtrl_SetItemData(*args, **kwargs)
TypeError: in method 'ListCtrl_SetItemData', expected argument 3 of type 'long'

I am using the latest hardy beta. I think it is related to the Index tab (sidebar). Repro is very easy:

1. Create empty file
2. Switch sidebar to the Index tab
3. Start typing some class, eg.:
class Hello:
  def __init__

Exception should be thrown.

Revision history for this message
Patryk Bajer (bayger) wrote :

If you have any further questions feel free to ask. I'll try to help.

Revision history for this message
Stani (stani) wrote :

Thanks for reporting this bug. I will look into it and try to fix it for Hardy. Could you use SPE from subversion? Then you can help testing the fix.

Changed in spe:
assignee: nobody → stani
status: New → In Progress
Revision history for this message
Patryk Bajer (bayger) wrote :

Sure. I see that the same problem exists with SVN version. What should I do next? :)

Revision history for this message
Stani (stani) wrote : Re: [Bug 204751] Re: spe throws exception when using Index tab from the Sidebar

On Sat, Mar 22, 2008 at 10:00 PM, bayger <email address hidden> wrote:
> Sure. I see that the same problem exists with SVN version. What should I
> do next? :)
I have prepared a fix but I have no access to the svn server at the
moment. I will upload as soon as I can and update you about it. Please
test it immediately as otherwise the fix won't be in Hardy, which is
in post beta already.

Revision history for this message
Stani (stani) wrote :

Hi Bayger,
I've uploaded a fix for this bug to subversion. Please test as soon as possible.
Thanks,
Stani

Revision history for this message
Patryk Bajer (bayger) wrote :

Hi Stani,
It works now flawlessly! Thanks for the fix. :) Let me know if you need any more help with SPE.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package spe - 0.8.4.e-1

---------------
spe (0.8.4.e-1) unstable; urgency=medium

  [ Stefano Canepa ]
  * New upstream release, from the upstream SPE-0.8.4.e-wx2.6.1.0.tar.gz
    tarball (includes Stefano's setup.py and spe.sgml - Piotr).
  * debian/control:
    - Added docbook-to-man to Build-Depends-Indep.
    - Added myself to Uploaders.
  * debian/rules:
    - Added creation of manpage.

  [ Stani ]
  * Closes LP: #74572, #75893, #86159, #105036, #106666, #204751

  [ Emilio Pozuelo Monfort ]
  * debian/control:
    - New Maintainer, Python Applications Packaging Team.
      Closes: #379374.
    - Added myself to Uploaders.
    - Section -> devel.
    - Require debhelper >= 5.0.51 for dh_icons.
    - Require python-central >= 0.5.6 as required by policy.
    - Depend on winpdb, as we have removed it from the package.
    - Depend on pychecker >= 0.8.17-5 to get pychecker2 too.
    - Move python-doc from Recommends to Suggests, as it's in contrib.
      Closes: #452476.
    - Added Homepage, VCS-Browser and VCS-Svn fields.
    - Conform with Debian Policy 3.7.3
  * debian/compat:
    - Update to 5.
  * debian/menu:
    - Change section according to the new menu layout.
    - Improved title and added longtitle.
    - Use spe.xpm instead of spe.png
  * debian/install:
    - Created, install spe.xpm and spe.desktop from here.
  * debian/links:
    - Created. Move symlinks from rules to here.
    - Symlink docs from /usr/share/doc/spe/.
    - Symlink /usr/bin/spe to /usr/share/spe/_spe/SPE.py
  * debian/spe.xpm
    - Added.
  * debian/spe.desktop:
    - Updated to fit the policy.
  * debian/copyright:
    - Updated Homepage and Website.
    - Updated copyright holder.
  * debian/rules:
    - Call dh_icons as we install a png file in /usr/share/pixmaps.
    - Install the package in /usr/share/spe/_spe. Closes: #401982, #384293.
    - Make SPE.py executable.
    - Move installation of files to spe.install and spe.links.
    - Don't call dh_python and dh_installexamples, we don't need them.
    - Install spe.desktop from spe.install and not here.
    - Call dh_install, dh_link and dh_desktop.
    - The changelog has been moved, so the path is different now.
    - Remove SPE_DEBUG.py. That's a windows launcher.
    - Do nothing on binary-arch target.
    - Fix dh_installchangelog call with a non-repacked tarball.
  * debian/pycompat:
    - Removed, not needed as we don't call dh_python.
  * debian/README.Debian:
    - Removed, issues are fixed now.
  * debian/watch:
    - Updated as spe is now hosted on berlios.

  [ Piotr Ożarowski ]
  * Update debian/rules to match changes in upstream tarball
  * debian/copyright: upstream sources are released under GPL3 now
  * Urgency set to medium as this upload closes: #472033 (pycentral dir is not
    used anymore)

 -- Scott Kitterman <email address hidden> Fri, 28 Mar 2008 09:31:18 +0000

Changed in spe:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.