Kdenlive   bug tracker Home page

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002373KdenliveUser Interfacepublic2011-11-02 23:052011-12-10 19:05
Reporteryellow 
Assigned Toj-b-m 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformUbuntu 64bit 11.10OSOS Version
Product VersionRecent git 
Target VersionFixed in Version0.8.2.1 
Summary0002373: Loading project from a few days ago, leaves Project Tree unresponsive / unusable
DescriptionLoading project from a few days ago, leaves Project Tree unresponsive / unusable. It's possible to use the add clip icon in the project tree but there is no RMB menu available in the project tree after loading a recent project.
Steps To ReproduceOpen a project created prior to latest release.
TagsNo tags attached.
Build/Install Method(select)
Attached Files

- Relationships

-  Notes
(0007490)
yellow (reporter)
2011-11-02 23:17

Forgot to mention, starting a new project after opening an existing one,leaves the Project Tree unresponsive and no RMB menu to add files. have to restart kdenlive to get normal operation again.
(0007491)
j-b-m (administrator)
2011-11-03 00:02

I cannot reproduce. Can you give me more infos about the project files that have this issue: are they big projects (lots of clips in tree, in timeline...), does it use proxy... I think sometimes, it seems like it is hanging but in fact it is creating the project tree thumbnails in the background and after some time, the project tree becomes enabled again...

Your second case (creating a new project when an opened project is still loading) might effectively keep the project list in a disabled state, I have a fix ready for this (but I cannot commit right now, we are in the process of moving the source repository)
(0007501)
yellow (reporter)
2011-11-04 23:33

hi, I have a couple of projects that this is happening on, one project is 20mins long with numerous folders, images and sub clips, the other about 10 clips in the Project Tree, no folders, nothing on the time line. Both projects use proxys.

I've disabled Thumbnails for Video in the project settings, saved the project and closed it, then reopen, still have unresponsive project tree, folders are greyed, yet the time line plays smoothly and the Project Monitor shows video.

The clip monitor however plays black when i start it playing.

If I start kdenlive and open a troublesome project then the Project Tree remains unresponsive, if I close that project, create a new project and then try to add clips with RMB, no menu appears, only add clip from the icon works but can't access the clips loaded into the Project Tree, so have to restart kdenlive and not open a troublesome project.

Some less recent projects tell me 'updated to the latest document version', if I then close that updated project and open a troublesome one then the troublesome one works fine, project tree accessible but if I save the project its still troublesome with a new kdenlive session.

So I guess I have some projects created with a svn build which are not detected as needing updating to latest document version but are incompatible in some way with latest svn.

sorry if it all sounds convoluted.
(0007508)
j-b-m (administrator)
2011-11-05 21:25
edited on: 2011-11-05 21:57

Could you start Kdenlive from a terminal, open a project that has the bug and when the project has finished loading - with the project tree disabled, copy / paste the terminal output here (or mail it to me - jb at kdenlive.org).

Edit:
To see the Kdenlive debug output, you might need to run the program:
kdebugdialog

and enable Kdenlive in the list

(0007509)
yellow (reporter)
2011-11-05 23:31

hi

starting kdenlive in a terminal and opening troublesome project, I get this:

project monitor connected
clip monitor connected
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
[avi @ 0x4709b00] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x4729f80] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x338ffa0] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x472ede0] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x476cde0] parser not found for codec pcm_s16le, packets or times may be invalid.

many many lines of the same.

Then close the project and create a new one, then adding one clip to the Project Tree via the add clip icon as RMB menu is not available due to buggy project before I see this:

[NULL @ 0x4db3a80] insufficient thread locking around avcodec_open/close()
[NULL @ 0x4db19c0] insufficient thread locking around avcodec_open/close()
[NULL @ 0x4db19c0] insufficient thread locking around avcodec_open/close()
[NULL @ 0x4db19c0] insufficient thread locking around avcodec_open/close()

many many lines the same.

Then in same kdenlive session, if I close that buggy new project with one clip and open a project that tells me about upgrading to new document format I see this:

