Bitpim crashes when communicating with phone

Bug #395830 reported by Wowbagger
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bitpim (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Karmic by Eric Appleman

Bug Description

Binary package hint: bitpim

BItpim crashes when attempting to import data from a phone. Phone is connectable via Bluetooth and is configured properly in Bitpim.

Steps to reproduce:
Start Bitpim
Configure phone
Attempt to "download from phone"

Results:
Bitpim throws a Python error.

Expected results:

Bitpim should work

Reproducability: Every time.

Version information:
Description: Ubuntu 9.04
Release: 9.04
bitpim:
  Installed: 1.0.6.dfsg.1-1ubuntu2
  Candidate: 1.0.6.dfsg.1-1ubuntu2
  Version table:
 *** 1.0.6.dfsg.1-1ubuntu2 0
        500 http://archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

BitPim version: 1.0.6-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/gui.py", line 284, in run
    res=call()
  File "/usr/share/bitpim/code/gui.py", line 159, in __call__
    return apply(self.method, self.args+args, d)
  File "/usr/share/bitpim/code/gui.py", line 1884, in getdata
    results=self.getfundamentals()
  File "/usr/share/bitpim/code/gui.py", line 1878, in getfundamentals
    self.commphone.getfundamentals(results)
  File "/usr/share/bitpim/code/phones/com_lgvx4400.py", line 96, in getfundamentals
    results['uniqueserial']=sha.new(self.get_esn()).hexdigest()
  File "/usr/share/bitpim/code/phones/com_lgvx8300.py", line 85, in get_esn
    return self.get_brew_esn()
  File "/usr/share/bitpim/code/phones/com_brew.py", line 335, in get_brew_esn
    p_brew.ESN_resp).esn
  File "/usr/share/bitpim/code/phones/com_lg.py", line 1711, in _sendbrewcommand
    return func(*args, **kwargs)
  File "/usr/share/bitpim/code/phones/com_brew.py", line 755, in sendbrewcommand
    self.setmode(self.MODEBREW)
  File "/usr/share/bitpim/code/phones/com_phone.py", line 114, in setmode
    res=getattr(self, func)()
  File "/usr/share/bitpim/code/phones/com_brew.py", line 693, in _setmodebrew
    self.sendbrewcommand(req, respc, callsetmode=False)
  File "/usr/share/bitpim/code/phones/com_lg.py", line 1711, in _sendbrewcommand
    return func(*args, **kwargs)
  File "/usr/share/bitpim/code/phones/com_brew.py", line 757, in sendbrewcommand
    request.writetobuffer(buffer, logtitle="sendbrewcommand")
  File "/usr/share/bitpim/code/phones/p_brew.py", line 2536, in writetobuffer
    self.__field_header=requestheader(**{'command': 0x0c})
  File "/usr/share/bitpim/code/phones/p_brew.py", line 42, in __init__
    super(requestheader,self).__init__(**dict)
TypeError: object.__init__() takes no parameters

Variables by last 8 frames, innermost last

Frame _sendbrewcommand in /usr/share/bitpim/code/phones/com_lg.py at line 1714
           self = <phones.com_lgvx8300.Phone object at 0x4bf1d50>
           args = (<phones.p_brew.ESN_req object at 0x4c0ce10>, <class 'phones.p_brew.ESN_resp'>)
           func = <bound method Phone.sendbrewcommand of <phones.com_lgvx8300.Phone object at 0x4b
         kwargs = Keys []
                   {}

Frame sendbrewcommand in /usr/share/bitpim/code/phones/com_brew.py at line 755
    callsetmode = True
        request = <phones.p_brew.ESN_req object at 0x4c0ce10>
           self = <phones.com_lgvx8300.Phone object at 0x4bf1d50>
  responseclass = <class 'phones.p_brew.ESN_resp'>

Frame setmode in /usr/share/bitpim/code/phones/com_phone.py at line 116
    desiredmode = 'modebrew'
           self = <phones.com_lgvx8300.Phone object at 0x4bf1d50>
        strmode = 'none'
 strdesiredmode = 'brew'
           func = '_setmodebrew'
              v = 'writeobject'

Frame _setmodebrew in /usr/share/bitpim/code/phones/com_brew.py at line 696
           self = <phones.com_lgvx8300.Phone object at 0x4bf1d50>
            req = <phones.p_brew.memoryconfigrequest object at 0x4c0cf90>
          respc = <class 'phones.p_brew.memoryconfigresponse'>

Frame _sendbrewcommand in /usr/share/bitpim/code/phones/com_lg.py at line 1714
           self = <phones.com_lgvx8300.Phone object at 0x4bf1d50>
           args = (<phones.p_brew.memoryconfigrequest object at 0x4c0cf90>, <class 'phones.p_brew.
           func = <bound method Phone.sendbrewcommand of <phones.com_lgvx8300.Phone object at 0x4b
         kwargs = Keys ['callsetmode']
                   {'callsetmode': False}

Frame sendbrewcommand in /usr/share/bitpim/code/phones/com_brew.py at line 757
         buffer = <prototypes.buffer object at 0x4c0cfd0>
    callsetmode = False
        request = <phones.p_brew.memoryconfigrequest object at 0x4c0cf90>
           self = <phones.com_lgvx8300.Phone object at 0x4bf1d50>
  responseclass = <class 'phones.p_brew.memoryconfigresponse'>

Frame writetobuffer in /usr/share/bitpim/code/phones/p_brew.py at line 2536
            buf = <prototypes.buffer object at 0x4c0cfd0>
        autolog = True
       logtitle = 'sendbrewcommand'
           self = <phones.p_brew.memoryconfigrequest object at 0x4c0cf90>

Frame __init__ in /usr/share/bitpim/code/phones/p_brew.py at line 42
           self = <phones.p_brew.requestheader object at 0x4c15050>
           args = ()
           dict = Keys ['command']
                   {'command': 12}
         kwargs = Keys ['command']
                   {'command': 12}

Revision history for this message
David Grossberg (davidgro) wrote :

This happens on my system as well: Kubuntu Jaunty ( 9.04 ) amd64
I have attached the Trouble Report that bitpim made.

I also get the same error in 1.0.7.20090722 that I compiled from SVN using the patches from 1.0.6.dfsg.1-1ubuntu2

This error occurs with both Bluetooth and USB, and I have made sure the permissions on both are valid.

I consider this (a total lack of functionality) to be a very serious issue.

Revision history for this message
Sal Mazzola (salmaz) wrote :

The problem may be related to the transition to python 2.6.

I made the following change to prototypes.py and bitpim is working for me now.

Revision history for this message
Sal Mazzola (salmaz) wrote :

Woops. Wrong way.

Revision history for this message
João Pinto (joaopinto) wrote :

Adding debdiff for the patch already tested.

Changed in bitpim (Ubuntu):
assignee: nobody → fabrice_sp (fabricesp)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Uploaded. Thanks for your contribution.
Please forward this change to Debian,

Thanks,
Fabrice

Changed in bitpim (Ubuntu):
assignee: fabrice_sp (fabricesp) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bitpim - 1.0.6.dfsg.1-4ubuntu1

---------------
bitpim (1.0.6.dfsg.1-4ubuntu1) karmic; urgency=low

  * src/prototypes.py: Added init() definition to BaseProtogenClass
    (LP: #395830). Thanks Sal Mazzola.

 -- Joao Pinto <email address hidden> Tue, 13 Oct 2009 18:15:36 +0100

Changed in bitpim (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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