ASSERT failed in widgets/strategydesigner.py?

5 views
Skip to first unread message

Yichun

unread,
Dec 31, 2007, 4:40:45 AM12/31/07
to ProfitPy Discuss
I am getting

ASSERT: "index >= 0 && index < count()" in file widgets/qcombobox.cpp,
line 2013
Aborted

messages when playing in Strategy Designers, specifically, I find I am
able to create a new callable under another callable (maybe doesn't
make sense at all), but when clicking on that child-callable, the
above assertion error was printed and the program quits.

I am still trying to figure out the relationship between strategies,
runners, tickers and callables.

Yichun

unread,
Jan 1, 2008, 5:37:03 PM1/1/08
to ProfitPy Discuss
I am using Debian

ii python-qt4 4.3.3-1 Python bindings for
Qt4
ii python-qt4-common 4.3-5 Shared files for PyQt4
ii libqt4-core 4.3.3-1 Qt 4 core non-GUI
functionality runtime library
un libqt4-designer <none> (no description
available)
ii libqt4-dev 4.3.3-1 Qt 4 development files
ii libqt4-gui 4.3.3-1 Qt 4 core GUI
functionality runtime library

Yichun

unread,
Jan 2, 2008, 4:04:38 AM1/2/08
to ProfitPy Discuss
Troy, in the head of trunk wigets/callableselectwidget.py 247: why do
we call self.callableType.removeItem()? I guess I still do not
understand the reason, but if we click on any callable a second time,
then this error will happen.

yichun

On Dec 31 2007, 1:40 am, Yichun <yichun....@gmail.com> wrote:

troy.m...@gmail.com

unread,
Jan 7, 2008, 1:23:27 AM1/7/08
to profitpy...@googlegroups.com
> I am getting
>
> ASSERT: "index >= 0 && index < count()" in file widgets/qcombobox.cpp,
> line 2013
> Aborted

> messages when playing in Strategy Designers, specifically, I find I am
> able to create a new callable under another callable (maybe doesn't
> make sense at all), but when clicking on that child-callable, the
> above assertion error was printed and the program quits.

I get nothing like that. I can click around and poke at it but never
an assertion error, exception, or segfault.

Using qt-4.3.2-r1 and PyQt4-4.3.3.

> I am still trying to figure out the relationship between strategies,
> runners, tickers and callables.

Runner: execute a callable in a specific way. Ticker: run time
series data and series indexing. Callable: some code to call, may
trade on the account or not. The idea is to separate the abstractions
of strategy code, strategy data, and strategy execution. Once
separated, they can be chosen, saved, loaded, and run.

I'll admit freely that this is a bit nebulous.

Yichun

unread,
Jan 7, 2008, 5:37:10 PM1/7/08
to ProfitPy Discuss


On Jan 6, 10:23 pm, troy.melh...@gmail.com wrote:
> > I am getting
>
> > ASSERT: "index >= 0 && index < count()" in file widgets/qcombobox.cpp,
> > line 2013
> > Aborted
> > messages when playing in Strategy Designers, specifically, I find I am
> > able to create a new callable under another callable (maybe doesn't
> > make sense at all), but when clicking on that child-callable, the
> > above assertion error was printed and the program quits.
>
> I get nothing like that. I can click around and poke at it but never
> an assertion error, exception, or segfault.
>
> Using qt-4.3.2-r1 and PyQt4-4.3.3.

I've changed back to qt 4.3.2, but the error keeps the same:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-
installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-===============-===============-
==============================================
ii libqt4-core 4.3.2-1 Qt 4 core non-GUI functionality
runtime librarun libqt4-designer <none> (no description
available)
ii libqt4-dev 4.3.2-1 Qt 4 development files
ii libqt4-gui 4.3.2-1 Qt 4 core GUI functionality
runtime library
ii libqt4-qt3suppo 4.3.2-1 Qt 3 compatibility library for Qt
4
ii libqt4-sql 4.3.2-1 Qt 4 SQL database module

[first click on the callable]
2008-01-07 14:29:02,837 DEBUG Issuing disconnet... with editor
<profit.widgets.callableselectwidget.CallableSelectWidget object at
0x87ef12c>
Object::disconnect: Unexpected null parameter
2008-01-07 14:29:02,837 DEBUG editor basicSetup
2008-01-07 14:29:02,838 DEBUG editor basicSetup(self, **kwds) find
disable%sType: k,v:5, file
2008-01-07 14:29:02,838 DEBUG editor basicSetup(self,
**kwds)self.callableType.count()=6
2008-01-07 14:29:02,838 DEBUG setting attr callType
2008-01-07 14:29:02,839 DEBUG setting attr locationText
2008-01-07 14:29:02,839 DEBUG setting attr sourceEditorText
2008-01-07 14:29:02,840 DEBUG setting attr revertSource
2008-01-07 14:29:02,840 DEBUG setting attr saveSource

[second click on the callable]
2008-01-07 14:29:03,897 DEBUG Issuing disconnet... with editor
<profit.widgets.callableselectwidget.CallableSelectWidget object at
0x87ef12c>
2008-01-07 14:29:03,898 DEBUG editor basicSetup
2008-01-07 14:29:03,898 DEBUG editor basicSetup(self, **kwds) find
disable%sType: k,v:5, file
2008-01-07 14:29:03,898 DEBUG editor basicSetup(self,
**kwds)self.callableType.count()=5
ASSERT: "index >= 0 && index < count()" in file widgets/qcombobox.cpp,
line 2013
Aborted

The above info is printed when I do the following step:
1. Create a Runner.
2. Create a callable under this Runner
3. Click the callable once
4. Click the callable a second time.

Note in the log, for a second click on the callable, it is different
than what's printed out in the first click. I'll look at it again
later.
Reply all
Reply to author
Forward
0 new messages