Fix possible crash on new project
-
Contributor
This could be related to the fact that m_guiConstructed is set prepaturely to true almost at the beginning of Core::initGui,
void Core::initGUI(bool inSandbox, const QString &MltPath, const QUrl &Url, const QString &clipsToLoad) { m_profile = KdenliveSettings::default_profile(); m_currentProfile = m_profile; m_mainWindow = new MainWindow(); m_guiConstructed = true;
I had a similar issue with a crash when the kdenliverc file is removed. So with a clean installation. So I moved m_guiConstructed = true; almost to the end of this function, just before the last emit that signals that the gui has been constructed,
so just before this line,
Q_EMIT m_mainWindow->GUISetupDone();
}
And that did fix the crash.
Your version, so the master branch does not suffer from this, but the version I am still working on, the bin redesign and subclip naming did because due to the new features I put in I needed to change the order of things a bit, mainly to make the mlt intialize a bit sooner. So,then I tracked this down.
I did not submit a patch for this but now I saw this commit... I did not want to keep you unaware of this.
Thanks for the multiple timeline feature, although the audio is not working yet? But the video is there!
Have a nice weekend, Ondrej
-
Developer
@ondrejpopp see commit: cba3b5c1
-
Contributor
@emohr Yes, tx. Saw it already yesterday in git. Suddenly there was my name looking back at me
😃 Have a nice weekend Eugen.
-
Contributor