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

SIGSEGV in Waveform::get_duration() when no waveform is loaded #41

Open
nbeaver opened this issue Jul 7, 2020 · 0 comments
Open

SIGSEGV in Waveform::get_duration() when no waveform is loaded #41

nbeaver opened this issue Jul 7, 2020 · 0 comments

Comments

@nbeaver
Copy link

nbeaver commented Jul 7, 2020

Steps to reproduce:

  • File -> New

  • Edit -> "Insert After" so there is at least one subtitle.

  • Video -> Open.

  • Load a video file; which one doesn't matter.

  • View -> Waveform. (But don't load an actual waveform; leave it blank.)

  • Press play on the video file.

  • Click repeatedly on the blank waveform pane.

  • Get a segfault. (Sometimes it only takes a few seconds, sometimes it takes longer. Usually 30 mouse clicks is enough.)

This appears to occur because of the waveform duration calculation whenever the waveform is clicked.

Note that the waveform must be blank for this to occur; I have not observed a segfault when a waveform is loaded.

Attached are full stacktraces and Valgrind output.

Reproducible in subtitleeditor version 0.54.0-2 (Ubuntu 18.04) and latest git revision (4c215f4).

valgrind_memcheck.txt

ThreadStacktrace.txt

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

No branches or pull requests

1 participant