Created attachment 141605 [details] Creating a project without video tracks SUMMARY Hi, I use the Flatpak version of Kdenlive on Fedora 34 Workstation and I think I found a bug in the app (at least affects the Flatpak version took from Flathub). After creating a project without video tracks, I try to save it with the "Save as" option. The saving process works as usual, but after clicking on Save button in GTK dialog, the app crashes. I don't know if this occurs on KDE Plasma desktop or on other distributions, but I think it would be good to create project without video tracks if you only want to deal with sound files. STEPS TO REPRODUCE 1. Create a project without video tracks in the Flatpak version (at least) of Kdenlive. 2. Try to save the project with the "Save as" process. 3. After press on Save button in GTK dialog (at least), the app crashes. OBSERVED RESULT The app crashes after saving a project without video tracks. EXPECTED RESULT To continue to use Kdenlive as usual. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 34 Workstation (available in About System) KDE Plasma Version: Branch 5.15 of KDE Application Platform according Flatpak list. KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Confirmed, crash still exists in latest master (1d451a315). Crash is only when creating a new project with 0 video tracks. It doesn't seem to crash if you create a new project with video tracks but then delete them. At timelinecontroller.cpp:2579, m_activeTrack == 3 and we try to getTrackPosition(3), leading to a failed assertion, Q_ASSERT(isTrack(trackId)), and an out of range bug.