debug on windows, met with QList "index out of range" error, then exit
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.
The Windows nightly builds are coming from the recently created 0.9.6 branch rather than the main trunk (See http://musescore.org/en/node/5584 ). Assuming you are working on the trunk your code changes may not be the cause of the instability.
You might try bringing up the topic on the developers mailing list.
http://musescore.org/mailing-list
In reply to The Windows nightly builds by David Bolton
yes, I tried both on windows and linux, now it works fine, thanks!