Bug 419019 - Using 0 video streams crashes the program
Summary: Using 0 video streams crashes the program
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: 19.12.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
: 421980 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-19 13:48 UTC by barbeque
Modified: 2020-06-14 18:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
fritzibaby: Brainstorm+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description barbeque 2020-03-19 13:48:48 UTC
SUMMARY
Using 0 video streams crashes the application after an amount of seconds

STEPS TO REPRODUCE
1. Go to Settings -> Configure Kdenlive -> Project Defaults
2. Change the number of video tracks to 0
3. Apply
4. Close kdenlive
5. Start kdenlive

It probably also triggers when you just change the current project settings. The only way to get into the Settings at all after setting 0 as a Default is by deleting ~/.config/kdenliverc

OBSERVED RESULT
The application crashes after a few seconds. If not, just do something like importing a few clips, that should trigger it.

EXPECTED RESULT
The application works

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 19.12.3-1
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Might be a bug in a dependency instead, as I did system updates and before that I could use 0 video tracks just fine, but kdenlive itself didn't update.
Logs give a std::out_of_range error just before the crash
Comment 1 emohr 2020-03-22 18:23:37 UTC
Good catch. Thank you for reporting. We should fix this. Either make it not possible to set the default video/audio track to 0 (zero) or when importing a clip show a waring.
Comment 2 Jean-Baptiste Mardelle 2020-03-22 20:32:09 UTC
Git commit f9ab7e3e6648ebb7cd5e04216ef361d40cbeca2f by Jean-Baptiste Mardelle.
Committed on 22/03/2020 at 20:31.
Pushed by mardelle into branch 'release/20.04'.

Ensure we cannot create a project with 0 tracks

M  +10   -0    src/dialogs/kdenlivesettingsdialog.cpp
M  +10   -0    src/project/dialogs/projectsettings.cpp
M  +1    -1    src/timeline2/view/dialogs/trackdialog.cpp
M  +1    -1    src/timeline2/view/timelinecontroller.cpp

https://invent.kde.org/kde/kdenlive/commit/f9ab7e3e6648ebb7cd5e04216ef361d40cbeca2f
Comment 3 emohr 2020-06-14 18:11:13 UTC
*** Bug 421980 has been marked as a duplicate of this bug. ***