I've built wxMaxima in debug mode on Windows (Visual Studio 2022, x64) and it always crashes with "Debug Assertion Failed!" on attempt to open Settings dialog:
Stack trace:
The problem is in EditorCell::FindMatchingParens():
void EditorCell::FindMatchingParens() {
m_paren1 = m_paren2 = -1;
if (m_positionOfCaret < 0)
return;
wxChar charUnderCursor = m_text.GetChar(m_positionOfCaret); //m_text is "" and m_positionOfCaret is 0, so we are trying to get 0th char of an empty string
if (charUnderCursor == wxT('\"')) {
FindMatchingQuotes();
return;
}
Sounds like an extra check m_positionOfCaret < m_text.Length() should be added before that line
I've built wxMaxima in debug mode on Windows (Visual Studio 2022, x64) and it always crashes with "Debug Assertion Failed!" on attempt to open Settings dialog:![image](https://user-images.githubusercontent.com/9787417/234298214-1d19c145-b26d-43cc-8837-5f9ee7d90187.png)
Stack trace:![image](https://user-images.githubusercontent.com/9787417/234298595-8dd516d2-9ef8-4535-948e-12d2b608d1b9.png)
The problem is in EditorCell::FindMatchingParens():
Sounds like an extra check
m_positionOfCaret < m_text.Length()
should be added before that line