You are not logged in.

#1 2014-09-23 03:18:46

TheAmigo
Member
Registered: 2008-04-08
Posts: 68

[SOLVED] Handbrake crashes when selecting a source drive

I just rebuilt my desktop Arch box.  New HD, fresh install... so maybe I'm missing some packages.

When I run ghb, the GUI appears, but as soon as select a source device (e.g. /dev/sr0), it gets a seg fault.

Running via strace, I see the following:

[pid 18424] 21:46:52.862328 stat("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 <0.000011>
[pid 18424] 21:46:52.862393 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 22 <0.000008>
[pid 18424] 21:46:52.862416 fstat(22, {st_mode=S_IFREG|0644, st_size=117395, ...}) = 0 <0.000007>
[pid 18424] 21:46:52.862434 mmap(NULL, 117395, PROT_READ, MAP_PRIVATE, 22, 0) = 0x7f2012ca6000 <0.000010>
[pid 18424] 21:46:52.862455 close(22)   = 0 <0.000005>
[pid 18424] 21:46:52.862479 open("/usr/lib/libdvdcss.so.2", O_RDONLY|O_CLOEXEC) = 22 <0.000008>
[pid 18424] 21:46:52.862497 read(22, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\17\0\0\0\0\0\0@\0\0\0\0\0\0\0(\202\0\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\32\0\31\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\334t\0\0"..., 832) = 832 <0.000007>
[pid 18424] 21:46:52.862516 fstat(22, {st_mode=S_IFREG|0755, st_size=34984, ...}) = 0 <0.000006>
[pid 18424] 21:46:52.862536 mmap(NULL, 2132360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 22, 0) = 0x7f1fea17f000 <0.000007>
[pid 18424] 21:46:52.862553 mprotect(0x7f1fea187000, 2093056, PROT_NONE) = 0 <0.000012>
[pid 18424] 21:46:52.862574 mmap(0x7f1fea386000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 22, 0x7000) = 0x7f1fea386000 <0.000013>
[pid 18424] 21:46:52.862607 close(22)   = 0 <0.000005>
[pid 18424] 21:46:52.862645 mprotect(0x7f1fea386000, 4096, PROT_READ) = 0 <0.000007>
[pid 18424] 21:46:52.862661 munmap(0x7f2012ca6000, 117395) = 0 <0.000013>
[pid 18424] 21:46:52.862692 write(2, "libdvdread: Missing symbols in libdvdcss.so.2, this shouldn't happen !\n", 71) = 71 <0.000006>
[pid 18424] 21:46:52.862729 munmap(0x7f1fea17f000, 2132360) = 0 <0.000010>
[pid 18424] 21:46:52.862750 write(2, "libdvdread: Using libdvdcss version  for DVD access\n", 52) = 52 <0.000006>
[pid 18424] 21:46:52.862772 stat("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 <0.000006>
[pid 18424] 21:46:52.862794 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7f1fea1800a0} ---

this shouldn't happen is always a helpful error message.

Since this is a fresh install, I don't have any prior package versions to try.

I tried re-building libdvdcss without stripping symbols, but that didn't help.

Suggestions welcome.

Last edited by TheAmigo (2014-09-23 10:50:43)

Offline

#2 2014-09-23 03:50:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [SOLVED] Handbrake crashes when selecting a source drive

Offline

#3 2014-09-23 05:08:42

liticovjesac
Member
From: Stockholm-Belgrade-Köln
Registered: 2008-07-16
Posts: 110

Re: [SOLVED] Handbrake crashes when selecting a source drive

Hi,
it seems that I have similar problem. In my case I can see handbrake gui for about second and then it disapears from the screen.
I have tried with older version, even with hanbrake-gtk2 but same results. I can confirm that in my case handbrake was working 2 days ago and since you mention libdvdcss problem might be there. As i remember, that package was updated recently. I will try to install older version of libdvdcss and I will post results here.
I would like to ask something else. How do u start handbrake from terminal? Command handbrake doesnt exist in my case. I tried that because I wanted to see what is going on and what I can read in terminal (error message or something).

Offline

#4 2014-09-23 05:45:22

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [SOLVED] Handbrake crashes when selecting a source drive

That is indeed the same issue (which should now be fixed). smile

Offline

#5 2014-09-23 06:40:06

liticovjesac
Member
From: Stockholm-Belgrade-Köln
Registered: 2008-07-16
Posts: 110

Re: [SOLVED] Handbrake crashes when selecting a source drive

I just downgrade to libdvdcss-1.2.13-3-x86_64 and handbrake-0.9.9-6-x86_64 and everything is working fine.

Offline

#6 2014-09-23 10:50:29

TheAmigo
Member
Registered: 2008-04-08
Posts: 68

Re: [SOLVED] Handbrake crashes when selecting a source drive

Yep, upgrading to handbrake-0.9.9-8 fixed it, thanks.

Offline

#7 2014-10-06 00:21:13

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

I've tried upgrading to 0.9.9-8 as well as downgrading to 0.9.9-6 and it core dumps regardless.  I have also tried downgrading libdvdcss and libdvdread as suggested above without any success.  I will start to rip a DVD and Handbrake will crash.  I have also tried running the SVN version from the AUR, but I get the same behavior.  That would lead me to believe it might be something outside of Handbrake causing the crash.  Anyone else still having similar problems?

Offline

#8 2014-10-06 14:46:09

shetland_breeder
Member
From: England
Registered: 2010-05-17
Posts: 67
Website

Re: [SOLVED] Handbrake crashes when selecting a source drive

I'm having a similar problem. Handbrake gets part way through scanning a DVD and crashes. Running it from the command line gives:

*** Error in `ghb': double free or corruption (fasttop): 0x00007f7050009440 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x7340e)[0x7f706628c40e]
/usr/lib/libc.so.6(+0x7884e)[0x7f706629184e]
/usr/lib/libc.so.6(+0x7900b)[0x7f706629200b]
/usr/lib/libdvdnav.so.4(dvdnav_free_dup+0x59)[0x7f706b5341b9]
ghb[0x4ae91f]
ghb[0x4aed84]
ghb[0x4a6f56]
ghb[0x48fd6b]
/usr/lib/libpthread.so.0(+0x7314)[0x7f7069a51314]
/usr/lib/libc.so.6(clone+0x6d)[0x7f70663013ed]

Could this be another incompatibility between Handbrake's own libdvdxxx libraries and the system ones?

Pete

Offline

#9 2014-10-06 21:06:19

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

shetland_breeder wrote:

I'm having a similar problem. Handbrake gets part way through scanning a DVD and crashes. Running it from the command line gives:

*** Error in `ghb': double free or corruption (fasttop): 0x00007f7050009440 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x7340e)[0x7f706628c40e]
/usr/lib/libc.so.6(+0x7884e)[0x7f706629184e]
/usr/lib/libc.so.6(+0x7900b)[0x7f706629200b]
/usr/lib/libdvdnav.so.4(dvdnav_free_dup+0x59)[0x7f706b5341b9]
ghb[0x4ae91f]
ghb[0x4aed84]
ghb[0x4a6f56]
ghb[0x48fd6b]
/usr/lib/libpthread.so.0(+0x7314)[0x7f7069a51314]
/usr/lib/libc.so.6(clone+0x6d)[0x7f70663013ed]

Could this be another incompatibility between Handbrake's own libdvdxxx libraries and the system ones?

Pete

I'm seeing similar errors when I try to rip a DVD.  Hopefully we can get it sorted soon.

Offline

#10 2014-10-07 15:33:44

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [SOLVED] Handbrake crashes when selecting a source drive

The double free in dvdnav_free_dup should be fixed in libdvdnav 5.0.1-1 (which I just pushed to [extra]).

Offline

#11 2014-10-07 16:43:48

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

Awesome.  I'll update when I get home and report the results.  Thanks.

Offline

#12 2014-10-07 20:10:48

shetland_breeder
Member
From: England
Registered: 2010-05-17
Posts: 67
Website

Re: [SOLVED] Handbrake crashes when selecting a source drive

Great! Handbrake now works again, for me at least.

Thanks

Offline

#13 2014-10-07 22:24:47

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

No go for me.  Handbrake seg faults and core dumps whenever I start trying to rip a DVD.  This is with everything up to date running handbrake-0.9.9-8 and the new libdvdnav that you just pushed.  Not sure if I need to downgrade anything to make it work.

Offline

#14 2014-10-07 22:42:37

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

I should also note that on the rare occasion that it doesn't core dump right away and proceeds with ripping the disc, the output file is totally garbled and full of artifacts.

Offline

#15 2014-10-07 23:54:03

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

Playback of DVDs through VLC in either my DVD or Bluray drive results in garbled playback as well.

Offline

#16 2014-10-08 16:56:46

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

I just tried playback of a DVD and ripping via Handbrake on a different Arch machine and everything is totally fine so it seems that the issue is with my one machine.  Now to figure out what the hell is wrong with my machine if it's not this.

Offline

#17 2014-10-11 14:38:19

lakerssuperman
Member
Registered: 2013-07-30
Posts: 24

Re: [SOLVED] Handbrake crashes when selecting a source drive

Just to follow up.  It appears I have solved my issue.  I simply deleted my .dvdcss file and everything began working perfectly.  Not sure of the reason, but it's been a few days and everything seems to be working well still.  Thanks for all the help.

Offline

#18 2016-06-13 17:23:45

Neije
Member
Registered: 2011-07-06
Posts: 31

Re: [SOLVED] Handbrake crashes when selecting a source drive

dumb question but : where did you find that file ?

Offline

#19 2016-06-13 17:37:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] Handbrake crashes when selecting a source drive

Please do not necrobump old threads.  In this case, that file is in one's home directory: ~/.dvdcss

Closed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB