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.
Segfault with DVD in drive
Re: Segfault with DVD in drive
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?
I wonder if that has anything to do with it?
Re: Segfault with DVD in drive
Are you in the cdrom group? Run 'groups'Make sure that you either have write access to device \"/dev/sr0\", are member of \"cdrom\" group or have CAP_SYS_RAWIO enabled.
Re: Segfault with DVD in drive
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.
Re: Segfault with DVD in drive
Yes, I believe so:
mark@science:~$ groups
mark adm cdrom sudo dip plugdev users lpadmin sambashare
mark@science:~$
Re: Segfault with DVD in drive
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.LGTrader wrote: ↑Fri Dec 01, 2023 8:36 pmVery 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.
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.
Re: Segfault with DVD in drive
For your key:
edit ~/.MakeMKV/settings.conf and put: app_Key = "key"
edit ~/.MakeMKV/settings.conf and put: app_Key = "key"
Re: Segfault with DVD in drive
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.
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.