Comment 11 for bug 509516

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote : Re: [Bug 509516] Re: changed values are not saved in o2m widgets GRAVE

Yes, I'm getting those too, but that's due to latest performance improvements
that brought some regressions. I need to find the time to fix them. However,
the problem you're talking about here was there before those changes, if I
understood correctly.

A Dijous, 21 de gener de 2010, Borja López Soilán (Pexego) va escriure:
> Sorry Albert, but I cant tell you a specific view where this does
> happens. I just happen to seen this 'not saving' on several screens
> yesterday.
>
> What I can tell you is that I'm getting this kind of tracebacks on the
> Koo console since the optimizations:
>
> ------------------------------------
> QTextCursor::setPosition: Position '7162' out of range
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/Koo/Dialogs/FormWidget.py",
> line 435, in updateStatus if self.model and self.screen.currentRecord()
> and self.screen.currentRecord().id: File
> "/usr/local/lib/python2.6/dist-packages/Koo/Screen/Screen.py", line 321,
> in currentRecord return self.group.modelByIndex(
> self._currentRecordPosition )
> File "/usr/local/lib/python2.6/dist-packages/Koo/Model/Group.py", line
> 546, in modelByIndex record = self.recordByIndex( row )
> File "/usr/local/lib/python2.6/dist-packages/Koo/Model/Group.py", line
> 589, in recordByIndex record = self.records[row]
> IndexError: list index out of range
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/Koo/Dialogs/FormWidget.py",
> line 435, in updateStatus if self.model and self.screen.currentRecord()
> and self.screen.currentRecord().id: File
> "/usr/local/lib/python2.6/dist-packages/Koo/Screen/Screen.py", line 321,
> in currentRecord return self.group.modelByIndex(
> self._currentRecordPosition )
> File "/usr/local/lib/python2.6/dist-packages/Koo/Model/Group.py", line
> 546, in modelByIndex record = self.recordByIndex( row )
> File "/usr/local/lib/python2.6/dist-packages/Koo/Model/Group.py", line
> 589, in recordByIndex record = self.records[row]
> IndexError: list index out of range
>
> ---
>
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/Koo/Dialogs/FormWidget.py",
> line 434, in updateStatus if self.model and self.screen.currentRecord()
> and self.screen.currentRecord().id: File
> "/usr/local/lib/python2.6/dist-packages/Koo/Screen/Screen.py", line 351,
> in currentRecord return self.group.modelByIndex(
> self._currentRecordPosition )
> File "/usr/local/lib/python2.6/dist-packages/Koo/Model/Group.py", line
> 544, in modelByIndex record = self.recordByIndex( row )
> File "/usr/local/lib/python2.6/dist-packages/Koo/Model/Group.py", line
> 586, in recordByIndex record = self.records[row]
> IndexError: list index out of range
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/Koo/View/Tree/TreeView.py",
> line 261, in currentChanged if self.currentIndex == current:
> RuntimeError: underlying C/C++ object has been deleted
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/Koo/Model/KooModel.py", line
> 506, in parent parent = group.parent.group
> AttributeError: 'NoneType' object has no attribute 'group'
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/Koo/View/Tree/TreeView.py",
> line 261, in currentChanged if self.currentIndex == current:
> RuntimeError: underlying C/C++ object has been deleted
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/Koo/View/Tree/TreeView.py",
> line 261, in currentChanged if self.currentIndex == current:
> RuntimeError: underlying C/C++ object has been deleted
> ------------------------------------
>
> Note; the "underlying C/C++ object has been deleted" is easy to
> reproduce: just open a demo service company, go to Partners, open the
> first one (Agrolait), add a category to its category list, and save: the
> traceback appears, also press F5 and the traceback appears again.
>

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