QDBusObjectPath: invalid path ""
kdenlive(3873) Render::checkMaxThreads: // TRACTOR PROBLEM

Now the Project Tree is active, no folders are greyed out etc

BUT I have big red crosses where the movie files should be and proxies been made for them, so lots of solid black proxies. :-)

Closing that project, saying no to save then crashes kdenlive with this:

kdenlive(3873)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
KCrash: Application 'kdenlive' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/.../.kde/socket-demongreen/kdeinit4__0

[1]+ Stopped kdenlive
...@...:~$ QSocketNotifier: Invalid socket 21 and type 'Read', disabling...
(0007510)
j-b-m (administrator)
2011-11-06 00:24

Hmm, the debug info from Kdenlive is not showing in your post. Could you try to activate kdenlive in the kdebugdialog program (as I mentionned in an edit to my previous post), then try again.

What interests me the most is the Kdenlive debug output when it reaches the end of the first project loading. You should see one or 2 lines saying:

--------
Time elapsed: xxx
--------

I wonder if these line appears or not. In any case, the problem is in the sequence that should be done at the end of the first document loading.

However the log info you provided shows several problems. Are you using the package from sunab repository or a version build with the build script?

If you have several versions of MLT installed, Kdenlive might pick the wrong one, same thing for FFmpeg.

This warning:
[NULL @ 0x4db3a80] insufficient thread locking around avcodec_open/close()

Shows that Kdenlive is doing something wrong with MLT, which results in a corruption of the MLT > FFmpeg communication and makes it unable to load any clip until you restart Kdenlive.
(0007512)
yellow (reporter)
2011-11-06 01:43

sorry for not providing debug, here it is:

kdenlive(6603) MainWindow::parseProfiles: RESULTING MLT PATH: "/usr/share/mlt/profiles/"
kdenlive(6603) RecMonitor::RecMonitor: /////// BUILDING MONITOR, ID: 52428928
project monitor connected
clip monitor connected
kdenlive(6603) MainWindow::loadPlugins: Parsing plugin folder: "/usr/lib/kde4/"
kdenlive(6603) MainWindow::loadPlugins: Found plugin: "libkdenlive_sampleplugin.so"
kdenlive(6603) MainWindow::addToMenu: // ADD to MENU ("Countdown", "Noise")
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
kdenlive(6603) KDirWatchPrivate::KDirWatchPrivate: INotify available: true
kdenlive(6603) KdenliveDoc::setProfilePath: Kdenlive document, init timecode from path: "/home/.../.kde/share/apps/kdenlive/profiles/customprofile1" , 25
kdenlive(6603) TrackView::slotAddProjectTrack: ************* ADD DOC TRACK 2 , DURATION: 0
kdenlive(6603) TrackView::slotAddProjectTrack: ************* ADD DOC TRACK 1 , DURATION: 0
kdenlive(6603) TrackView::slotAddProjectTrack: ************* ADD DOC TRACK 0 , DURATION: 0
kdenlive(6603) TrackView::parseDocument: /////////// TOTAL PROJECT DURATION: 300
kdenlive(6603) Render::resetProfile: reset to same profile, nothing to do
kdenlive(6603) Render::setSceneList: // NEW SCENE LIST DURATION SET TO: 2
kdenlive(6603) MainWindow::connectDocument: /////////////////// CONNECTING DOC TO PROJECT VIEW ////////////////
kdenlive(6603) MainWindow::slotUpdateColorScopes: // UPDATE SCOPES
kdenlive(6603) TransitionSettings::updateTrackList: / / TRANS TRK: 1
kdenlive(6603) MainWindow::slotUpdateColorScopes: // UPDATE SCOPES
kdenlive(6603) KdenliveDoc::~KdenliveDoc: // DEL CLP MAN
kdenlive(6603) KdenliveDoc::~KdenliveDoc: // DEL CLP MAN done
kdenlive(6603) KDirWatchPrivate::KDirWatchPrivate: INotify available: true
kdenlive(6603) DocumentValidator::upgrade: Opening a document with version 0.88
kdenlive(6603) KdenliveDoc::setProfilePath: Kdenlive document, init timecode from path: "/home/.../.kde/share/apps/kdenlive/profiles/customprofile1" , 25
kdenlive(6603) KdenliveDoc::KdenliveDoc: Reading file: "/home/.../kdenlive/project.kdenlive" , found clips: 1
kdenlive(6603) TrackView::slotAddProjectTrack: ************* ADD DOC TRACK 2 , DURATION: 0
kdenlive(6603) TrackView::slotAddProjectTrack: ************* ADD DOC TRACK 1 , DURATION: 0
kdenlive(6603) TrackView::slotAddProjectTrack: ************* ADD DOC TRACK 0 , DURATION: 0
kdenlive(6603) TrackView::parseDocument: /////////// TOTAL PROJECT DURATION: 300
kdenlive(6603) Render::resetProfile: reset to same profile, nothing to do
kdenlive(6603) Render::setSceneList: // NEW SCENE LIST DURATION SET TO: 2
kdenlive(6603) MainWindow::connectDocument: /////////////////// CONNECTING DOC TO PROJECT VIEW ////////////////
kdenlive(6603) MainWindow::slotUpdateColorScopes: // UPDATE SCOPES
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(6603) TransitionSettings::updateTrackList: / / TRANS TRK: 1
[avi @ 0x43ed460] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x4403ca0] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x43e5b60] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x440fa80] parser not found for codec pcm_s16le, packets or times may be invalid.

