Crash during phonebook import

Bug #177569 reported by Colin Dean
8
Affects Status Importance Assigned to Milestone
bitpim (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bitpim

Error reported by Bitpim:

BitPim version: 1.0.0-Debian
An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
  File "/usr/share/bitpim/code/phonebook.py", line 1481, in Draw
    text, font=self.facename, size=self.facesize)
  File "/usr/share/bitpim/code/bphtml.py", line 490, in drawhtml
    hdc.Render(rect.x, rect.y, 0, False)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/html.py", line 1265, in Render
    return _html.HtmlDCRenderer_Render(*args, **kwargs)
TypeError: Sequence of integers expected.

Variables by last 8 frames, innermost last

Frame Draw in /usr/share/bitpim/code/phonebook.py at line 1481
           attr = <wx.grid.GridCellAttr; proxy of <Swig Object of type 'wxGridCellAttr *' at 0x40a
           text = u'<font color="#101010">48368</font>'
         colour = wx.Colour(16, 16, 16, 255)
             dc = <wx._gdi.PaintDC; proxy of <Swig Object of type 'wxPaintDC *' at 0x7fffb7297b60>
           self = <phonebook.ImportCellRenderer; proxy of <Swig Object of type 'wxPyGridCellRender
     isSelected = 0
        rowtype = 1
           grid = <wx.grid.Grid; proxy of <Swig Object of type 'wxGrid *' at 0x3e5f3b0> >
            col = 4
           rect = wx.Rect(320, 682, 80, 22)
            row = 31

Frame drawhtml in /usr/share/bitpim/code/bphtml.py at line 490
       basepath = ''
             dc = <wx._gdi.PaintDC; proxy of <Swig Object of type 'wxPaintDC *' at 0x7fffb7297b60>
           html = u'<font color="#101010">48368</font>'
            hdc = <wx.html.HtmlDCRenderer; proxy of <Swig Object of type 'wxHtmlDCRenderer *' at 0
           rect = wx.Rect(322, 683, 76, 20)
              x = 1.6000000000000001
           font = u'FreeSans'
      origscale = (1.0, 1.0)
           size = 10

Frame Render in /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/html.py at line 1265
           args = (<wx.html.HtmlDCRenderer; proxy of <Swig Object of type 'wxHtmlDCRenderer *' at
         kwargs = Keys []
                   {}

Solution for me was to install the newest version from Bitpim's SF repo using sudo dpkg -i --force-architecture bitpim###.deb. It's a Python program, architecture shouldn't really matter.

Steps to reproduce:
1. Install Bitpim and set up rfcomm
2. Open Bitpim and get Phonebook data from the Phone
3. Crash will occur when Bitpim tries to display the contacts table for merging.

Related branches

Revision history for this message
kuzma (kuzmaionitch) wrote :

I am experiencing the same problem.
I am using Ubuntu 7.10 on a hp pavilion laptop ze4100, and my phone is a lg-vx8300

First I detect my phone (LG VX8300) and ask it to transfer my contacts. On the bottom left the scrolling bar and seeing all of my contacts' names scroll through gives me evidence to believe that the information was successfully transfered, but that a display problem resulted.
Then this exception pops up (posted below)
Judging by the output I would expect the problem to be where the wx html table drawing functions were called.
Judging by the last part of the exception it looks like the call to wx.html.HtmlDCRenderer got no args at all, but that is just my guess.

here is my error:

BitPim version: 1.0.0-Debian
An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
  File "/usr/share/bitpim/code/phonebook.py", line 1481, in Draw
    text, font=self.facename, size=self.facesize)
  File "/usr/share/bitpim/code/bphtml.py", line 490, in drawhtml
    hdc.Render(rect.x, rect.y, 0, False)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/html.py", line 1265, in Render
    return _html.HtmlDCRenderer_Render(*args, **kwargs)
TypeError: Sequence of integers expected.

Variables by last 8 frames, innermost last

Frame Draw in /usr/share/bitpim/code/phonebook.py at line 1481
           attr = <wx.grid.GridCellAttr; proxy of <Swig Object of type 'wxGridCellAttr *' at 0x9d0
           text = u'<font color="#101010"><strike>(505) 835-0240</strike></font>'
         colour = wx.Colour(16, 16, 16, 255)
             dc = <wx._gdi.PaintDC; proxy of <Swig Object of type 'wxPaintDC *' at 0xbffb308c> >
           self = <phonebook.ImportCellRenderer; proxy of <Swig Object of type 'wxPyGridCellRender
     isSelected = 0
        rowtype = 0
           grid = <wx.grid.Grid; proxy of <Swig Object of type 'wxGrid *' at 0x9d0b8f8> >
            col = 3
           rect = wx.Rect(240, 450, 80, 25)
            row = 18

Frame drawhtml in /usr/share/bitpim/code/bphtml.py at line 490
       basepath = ''
             dc = <wx._gdi.PaintDC; proxy of <Swig Object of type 'wxPaintDC *' at 0xbffb308c> >
           html = u'<font color="#101010"><strike>(505) 835-0240</strike></font>'
            hdc = <wx.html.HtmlDCRenderer; proxy of <Swig Object of type 'wxHtmlDCRenderer *' at 0
           rect = wx.Rect(242, 451, 76, 23)
              x = 1.6000000000000001
           font = u'Sans'
      origscale = (1.0, 1.0)
           size = 10

Frame Render in /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/html.py at line 1265
           args = (<wx.html.HtmlDCRenderer; proxy of <Swig Object of type 'wxHtmlDCRenderer *' at
         kwargs = Keys []
                   {}

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

This bug was fixed in the package bitpim - 1.0.5.dfsg.1-5

---------------
bitpim (1.0.5.dfsg.1-5) unstable; urgency=low

  * Clean up /usr/share/bitpim/resources; in particular, use usbutils's
    usb.ids rather than a stale copy. (LP: #77929.)
  * Update path to evolution's contacts. (LP: #221006.)
  * src/database.py (Database._getindirect): strip spurious trailing L
    characters that have started showing up in row numbers.
  * src/bp.py: explicitly use wxPython 2.6, as other versions aren't 100%
    compatible. (LP: #177569.)

 -- Ubuntu Archive Auto-Sync <email address hidden> Tue, 04 Nov 2008 21:13:55 +0000

Changed in bitpim:
status: New → 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.