Segfault with DVD in drive

The place to discuss linux version of MakeMKV
Post Reply
LGTrader
Posts: 19
Joined: Thu Oct 23, 2014 7:12 pm

Segfault with DVD in drive

Post by LGTrader » Thu Nov 30, 2023 9:47 pm

I have a few machines here - 2 Kubuntu, one Ubuntu server. I get various segfaults using 1.17.4 depending on what I'm trying to do. However one consistent one I'm seeing is a Kubuntu 23.10 machine segfaults with a disc in but not when the drive is empty:

With no DVD the drive I can scan the machine for disc IDs:

mark@science:~/mkv_test$ makemkvcon -r --cache=1 info disc:9999
MSG:1005,0,1,"MakeMKV v1.17.4 linux(x64-release) started","%1 started","MakeMKV v1.17.4 linux(x64-release)"
MSG:2016,0,3,"Failed to get full access to drive \"Optiarc DVD RW AD-7241S\". Make sure that you either have write access to device \"/dev/sr0\", are member of \"cdrom\" group or have CAP_SYS_RAWIO enabled.","Failed to get full access to drive \"%1 %2\". Make sure that you either have write access to device \"%3\", are member of \"cdrom\" group or have CAP_SYS_RAWIO enabled.","Optiarc","DVD RW AD-7241S","/dev/sr0"
MSG:5075,131072,2,"The new version 1.17.5 is available for download at http://www.makemkv.com/download/","The new version %1 is available for download at %2","1.17.5","http://www.makemkv.com/download/"
DRV:0,0,999,0,"DVD+R-DL Optiarc DVD RW AD-7241S 1.03 Ll19Y9HHhHy2","","/dev/sr0"
DRV:1,256,999,0,"","",""
DRV:2,256,999,0,"","",""
DRV:3,256,999,0,"","",""
DRV:4,256,999,0,"","",""
DRV:5,256,999,0,"","",""
DRV:6,256,999,0,"","",""
DRV:7,256,999,0,"","",""
DRV:8,256,999,0,"","",""
DRV:9,256,999,0,"","",""
DRV:10,256,999,0,"","",""
DRV:11,256,999,0,"","",""
DRV:12,256,999,0,"","",""
DRV:13,256,999,0,"","",""
DRV:14,256,999,0,"","",""
DRV:15,256,999,0,"","",""
MSG:5021,131332,1,"This application version is too old. Please download the latest version at http://www.makemkv.com/ or enter a registration key to continue using the current version.","This application version is too old. Please download the latest version at %1 or enter a registration key to continue using the current version.","http://www.makemkv.com/"
mark@science:~/mkv_test$


However if I put a disc in it segfaults:

mark@science:~/mkv_test$ makemkvcon -r --cache=1 info disc:9999
MSG:1005,0,1,"MakeMKV v1.17.4 linux(x64-release) started","%1 started","MakeMKV v1.17.4 linux(x64-release)"
MSG:2016,0,3,"Failed to get full access to drive \"Optiarc DVD RW AD-7241S\". Make sure that you either have write access to device \"/dev/sr0\", are member of \"cdrom\" group or have CAP_SYS_RAWIO enabled.","Failed to get full access to drive \"%1 %2\". Make sure that you either have write access to device \"%3\", are member of \"cdrom\" group or have CAP_SYS_RAWIO enabled.","Optiarc","DVD RW AD-7241S","/dev/sr0"
MSG:5075,131072,2,"The new version 1.17.5 is available for download at http://www.makemkv.com/download/","The new version %1 is available for download at %2","1.17.5","http://www.makemkv.com/download/"
Segmentation fault (core dumped)


I've used makemkv for years and am a licensed user but I've not posted here in a long, long time. If there's specific info I can provide to help identify the root cause please let me know.

dcoke22
Posts: 3052
Joined: Wed Jul 22, 2020 11:25 pm

Re: Segfault with DVD in drive

Post by dcoke22 » Thu Nov 30, 2023 10:40 pm

