debug on windows, met with QList "index out of range" error, then exit

• Apr 27, 2010 - 10:14

It's strange that since I updated from rev.299x, on windows in eclipse debug, mscore always exit when I try to open an ove, xml, midi file, for example : /demos/sarabande.xml, but it seems fine when open some *.mscx, *.mscz files.
I set HAS_AUDIOFILE, AEOLUS, STATIC_SCRIPT_BINDINGS = FALSE, these values are set for a while, and in previous revision they work fine, of course AEOLUS is newly set.
On console window I get:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
page format pw1=396 pw2=793 ph2=841
ASSERT failure in QList::operator[]: "index out of range", file C:\Qt\2009.05\qt\include/QtCore/../../src/corelib/tools/qlist.h, line 447

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I don't know which QList cause this problem, and I'm working on improving import ove, so there are some difference among my code and svn trunk.
Why *.xml can't work and *.mscx work, and I also tried mscoreNightly-r3003.7z, it works fine, so I'm totally confused.
Is there anybody has same problem?


Comments

QLIst "index out of range" appear at:
void MuseScore::setCurrentScoreView(ScoreView* view)
->
getAction("file-save")->setEnabled(cs->isSavable());
->
QAction* getAction(const char* id) {
Shortcut* s = getShortcut(id);
}
->
Shortcut* getShortcut(const char* id) {
Shortcut* s = shortcuts.value(id); // this line, id == "file-save"

new finding, when I set pa.cpp
bool Portaudio::init()
{
return false;
}

then this error disappear, but now I can't hear any sound.

Do you still have an unanswered question? Please log in first to post your question.