Opened 11 years ago

Closed 10 years ago

#39505 closed defect (fixed)

kdenlive fails to start

Reported by: macports@… Owned by: ddennedy (Dan Dennedy)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager), bitpup, mkae (Marko Käning)
Port: kdenlive

Description (last modified by larryv (Lawrence Velázquez))

running open kdenlive from terminal does not give any output, from xterm:

/Applications/MacPorts/KDE4/kdenlive.app/Contents/MacOS/kdenlive 
kdenlive(887)/KSharedDataCache ensureFileAllocated: This system misses support for posix_fallocate() -- ensure this partition has room for at least 10547296 bytes. 
Unable to start Dr. Konqi

gdb gives:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000006806e04
0x000000011f498645 in gavl_video_options_set_defaults ()

System:
MacBook Pro
OSX 10.8.4
XQuartz 2.7.4

This is fresh install of macports, the only port installed is kdenlive.

Attachments (2)

frei0r-patch-39505.diff (1.1 KB) - added by ddennedy (Dan Dennedy) 11 years ago.
patches configure.ac to remove gavl dependency
frei0r-Portfile-39505.diff (619 bytes) - added by ddennedy (Dan Dennedy) 11 years ago.
patches frei0r-plugins Portfile to remove gavl dependency

Download all attachments as: .zip

Change History (13)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to dan@…

Thanks. In the future, please Cc relevant port maintainers.

comment:2 Changed 11 years ago by ddennedy (Dan Dennedy)

This appears to be a bug in gavl or the way frei0r is compiled against gavl. A frei0r plugin is calling gavl_video_scaler_create(), which takes no options, and this function calls gavl_video_options_set_defaults() where it is crashing.

3 frei0r plugins (out of many) use gavl, and only one of those is used by Kdenlive, but it is not essential. I can change frei0r-plugins to make it not dependent upon gavl, but currently its configure script will enable gavl plugins if gavl is installed. I have to make a patch to properly/fully enable/disable the gavl dependency.

In the meantime, you can work around the problem by simply forcing to uninstall gavl if you have not installed anything else that needs it: sudo port uninstall -f gavl. 'port dependents gavl' will tell you what other packages are using gavl. This works OK because only 1 frei0r plugin will fail to load in Kdenlive due to the missing gavl dependency: Crop, Scale and Position. But there are also Crop and Pan and Zoom effects in Kdenlive that do not use this plugin.

Changed 11 years ago by ddennedy (Dan Dennedy)

Attachment: frei0r-patch-39505.diff added

patches configure.ac to remove gavl dependency

Changed 11 years ago by ddennedy (Dan Dennedy)

Attachment: frei0r-Portfile-39505.diff added

patches frei0r-plugins Portfile to remove gavl dependency

comment:3 Changed 11 years ago by ddennedy (Dan Dennedy)

I have made some patches to frei0r-plugins port to remove the gavl dependency and add a cairo dependency. I chose not to make gavl a variant for the same reason opencv is not a dependency. The frei0r plugins that need them are not that interesting, and these dependencies have caused stability issues. I do not want to invite people to build frei0r-plugins with gavl variant only to have it crash and get another bug report! The somewhat new version 1.4 of frei0r includes new cairo-based plugins, but I forgot to add that when upgrading the Portfile. Cairo is already an indirect dependency of kdenlive (via kde4-runtime), and I tested they work on MacPorts (at least for me for now).

comment:4 Changed 11 years ago by vincent.mcintyre@…

I hit this too on 10.8.4 with kdenlive-0.9.6 and gavl-1.2.0_1.

% gdb /Applications/MacPorts/KDE4/kdenlive.app/Contents/MacOS/kdenlive
(gdb) run
...
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000004034004
0x000000011ed45ea5 in gavl_video_options_set_defaults ()
(gdb) bt
#0  0x000000011ed45ea5 in gavl_video_options_set_defaults ()
#1  0x000000011ed37cf7 in gavl_video_scaler_create ()
#2  0x000000010c30ec89 in fill_param_info ()
#3  0x00000001027ebc10 in mlt_repository_metadata ()
#4  0x0000000102816a63 in Mlt::Repository::metadata ()
#5  0x00000001002d0776 in initEffects::parseEffectFile ()
#6  0x00000001002b95b5 in initEffects::parseEffectFiles ()
#7  0x00000001000c04ac in MainWindow::MainWindow ()
#8  0x00000001000bfbb1 in main ()

So I uninstalled gavl

% sudo port list installed |grep gavl
gavl                           @1.2.0          multimedia/gavl
% sudo port uninstall -f gavl
--->  Unable to uninstall gavl @1.2.0_1, the following ports depend on it:
--->  	frei0r-plugins @1.4_0
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating gavl @1.2.0_1
--->  Unable to deactivate gavl @1.2.0_1, the following ports depend on it:
--->  	frei0r-plugins @1.4_0
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning gavl
--->  Uninstalling gavl @1.2.0_1
--->  Cleaning gavl

and ran again - voila the kdenlive setup window appeared. Thanks Dan!

comment:5 in reply to:  4 Changed 11 years ago by mf2k (Frank Schima)

Replying to vincent.mcintyre@…:

> % sudo port list installed |grep gavl
> gavl                           @1.2.0          multimedia/gavl

Read the FAQ on port list. It does not tell you anything useful here. To see if you have gavl installed, you would run the following command:

port installed gavl

comment:6 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:7 Changed 11 years ago by bitpup

Cc: wheeltong@… added

Cc Me!

comment:8 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:9 Changed 10 years ago by mkae (Marko Käning)

Why is this not yet committed? Anything against the patches?

This solves also #41431!

comment:10 Changed 10 years ago by ddennedy (Dan Dennedy)

It is not committed because no one who has the commit access has simply not committed it! If there were any objections they would have already been added here. I think it has simply been an oversight. If you have access, then commit please as I do not have commit access.

comment:11 Changed 10 years ago by mkae (Marko Käning)

Resolution: fixed
Status: newclosed

Done in r113609

Note: See TracTickets for help on using tickets.