quicky2000 / tartini

A trial to make Tartini (The real time music analysis tool ) to evolve. Original code is located in http://miracle.otago.ac.nz/tartini/download.html
Other
8 stars 4 forks source link

App crashes if you press the ESC key #56

Closed mself closed 4 years ago

mself commented 4 years ago

On Mac, the app crashes if you press the ESC key.

I see this code in MainWindow::keyPressEvent():

#ifdef MYDEBUG
        case Qt::Key_Escape:
            g_data->stopAndWaitAudioThread();
            qApp->closeAllWindows();
        break;
#endif // MYDEBUG

But the app crashes with EXC_BAD_ACCESS in the call to makeCurrent() in VibratoTunerWidget::~VibratoTunerWidget():

VibratoTunerWidget::~VibratoTunerWidget()
{
  // Remove display lists
  makeCurrent();

  glDeleteLists(m_dial, 1);
  glDeleteLists(m_needle, 1);
}

I don't understand what the value is of this "debug" feature?

quicky2000 commented 4 years ago

I wonder it could be to have way to quit when GUI is frozen (like for me in play and record due to RtAudio callback looping)

quicky2000 commented 4 years ago

App return properly on my side

quicky2000 commented 4 years ago

Closed by #60