An7ar35 / ctune

nCurses internet radio player for Linux
GNU Affero General Public License v3.0
17 stars 0 forks source link

resizing Konsole window leads to core dump #26

Closed antbricks closed 2 months ago

antbricks commented 1 year ago

While running, grab a corner of the Konsole window (running in Arch, btw ;) and resize. I get the following:

double free or corruption (out) Aborted (core dumped)

Let me know if you want me to grab a file or run with --debug or anything. Thanks for the cool tool!

An7ar35 commented 1 year ago

Thanks for the bug report. :+1:

I'm going to need:

That should help me narrow down where things went sideways.

antbricks commented 1 year ago

I can recreate the issue without actually streaming any audio. i.e. just start ctune, and at the 'favorites' screen I just resize and get a crash. It happens pretty reliably, but not every resize crashes (see successful resize screencap). It's ctune 1.2.0, using ffmpeg on Arch+PulseAudio, but since I can crash without starting audio, it seems like a windowing issue.

ctune_resize_crash ctune_successfully_resized screenshot_pre-crash ctune_resize_segfault.log

An7ar35 commented 1 year ago

Thanks for all that, it helped narrow down the scope. After drilling into it it looks like a race condition is happening between UI callbacks and the resize calls. Once I make sure and it is the case, I should have a fix with the next update.

An7ar35 commented 2 months ago

Should be corrected now in v1.3.0