I don't see the Time elapsed:

I'm using up to date sunabs svn PPA.

With regard to FFmpeg, I do build from git but haven't done so since October and other projects appear to work fine.

fmpeg version git-2011-10-26-51bfaa2, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 27 2011 00:06:38 with gcc 4.6.1
  configuration: --prefix=/usr/local --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-x11grab --enable-libgsm --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libschroedinger --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264
  libavutil 51. 22. 0 / 51. 22. 0
  libavcodec 53. 23. 0 / 53. 23. 0
  libavformat 53. 17. 0 / 53. 17. 0
  libavdevice 53. 4. 0 / 53. 4. 0
  libavfilter 2. 45. 0 / 2. 45. 0
  libswscale 2. 1. 0 / 2. 1. 0
  libpostproc 51. 2. 0 / 51. 2. 0
(0007518)
j-b-m (administrator)
2011-11-07 00:48

Ok, I think I finally found the problem. We should have our new git repository for source code ready soon (hopefully tomorrow), and I will push the fix as soon as it's ready so that it can be tested.
(0007527)
vpinon (administrator)
2011-11-09 07:50

Hello,

I also faced a "tree-freeze" 3 times yesterday (all-day editing session), and I figured in those cases that there was a corrupted file in the thumbs/ project subdir : the first time I emptied all caches without inquiring, once a valid image was named only ".png" (nothing before extension), once it was a well-named file that was not a PNG and had size 100x bigger than others.

I have seen JB you committed an update on tree-freeze topic few hours back, I don't know if it corresponds to these symptoms. I will build and run kdenlive with your patches to test, but as the bug is not systematically reproducible I am not sure I can confirm it disappeared immediately...
(0007539)
yellow (reporter)
2011-11-10 23:08

Updated sunabs PPA yesterday, nothing so far to day and having problems with some projects still, in fact worse now, proxies appear to be taking longer to generate, on a 20mins project 2 hours have passed and the project tree is still greyed out unable to access the clips and proxies still being generated I think, as I can't access the tree to see, no video thumbnails even though they are ticked, loading a recent project yesterday I had terrible problems with INVALID & Missing Clip (in red) everywhere, not picking up the movie files in the Project Tree even though their paths were valid and actually played on the time line.

Other projects work ok, weird behavior on some, anyway, all in good time. The risk in using unstable for projects rather than just testing. :-)
(0007541)
j-b-m (administrator)
2011-11-10 23:16

Unfortunately, yesterday I had only committed half of my patches to fix the various proxy & project tree problems. I committed the last fixes last night, but sunab's PPA failed to compile the source, so the packages have not been updated.

