dcpomatic2_kdm_cli KDM generation issue

Anything and everything to do with DCP-o-matic.
Post Reply
emadmohamed
Posts: 2
Joined: Tue Aug 11, 2020 4:21 pm

dcpomatic2_kdm_cli KDM generation issue

Post by emadmohamed »

I am trying to create a KDM from a DKDM using the CLI, but I keep getting an error. The command I am using is:

Code: Select all

dcpomatic2_kdm_cli -f "2020-07-01 16:27:00" -t "2020-09-01 16:27:00" --certificate "cert3.pem" dkdm.xml
Th error I am getting is:

Code: Select all

dcpomatic2_kdm_cli: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = Cinema; typename boost::detail::sp_member_access<T>::type = Cinema*]: Assertion `px != 0' failed.
Aborted (core dumped)
But if I add a cinema and add a screen then add the certificate to the screen using the GUI, this command runs successfully

Code: Select all

dcpomatic2_kdm_cli -f "2020-07-01 16:27:00" -t "2020-09-01 16:27:00" -c "My Cinema" -v dkdm.xml
Please note that I want to be able to generate KDMs to certificates without adding a cinema.

I am using V2.14.33 on Linux Mint 20

Thanks in advance
carl
Site Admin
Posts: 2338
Joined: Thu Nov 14, 2013 2:53 pm

Re: dcpomatic2_kdm_cli KDM generation issue

Post by carl »

I'll sort out a proper fix for this, but you should be able to get around the crash by doing

Code: Select all

dcpomatic2_kdm_cli -f "2020-07-01 16:27:00" -t "2020-09-01 16:27:00" -c "" -S "" --certificate "cert3.pem" dkdm.xml
i.e. specifying an empty cinema and screen name. It's not obvious from the documentation but if you are specifying certificates the idea is that before the certificate you give the cinema and screen that it's for so that the tool can make nice filenames.
emadmohamed
Posts: 2
Joined: Tue Aug 11, 2020 4:21 pm

Re: dcpomatic2_kdm_cli KDM generation issue

Post by emadmohamed »

Thank you Carl the work around you mentioned is working good. Hope this gets fixed in a new version as the tool is really great. Thanks again.
Pedroonl
Posts: 3
Joined: Wed Oct 06, 2021 6:49 pm

Re: dcpomatic2_kdm_cli KDM generation issue

Post by Pedroonl »

Hi, I'm trying to name the output file, but I can only name the directory.

Can somebody help?

Thanks. Peter
Post Reply