Skip to content
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

bug: crash when resizing cancelled spectrogram window #55

Open
kgorham opened this issue Nov 30, 2021 · 0 comments
Open

bug: crash when resizing cancelled spectrogram window #55

kgorham opened this issue Nov 30, 2021 · 0 comments
Assignees

Comments

@kgorham
Copy link
Contributor

kgorham commented Nov 30, 2021

To reproduce:

  1. Open clip 'Lahu Shi 1-3.wav'
  2. Select layout with waveform/spectrogram
  3. Enable the formant track rendering via the toolbar.
  4. Wait a couple seconds and cancel the rendering by pressing escape.
  5. Grab the lower right corner of the spectrogram window and continually resize the window. After a while it will crash.

Code fails due to access violation.

Line:
*pPixel = (uint8)((pPowerLeft[y] * nLeft + pPowerRight[y] * nRight + 8192) >> 14);

Call stack:

SA.exe!CPlotSpectrogram::OnDrawSpectrogram(CDC * pDC, CRect rWnd, CRect rClip, CSaView * pView, int bSmooth, int * bAliased) Line 606 C++
SA.exe!CPlotSpectrogram::OnDraw2(CDC * pDC, CRect rWnd, CRect rClip, CSaView * pView) Line 1032 C++
SA.exe!CPlotSpectrogram::OnDraw(CDC * pDC, CRect rWnd, CRect rClip, CSaView * pView) Line 1130 C++
SA.exe!CPlotWnd::OnPaint() Line 2035 C++
[External Code]
mfc140ud.dll![Frames below may be incorrect and/or missing, no symbols loaded for mfc140ud.dll] Unknown
SA.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) Line 26 C++

@kgorham kgorham self-assigned this May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant