index out of range

Bug #412108 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE OpenObject Client
Fix Released
Undecided
Unassigned

Bug Description

occasionally I find this in the log (may be also caused by my python bugs)

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/Koo/Dialogs/FormWidget.py", line 359, in updateStatus
    if self.model and self.screen.currentRecord() and self.screen.currentRecord().id:
  File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 308, in currentRecord
    return self.group.modelByIndex( self._currentRecordPosition )
  File "/usr/lib64/python2.6/site-packages/Koo/Model/Group.py", line 470, in modelByIndex
    record = self.recordByIndex( row )
  File "/usr/lib64/python2.6/site-packages/Koo/Model/Group.py", line 513, in recordByIndex
    record = self.records[row]
IndexError: list index out of range

do you need more info , then I will observe when it happens

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote : Re: [Bug 412108] [NEW] index out of range

A Dimarts, 11 d'agost de 2009, Ferdinand @ ChriCar va escriure:
> Public bug reported:
>
> occasionally I find this in the log (may be also caused by my python
> bugs)
>
> Traceback (most recent call last):
> File "/usr/lib64/python2.6/site-packages/Koo/Dialogs/FormWidget.py", line
> 359, in updateStatus if self.model and self.screen.currentRecord() and
> self.screen.currentRecord().id: File
> "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 308, in
> currentRecord return self.group.modelByIndex( self._currentRecordPosition )
> File "/usr/lib64/python2.6/site-packages/Koo/Model/Group.py", line 470,
> in modelByIndex record = self.recordByIndex( row )
> File "/usr/lib64/python2.6/site-packages/Koo/Model/Group.py", line 513,
> in recordByIndex record = self.records[row]
> IndexError: list index out of range
>
> do you need more info , then I will observe when it happens

Yes, please.

>
> ** Affects: openobject-client-kde
> Importance: Undecided
> Status: New

--
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18

Changed in openobject-client-kde:
status: New → Incomplete
Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

If you use the new --debug command line argument, the crash dialog will appear in all exceptions and will ease the detection of this exception.

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

I've been able to reproduce it and it's fixed in r1291.

The problem was when in list view, record n was selected and after searching there were less than n records.

Changed in openobject-client-kde:
status: Incomplete → 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.