INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Segmentation Fault When Starting  (Read 5875 times)

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5907
  • Farm Animal Stupid
Segmentation Fault When Starting
« on: November 18, 2014, 10:02:48 am »

Hey guys.. I've recently needed to switch to Linux (Mint Cinnamon) and have so far been unable to get MC to run. It ran fine in the VM I tested it in, but for some reason it's giving me a segfault now that I'm trying to run it in the real thing. I'm a bit of a linux noob so I don't really know where to start looking to troubleshoot, but if you're willing to guide me I'm willing to do whatever and provide whatever info you need.

Here's what I get:

Code: [Select]
$ mediacenter20
Found 0 devices (devices will be listed below)

Total time: 3 ms
Result: 0
Segmentation fault

The main window shows for a short time, but it won't stay running long enough for me to actually do anything. It starts the countdown to auto-import but never makes to the end of the countdown and if I try clicking in the Action Window to try and configure import settings it segfaults.

Any ideas where to start looking? Not having access to my music is honestly one of the most nerve-wracking parts of switching to linux right now.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71656
  • Where did I put my teeth?
Re: Segmentation Fault When Starting
« Reply #1 on: November 18, 2014, 10:09:06 am »

There are a couple of threads on installing on Mint.  Probably best to post in one of them.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5181
  • "Linux Merit Badge" Recipient
Re: Segmentation Fault When Starting
« Reply #2 on: November 18, 2014, 10:36:23 am »

IME, segfaulting on opening is usually a symptom of a missing dependency; double check that you have all of MC's dependencies installed.

See here for a list of dependencies tailored to Ubuntu and Mint: http://yabb.jriver.com/interact/index.php?topic=87051.msg595719#msg595719
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5907
  • Farm Animal Stupid
Re: Segmentation Fault When Starting
« Reply #3 on: November 18, 2014, 10:41:28 am »

Yep, that's the page I followed when doing the install. Ran a sudo apt-get install -f just to be sure and it looks like my dependencies are clean.

I did manage to get the Windows version running in Crossover though so at least I'm not dead in the water. I'd still prefer to go native for performance reasons but this will at least get me through in the meantime.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5181
  • "Linux Merit Badge" Recipient
Re: Segmentation Fault When Starting
« Reply #4 on: November 18, 2014, 11:04:26 am »

Are you seeing anything untoward in dmesg or the syslog/journal?  Try "tail -F" with the syslog, or "watch" dmesg (while piping to tail); then start MC in another terminal to see what happens.

There are often clues to be found there especially if the problem is dependency or hardware related.  
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5907
  • Farm Animal Stupid
Re: Segmentation Fault When Starting
« Reply #5 on: November 18, 2014, 11:47:05 am »

Didn't see anything in dmesg but I caught this in syslog:

Code: [Select]
Nov 18 12:45:02 Harvey kernel: [  308.528758] mediacenter20[2993]: segfault at 0 ip 00000000f52cb2f9 sp 00000000ffdf11f0 error 4 in libJRReader.so[f5235000+483000]
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5181
  • "Linux Merit Badge" Recipient
Re: Segmentation Fault When Starting
« Reply #6 on: November 18, 2014, 12:35:00 pm »

Didn't see anything in dmesg but I caught this in syslog:

Code: [Select]
Nov 18 12:45:02 Harvey kernel: [  308.528758] mediacenter20[2993]: segfault at 0 ip 00000000f52cb2f9 sp 00000000ffdf11f0 error 4 in libJRReader.so[f5235000+483000]

Well you've got an error code at least; I don't know what that specific code means (I haven't seen it before), but maybe Bob can weigh in?
Logged

InflatableMouse

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3978
Re: Segmentation Fault When Starting
« Reply #7 on: November 18, 2014, 02:35:53 pm »

I didn't read the Mint install thread but are you using p11-kit instead of gnutls? There was another thread somewhere about that segfault, I believe it had something to do with that.
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5907
  • Farm Animal Stupid
Re: Segmentation Fault When Starting
« Reply #8 on: November 19, 2014, 12:59:04 pm »

I didn't read the Mint install thread but are you using p11-kit instead of gnutls? There was another thread somewhere about that segfault, I believe it had something to do with that.

Based on the steps I followed it looks like I'm using p11-kit. Should I remove that and install gnutls? Or is it safe to just install gnutls?
Logged

InflatableMouse

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3978
Re: Segmentation Fault When Starting
« Reply #9 on: November 19, 2014, 01:59:53 pm »

I wasn't very clear. Read here: http://yabb.jriver.com/interact/index.php?topic=92302.0, it has some background on the switch.

Don't remove p11-kit, see if you can install gnutls and see which dependencies it pulls in.
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5907
  • Farm Animal Stupid
Re: Segmentation Fault When Starting
« Reply #10 on: November 19, 2014, 02:54:02 pm »

I'm afraid I still don't understand. I'm not sure how to install gnutls. If I read that thread correctly it looks like switching to gnutls created a dependency on p11-kit-modules:i386 which I do have installed. I also installed libp11-kit-gnome-keyring:i386 and exo-utils (wasn't sure if I should based on what I was reading but I figured it was worth a shot) and I'm getting the same problem with the same error logged in syslog.

