FS#8531 - Kdenlive-svn crashes on start after upgrade

Attached to Project: Community Packages
Opened by Alberto Gonzalez (Luis) - Tuesday, 06 November 2007, 15:49 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 28 January 2008, 12:57 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Robert Emil Berge (filoktetes)
tardo (tardo)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: After upgrading Kdenlive-svn (with dependencies) to version 1719-1, it crashes on start with the following message:

Failed to load plugin: /usr/share/mlt/modules/libmltavformat.so: undefined symbol: img_convert
KCrash: Application 'kdenlive' crashing...

Any help appreciated. Thanks.
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Monday, 28 January 2008, 12:57 GMT
Reason for closing:  Won't fix
Additional comments about closing:  moved to unsupported
Comment by tardo (tardo) - Tuesday, 06 November 2007, 16:18 GMT
Also, please change replaces=('kdenlive') to conflicts=('kdenlive'). I built kdenlive (non-svn) myself and it every upgrade i'm asked to replace with -svn.
Comment by Robert Emil Berge (filoktetes) - Tuesday, 06 November 2007, 18:36 GMT
Are you using the ffmpeg from testing? That will give you such an error. I look forward to the ffmpeg upgrade, since it fixes a few bugs for kdenlive, e.g. support for raw dv-files.
I'll fix the replaces to conflicts now, tardo :)
Comment by Alberto Gonzalez (Luis) - Tuesday, 06 November 2007, 20:08 GMT
Ah, yes, I was using the ffmpeg from testing and didn't realize it might interfere with kdenlive. Downgrading solved the problem.

Thanks for your help!
Comment by Dariusz Trzaska (saneone) - Tuesday, 22 January 2008, 13:19 GMT
The same problem occurs now.
Comment by Roman Kyrylych (Romashka) - Tuesday, 22 January 2008, 13:21 GMT
Please check with the latest ffmpeg which fixes  FS#7943 , and confirm it works ;)
Comment by Dariusz Trzaska (saneone) - Tuesday, 22 January 2008, 13:46 GMT
I don't understand :(
I use "ffmpeg 20071204-1" from extra and Kdenlive gives me this:

"Failed to load plugin: /usr/share/mlt/modules/libmltavformat.so: undefined symbol: img_convert
Failed to load plugin: /usr/share/mlt/modules/libmltavformat.so: undefined symbol: img_convert
KCrash: Application 'kdenlive' crashing..."

Should I recompile ffmpeg with --enable-swscaler option?

Moreover, I tried the newest mlt-svn (1050) and kdenlive-svn (1803)... still with no success...
Comment by Roman Kyrylych (Romashka) - Tuesday, 22 January 2008, 14:16 GMT
That ffmpeg version is already compiled with --enable-swscaler and it was supposed to fix kdenlive ( FS#7943 ). :-/
Comment by Roman Kyrylych (Romashka) - Tuesday, 22 January 2008, 14:17 GMT
ah! you should have libmlt package built with that last version of ffmpeg, then kdenlive shouldn't crash (dunno if rebuild of kdenlive is needed too)
Comment by Roman Kyrylych (Romashka) - Tuesday, 22 January 2008, 14:20 GMT
the dependency tree is kdenlive-svn -> mlt++ -> mlt-svn -> libquicktime -> ffmpeg (maybe one of them depends on ffmpeg directly though)
So at least libquicktime should be rebuilt with the latest ffmpeg, not sure if other rebuilds are required.
Comment by Roman Kyrylych (Romashka) - Tuesday, 22 January 2008, 14:22 GMT
@tardo: you were the author of  FS#7943 , can you give more info here?
Also, kdenlive-svn is orphaned, so you can change it yourself (or adopt it).
Comment by tardo (tardo) - Tuesday, 22 January 2008, 14:43 GMT
I'll look into it. Usually just a recompile is required.
Comment by Dariusz Trzaska (saneone) - Tuesday, 22 January 2008, 15:13 GMT
I've made these steps:
1. I rebuilt libquicktime in version 1.0.2, I reinstalled it and tried to run Kdenlive. Result: The problem didn't disappear.
2. I rebuilt mlt-svn in version 1050 (latest), I reinstalled it and tried to run kdenlive. Result: As above. (libquicktime 1.0.2 - rebuilt, ffmpeg from extra)
3. I rebuilt mlt++ in version 0.2.2, reinstalled and tried to run kdenlive. Result: As above. (ffmpeg from extra, libquicktime 1.0.2 - rebuilt, mlt-svn 1050 - rebuilt)
4. I rebuilt kdenlive-svn in version 1803 (latest), reinstalled and tried to run it. Result: As above (all packages rebuilt)

I've no idea...
Comment by Alberto Gonzalez (Luis) - Tuesday, 22 January 2008, 16:03 GMT
Same problem here.

I wonder, when I opened this bug report I was using ffmpeg from testing (now moved to extra), and the maintainer said above that the bug was because of that ffmepg package. Now it seems that the package was meant to solve some kdenlive bugs, but it was known not to work with kdenlive! So what was the point?

Anyway, does anyone know if the problem with ffmpeg's new package is the "--enable-swscaler" option or just because of the newer version?
Comment by Roman Kyrylych (Romashka) - Tuesday, 22 January 2008, 16:08 GMT
Added ffmpeg maintainer to notification list.
Paul, any ideas here?
Comment by Alberto Gonzalez (Luis) - Tuesday, 22 January 2008, 16:19 GMT
Ok, I rebuilt ffmpeg without the "--enable-swscaling" and now Kdenlive doesn't crash.

Was that option only meant to solve kdelive bugs or did it solve other problems in other apps?
Comment by Dariusz Trzaska (saneone) - Tuesday, 22 January 2008, 16:42 GMT
"Ok, I rebuilt ffmpeg without the "--enable-swscaling" and now Kdenlive doesn't crash."

I can confirm that...
weird :|
Comment by tardo (tardo) - Wednesday, 23 January 2008, 05:00 GMT
The problem is two fold:

1) mlt needs to be recompiled to link against the new libavformat.
2) when building mlt, the configure script screws up somewhere, so the flags for swscale aren't passed and results in your img_convert problems.

