-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControlDoublePrivate: log warning before assert fails. #4236
Conversation
…ertion kills mixxx
@ronso0: This should help to find CO issues. |
Pull Request Test Coverage Report for Build 1153450206
💛 - Coveralls |
src/control/control.cpp
Outdated
qWarning() | ||
<< "ControlObject" | ||
<< key.group << key.item | ||
<< "already created"; | ||
DEBUG_ASSERT(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The condition is out of sight here. Please use something like
DEBUG_ASSERT(false); | |
DEBUG_ASSERT(!"Tried to create Control Object that already exists."); |
src/control/control.cpp
Outdated
qWarning() << "Cannot set" << m_key << "by Midi"; | ||
DEBUG_ASSERT(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
src/control/control.cpp
Outdated
qWarning() << "Cannot set" << m_key << "by Midi"; | ||
DEBUG_ASSERT(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
src/control/control.cpp
Outdated
qWarning() << "Cannot get" << m_key << "by Midi"; | ||
DEBUG_ASSERT(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
Done |
Thanks @daschuer btw when testing with Shade it stopped here for Lines 180 to 184 in 7bb2f29
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you.
Make sure the warning is printed before the assertion kills mixxx.
This should help to debug issues discussed here:
https://mixxx.zulipchat.com/#narrow/stream/247620-development-help/topic/qDebug.20messages.20with.20DEBUG_ASSERTIONS_FATAL