I also verified that /etc/ssl/certs/ca-certificates.crt was present.
Logged

InflatableMouse

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3978
Re: Segmentation Fault When Starting
« Reply #11 on: November 20, 2014, 12:54:05 am »

I'm not familiar with Mint but isn't there a package for gnutls?
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5907
  • Farm Animal Stupid
Re: Segmentation Fault When Starting
« Reply #12 on: November 20, 2014, 08:18:20 am »

AFAIK, Mint uses the same packages as Ubuntu... or seems to. Again I'm a Linux noob so I could be way off base with that.

I did some hunting around and the only thing I could find in reference to gnutls mentioned libgnutls26 and libgnutls28, which I already had installed.

Code: [Select]
[doof@Harvey] ~
$ sudo apt-get install libgnutls26
[sudo] password for doof:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgnutls26 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
[doof@Harvey] ~
$ sudo apt-get install libgnutls28
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgnutls28 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5181
  • "Linux Merit Badge" Recipient
Re: Segmentation Fault When Starting
« Reply #13 on: November 20, 2014, 08:43:49 am »

Ok let's get back to basics:

1) First let's rule out permissions issues: what happens if you try to run MC as root (or using sudo)?  How about as a different user?

2) Second, let's rule out package issues:  In your apt output in your last post it says "36 not upgraded" which means apt thinks you have 36 out of date packages.  If you're using Mint's graphical package manager, you may be missing package updates.  Mint filters out certain updates that it thinks might be disruptive, but that means that you'll be perpetually out of date on some packages.  IME it's desirable to stay as up to date as possible, and the way to do that is to run
Code: [Select]
sudo apt-get update && sudo apt-get dist-upgrade That will update the database of available packages (the "update" part) and then upgrade all the packages to the latest versions if possible, while resolving any new dependencies that packages may have (the "dist-upgrade" part).  If you haven't run "update" in a while, you may have many more out of date packages than 36, but apt just doesn't know it because the databases haven't been synced.  If you haven't run dist-upgrade in a while, some of your packages may have new dependencies that are not currently met.

If you see errors while trying to upgrade packages, don't force it, report back with the errors and we can talk through it.  It can be disruptive to upgrade all packages, but I've found that the cost in disruption of not upgrading typically exceeds the cost of upgrading over the long term, and I take a dim view of Mint's selective upgrade system.

3) Third, let's make sure we're all on the same page distro-wise: Are you running plain Mint Cinnamon 17, not Mint Debian Edition with Cinnamon?  Or something else?  Are you running a 64-bit or 32-bit installation?  Are you comfortable enough with Linux to try a different desktop environment to see if it's Cinnamon related (if not, no worries).

4) Fourth, does other Linux A/V software work normally?  What happens if you try to run banshee or clementine?  How about VLC player?

I don't have a mint build currently so I'm a little limited, but I've used Mint 17 in the past and have a current Debian install (which is the package source for ubuntu and mint), so hopefully I can help keep the ball rolling.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13599
Re: Segmentation Fault When Starting
« Reply #14 on: November 20, 2014, 12:00:14 pm »

You are still probably missing something related to gnutls.

Did you install the i386 version of that? We can't use the x64 version.

You could try using ldd to see if anything is missing.

ldd -d /usr/lib/jriver/Media\ Center\ 20/libJRReader.so

Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5181
  • "Linux Merit Badge" Recipient
Re: Segmentation Fault When Starting
« Reply #15 on: November 23, 2014, 12:44:56 pm »

Doof, do you have an nvidia card by any chance? Another user with a similar issue solved the problem by installing 32-bit video driver components (libgl1-nvidia-glx:i386): http://yabb.jriver.com/interact/index.php?topic=93611.msg645499;topicseen#msg645499
Logged
Pages: [1]   Go Up