I think if the instance of MakeMKV you're using is properly licensed, you won't get the 'your application is too old' message. You'll only get the notice that a newer version is available.

I wonder if that has anything to do with it?

beandog
Posts: 36
Joined: Sun Feb 18, 2018 7:42 am
Location: /usa/utah
Contact:

Re: Segfault with DVD in drive

Post by beandog » Thu Nov 30, 2023 11:23 pm

Make sure that you either have write access to device \"/dev/sr0\", are member of \"cdrom\" group or have CAP_SYS_RAWIO enabled.
Are you in the cdrom group? Run 'groups'

LGTrader
Posts: 19
Joined: Thu Oct 23, 2014 7:12 pm

Re: Segfault with DVD in drive

Post by LGTrader » Fri Dec 01, 2023 8:36 pm

dcoke22 wrote:
Thu Nov 30, 2023 10:40 pm
I think if the instance of MakeMKV you're using is properly licensed, you won't get the 'your application is too old' message. You'll only get the notice that a newer version is available.

I wonder if that has anything to do with it?
Very possibly, at least for the 'too old' message. The problem is it's a headless machine and makemkv won't run over ssh. Other apps on this machine - Chrome, dolphin - can be run over ssh but makemkv doesn't work over ssh and AFAICT there's no documented way to provide the license without using the GUI.

LGTrader
Posts: 19
Joined: Thu Oct 23, 2014 7:12 pm

Re: Segfault with DVD in drive

Post by LGTrader » Fri Dec 01, 2023 8:38 pm

beandog wrote:
Thu Nov 30, 2023 11:23 pm
Make sure that you either have write access to device \"/dev/sr0\", are member of \"cdrom\" group or have CAP_SYS_RAWIO enabled.
Are you in the cdrom group? Run 'groups'
Yes, I believe so:

mark@science:~$ groups
mark adm cdrom sudo dip plugdev users lpadmin sambashare
mark@science:~$

LGTrader
Posts: 19
Joined: Thu Oct 23, 2014 7:12 pm

Re: Segfault with DVD in drive

Post by LGTrader » Fri Dec 01, 2023 8:42 pm

LGTrader wrote:
Fri Dec 01, 2023 8:36 pm
dcoke22 wrote:
Thu Nov 30, 2023 10:40 pm
I think if the instance of MakeMKV you're using is properly licensed, you won't get the 'your application is too old' message. You'll only get the notice that a newer version is available.

I wonder if that has anything to do with it?
Very possibly, at least for the 'too old' message. The problem is it's a headless machine and makemkv won't run over ssh. Other apps on this machine - Chrome, dolphin - can be run over ssh but makemkv doesn't work over ssh and AFAICT there's no documented way to provide the license without using the GUI.
BTW - I did ask in another thread yesterday how to add the license to a headless machine that only runs makemkvcon but so far have no responses.

I was hoping that there would be a config file I could edit by hand, but if not I can try dragging one of the machines to a monitor and keyboard over the weekend.

The second machine that has this problem is an Ubuntu server machine running Plex which doesn't have X or any desktop on the machine so no way to use the gui.

beandog
Posts: 36
Joined: Sun Feb 18, 2018 7:42 am
Location: /usa/utah
Contact:

Re: Segfault with DVD in drive

Post by beandog » Sat Dec 02, 2023 6:19 am

For your key:

edit ~/.MakeMKV/settings.conf and put: app_Key = "key"

LGTrader
Posts: 19
Joined: Thu Oct 23, 2014 7:12 pm

Re: Segfault with DVD in drive

Post by LGTrader » Sat Dec 02, 2023 8:40 pm

Once it had the license the segfault didn't occur.

Note - instead of using the ~/.Makemkv/settings.conf I ran

makemkvcon reg KEY

Strangely this did not create the .Makemkv directory but did apparently put the key somewhere that makemkvcon was apparently happy with.

I did this on two machine and it worked on both.

Post Reply