the fix:
- make sure you're running configure with --avformat-swscale
- do not source qt3/kde3 profiles. it's advisable not to build qimage (relies on img_convert)
- add these two lines after configure
-----
echo "CFLAGS+=-DSWSCALE=1" >> src/modules/avformat/config.mak
echo "LDFLAGS+=-lswscale" >> src/modules/avformat/config.mak
------

and then maybe it will start. I'm not running kde3 so I can't test it properly, but it runs fine, then crashes because i'm not running dr. konqi (which i assume is kde3).
Comment by Alberto Gonzalez (Luis) - Wednesday, 23 January 2008, 05:41 GMT
I've rebuilt mlt with --avformat-swscale against the ffmpeg from extra and it does solve the problem.

But then I've realized that opening any video file Kdenlive crashes. Maybe the other parts (mlt++, libquicktime and kdenlive need to be rebuilt too?).
Comment by tardo (tardo) - Wednesday, 23 January 2008, 23:20 GMT
Run an strace and redirect the output, then pastebin the output.

e.g. strace /opt/kde/bin/kdenlive &> kdenlive.output

Run the program like you normally do, then when it crashes, pastebin the kdenlive.output.
Comment by tardo (tardo) - Thursday, 24 January 2008, 01:52 GMT
The problem is two fold:

1) mlt needs to be recompiled to link against the new libavformat.
2) when building mlt, the configure script screws up somewhere, so the flags for swscale aren't passed and results in your img_convert problems.

the fix:
- make sure you're running configure with --avformat-swscale
- do not source qt3/kde3 profiles. it's advisable not to build qimage (relies on img_convert)
- add these two lines after configure
-----
echo "CFLAGS+=-DSWSCALE=1" >> src/modules/avformat/config.mak
echo "LDFLAGS+=-lswscale" >> src/modules/avformat/config.mak
------

and then maybe it will start. I'm not running kde3 so I can't test it properly, but it runs fine, then crashes because i'm not running dr. konqi (which i assume is kde3).
Comment by Alberto Gonzalez (Luis) - Thursday, 24 January 2008, 05:18 GMT
The strace output was huge, so I've tried to get the "meaningful" part. It's when I try to add a clip and it crashes.

http://pastebin.archlinux.org/24778
Comment by tardo (tardo) - Thursday, 24 January 2008, 05:28 GMT
Does this happen with other non-wmv encoded files? It could be a bug in wmv decoder, or just a bug in kdenlive when it handles large files. If kdenlive is at fault, then it's an upstream issue now.
Comment by Alberto Gonzalez (Luis) - Thursday, 24 January 2008, 06:13 GMT
Yes, it happens with any file I've tried.

The thing is that before upgrading ffmpeg it worked. And I've now even downgraded ffmpeg and it works fine with that same WMV file. So who knows where the bug really is (it's not about swcaling, since I already tried to rebuild ffmpeg and mlt without it but it still crashes). I'll keep trying by rebuilding other packages.
Comment by Alberto Gonzalez (Luis) - Thursday, 24 January 2008, 06:51 GMT
Finally, rebuilding kdenlive-svn solved the problem. So to sum up, we'd need to:

-rebuild mlt-svn against the new ffmpeg enabling the option "--avformat-swscale" (the echo statements don't seem to be needed here).
-rebuild kdenlive-svn (only small change in PKGBUILD is to update /etc/profile.d/qt.sh to /etc/profile.d/qt3.sh).

Loading...