I am trying to understand why the sunab packages fail to build, hopefully this can be solved and the next update should be alright,
(0007544)
yellow (reporter)
2011-11-12 01:19

That'll explain it then. :-) Updated to sunabs latest build tonight and still have a few problems with greyed out inaccessible project tree with some projects.

On some recent projects I have to load the project, then disable proxies in the Project Settings which then frees up the project tree, then re enable proxies to get them to build otherwise the Project Tree sits there frozen for hours, disabling / re enabling proxies only builds one more proxy then it sits there forever with 'waiting proxy..." against the remaining clips, non are showing a percentage building, if I leave proxies enabled in a project, save it and reload the project, it tells me so many proxys still to build and the tree is inaccessible again.

Also opening a project now that had luma transitions in are now removed. :-(

Not sure whether to just try redoing these troublesome projects from scratch. :-)
(0007552)
vpinon (administrator)
2011-11-12 09:44

As Alberto said in his post on the homepage, packages build scripts must be updated to fetch translations.

Yellow, have you checked that there are no corrupted files in the "thumbs/" dir in your project dir ? On my side, early 0.8.2 release sometimes crashed while generating these small PNGs showing in the project tree, I had to delete manually the wrong-named or 0-sized files (or empty the whole dir).
(was kdenlive trying to load too many media in parallel and saturating the memory ?)

I believe new kdenlive will now avoid 0 file size, but already corrupted projects must be recovered by hand ?
(0007656)
vpinon (administrator)
2011-12-09 22:05

Hello, I built 0.8.2.1 (just a few minor commits before the official release), and after a massive import for a new project + 2 days editing, no problem showed up anymore, neither on thumbs/proxies generation nor on other editing aspects.

I thinks you did an excellent job JB !

Do you want to wait for more testing or would be happy to close this issue ?
(0007657)
yellow (reporter)
2011-12-10 08:46

Yes excellent JBM I too have had no problems with thumbs and proxies now.
(0007659)
j-b-m (administrator)
2011-12-10 19:05

glad to hear that.

- Issue History
Date Modified Username Field Change
2011-11-02 23:05 yellow New Issue
2011-11-02 23:17 yellow Note Added: 0007490
2011-11-03 00:02 j-b-m Note Added: 0007491
2011-11-03 00:02 j-b-m Assigned To => j-b-m
2011-11-03 00:02 j-b-m Status new => feedback
2011-11-03 21:02 j-b-m Target Version => 0.8.2.1
2011-11-04 23:33 yellow Note Added: 0007501
2011-11-04 23:33 yellow Status feedback => assigned
2011-11-05 17:42 j-b-m Target Version 0.8.2.1 => 0.8.4
2011-11-05 21:25 j-b-m Note Added: 0007508
2011-11-05 21:57 j-b-m Note Edited: 0007508 View Revisions
2011-11-05 23:31 yellow Note Added: 0007509
2011-11-06 00:24 j-b-m Note Added: 0007510
2011-11-06 01:43 yellow Note Added: 0007512
2011-11-07 00:48 j-b-m Note Added: 0007518
2011-11-09 07:50 vpinon Note Added: 0007527
2011-11-10 23:08 yellow Note Added: 0007539
2011-11-10 23:16 j-b-m Note Added: 0007541
2011-11-12 01:19 yellow Note Added: 0007544
2011-11-12 09:44 vpinon Note Added: 0007552
2011-11-14 19:16 j-b-m Target Version 0.8.4 => 0.8.2.1
2011-12-08 22:57 j-b-m Target Version 0.8.2.1 => 0.8.4
2011-12-09 22:05 vpinon Note Added: 0007656
2011-12-10 08:46 yellow Note Added: 0007657
2011-12-10 19:05 j-b-m Note Added: 0007659
2011-12-10 19:05 j-b-m Status assigned => resolved
2011-12-10 19:05 j-b-m Fixed in Version => 0.8.2.1
2011-12-10 19:05 j-b-m Resolution open => fixed
2011-12-10 19:05 j-b-m Status resolved => closed


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker