INTERACT FORUM

Please login or register.

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

Author Topic: ODroid C2, Getting Segmentation Fault [RESOLVED]  (Read 5893 times)

Zhillsguy

  • Galactic Citizen
  • ****
  • Posts: 325
ODroid C2, Getting Segmentation Fault [RESOLVED]
« on: February 06, 2018, 08:34:48 pm »

OK.... I really like this new C2, but my sole purpose for this thing is to run MC. Hopefully one of you Linux guys can chime in. I tried a couple of their other OS's, but I feel this is the best shot.

I installed the Odroid version of Ubuntu MATE, ran through the usual instructions for Ubuntu, got no errors during the install process. When I try to run MC from a terminal all I get is Segmentation Fault. From the icon the pointer just spins for a few seconds and goes away.

Anything I can check? I realize this is a customized version of Ubuntu and may be up against a wall.

This is from uname -a:

Linux odroid64 3.14.79-116 #1 SMP PREEMPT Tue Sep 26 01:19:06 BRT 2017 aarch64 aarch64 aarch64 GNU/Linux

That may be the key, running 64 bit ARM.

Thanks.

EDIT: I did get some errors retrieving packages when doing sudo apt-get update:
Code: [Select]
odroid@odroid64:~$ sudo apt-get update

Err:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]

Err:44 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]

Err:52 http://us.archive.ubuntu.com/ubuntu xenial-proposed/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]

Fetched 807 kB in 6s (128 kB/s)                                                           
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://dist.jriver.com/latest/mediacenter jessie InRelease' doesn't support architecture 'arm64'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Logged
Ryzen 5 W11 x64 MC 29 HTPC/Server and HP G2 Mini Elitedesk W11 MC 29 (music only zone), various Android Phones and Tablets for control of both, powering two lanai surround systems, 5.1 and 4.1 respectively.

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: ODroid C2, Getting Segmentation Fault
« Reply #1 on: February 08, 2018, 03:36:20 pm »

OK.... I really like this new C2, but my sole purpose for this thing is to run MC. Hopefully one of you Linux guys can chime in. I tried a couple of their other OS's, but I feel this is the best shot.

I installed the Odroid version of Ubuntu MATE, ran through the usual instructions for Ubuntu, got no errors during the install process. When I try to run MC from a terminal all I get is Segmentation Fault. From the icon the pointer just spins for a few seconds and goes away.

Anything I can check? I realize this is a customized version of Ubuntu and may be up against a wall.

This is from uname -a:

Linux odroid64 3.14.79-116 #1 SMP PREEMPT Tue Sep 26 01:19:06 BRT 2017 aarch64 aarch64 aarch64 GNU/Linux

That may be the key, running 64 bit ARM.

Thanks.

EDIT: I did get some errors retrieving packages when doing sudo apt-get update:
Code: [Select]
odroid@odroid64:~$ sudo apt-get update

Err:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]

Err:44 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]

Err:52 http://us.archive.ubuntu.com/ubuntu xenial-proposed/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]

Fetched 807 kB in 6s (128 kB/s)                                                           
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://dist.jriver.com/latest/mediacenter jessie InRelease' doesn't support architecture 'arm64'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

You aren't going to be able to use the repo since there is no arm64 MC.
You will need to get multiple architectures running on your ODroid or put a 32 bit OS on it.
Logged

Zhillsguy

  • Galactic Citizen
  • ****
  • Posts: 325
Re: ODroid C2, Getting Segmentation Fault
« Reply #2 on: February 08, 2018, 09:58:11 pm »

Thanks for the clarification Bob.
Logged
Ryzen 5 W11 x64 MC 29 HTPC/Server and HP G2 Mini Elitedesk W11 MC 29 (music only zone), various Android Phones and Tablets for control of both, powering two lanai surround systems, 5.1 and 4.1 respectively.

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: ODroid C2, Getting Segmentation Fault
« Reply #3 on: February 13, 2018, 04:26:43 pm »

Hi Zhillsguy -

If you figure this out let me know how you did it.  I'm a linux newbie and haven't been able to figure it out myself.
Logged

Zhillsguy

  • Galactic Citizen
  • ****
  • Posts: 325
Re: ODroid C2, Getting Segmentation Fault
« Reply #4 on: February 13, 2018, 06:44:52 pm »

I've tried methods/hints from other threads here to no avail. I'm no Linux guy either, I will post it if a solution is found.
Logged
Ryzen 5 W11 x64 MC 29 HTPC/Server and HP G2 Mini Elitedesk W11 MC 29 (music only zone), various Android Phones and Tablets for control of both, powering two lanai surround systems, 5.1 and 4.1 respectively.

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5240
  • "Linux Merit Badge" Recipient
Re: ODroid C2, Getting Segmentation Fault
« Reply #5 on: February 13, 2018, 07:46:23 pm »

Did you have a look at the pine64 threads on this board and the MC22 for Linux boards?  There were instructions there for getting things running on a 64-bit arm board that should get you past the segfault issues.

EDIT: This is the thread I was thinking of: https://yabb.jriver.com/interact/index.php/topic,104382.msg725627.html#msg725627
Logged

Zhillsguy

  • Galactic Citizen
  • ****
  • Posts: 325
Re: ODroid C2, Getting Segmentation Fault
« Reply #6 on: February 13, 2018, 08:34:39 pm »

Yes, I did, without success.
Also here: https://yabb.jriver.com/interact/index.php/topic,108028.msg749209.html#msg749209

I'm thinking to start from scratch again, and go methodically....may have botched this Ubuntu MATE os.
Logged
Ryzen 5 W11 x64 MC 29 HTPC/Server and HP G2 Mini Elitedesk W11 MC 29 (music only zone), various Android Phones and Tablets for control of both, powering two lanai surround systems, 5.1 and 4.1 respectively.

Zhillsguy

  • Galactic Citizen
  • ****
  • Posts: 325
Re: ODroid C2, Getting Segmentation Fault [RESOLVED]
« Reply #7 on: February 17, 2018, 12:42:17 pm »

First of all a HUGE thanks goes to Lobotom1 for sending me his instructions for installing MC on top of Volumio. To me this is a great combination, as Volumio works very well along side MC. They can be used independently on the C2, which absolutely flies in comparison to the RPi. The full LXDE desktop is quite usable.

I eliminated or modified a few of the steps provided which may not be good but this works for me. I'm sure there are more efficient or proper ways to do this, so feel free to comment for improvements.

---------------------------------------------
Original instructions:
---------------------------------------------
Install volumio and log in (username=volumio, pw=volumio)

1) allow to see what is happening in console and get cursor :

sudo journalctl -f
infocmp >> terminfo.txt
sed -i.bak -e 's/?0c/?112c/g' -e 's/?8c/?48;0;64c/g' terminfo.txt
tic terminfo.txt
tput cnorm

2) install X (as root?) (unsure about "console line")
(sudo) apt-get update
sudo apt-get dist-upgrade
apt-get install console-setup
apt-get install xorg      or   apt-get install xorg mesa-utils
apt-get install lxde-core
exec startlxde

3a) autostart X:
edit file /lib/systemd/system/getty@.service
change the line:
autologin volumio
ExecStart=-/sbin/agetty --noclear %I $TERM
to
ExecStart=-/sbin/agetty --noclear -a volumio %I $TERM

3b) Add this end of the file at ~/.profile (or ~/.zprofile for zsh users):

    [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

---------------------------------------------
My changes and comments:
---------------------------------------------
Step 1:
I eliminated all of step 1 (bad thing?).

Step 2:
I installed lxde-core initially, then re-did with full lxde (apt-get install lxde), since I am lazy and like to copy paste into terminal, and having the other built-in apps comes in very handy. The lxde core is functional (and lighter), but not as user friendly. Full lxde runs beautifully on the C2.

For the next two installs I installed X (lxde) first as root, then as regular user (volumio). The only operational issue I have with MC is the MC window can't be moved/resized, it can only be minimized/maximized for the non-root install. It may not be related to root/non-root X install.

I received the following errors but ignored them and plunged ahead. In the end everything worked:
sudo apt-get update
Err http://ftp.nl.debian.org jessie/main Sources 404  Not Found
Err http://ftp.nl.debian.org jessie/contrib Sources 404  Not Found
Err http://ftp.nl.debian.org jessie/non-free Sources  404  Not Found
Err http://ftp.nl.debian.org jessie/main armhf Packages  404  Not Found
Err http://ftp.nl.debian.org jessie/contrib armhf Packages 404  Not Found
Err http://ftp.nl.debian.org jessie/non-free armhf Packages 404  Not Found
Fetched 5874 B in 3s (1486 B/s)

Step 3:
No changes.

---------------------------------------------
Installation of MC
---------------------------------------------

Follow normal RPi instructions. I received these errors along the way but that didn't stop MC from installing or working properly:

wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
gpg: renaming `/etc/apt/trusted.gpg' to `/etc/apt/trusted.gpg~' failed: Invalid argument
gpg: error writing keyring `/etc/apt/trusted.gpg': file rename error
gpg: error reading `-': file rename error
gpg import from `-' failed: file rename error

W: GPG error: http://dist.jriver.com jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C30B25C6077765D5

W: Failed to fetch http://ftp.nl.debian.org/debian/dists/jessie/main/source/Sources  404  Not Found
W: Failed to fetch http://ftp.nl.debian.org/debian/dists/jessie/contrib/source/Sources  404  Not Found
W: Failed to fetch http://ftp.nl.debian.org/debian/dists/jessie/non-free/source/Sources  404  Not Found
W: Failed to fetch http://ftp.nl.debian.org/debian/dists/jessie/main/binary-armhf/Packages  404  Not Found
W: Failed to fetch http://ftp.nl.debian.org/debian/dists/jessie/contrib/binary-armhf/Packages  404  Not Found
W: Failed to fetch http://ftp.nl.debian.org/debian/dists/jessie/non-free/binary-armhf/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

WARNING: The following packages cannot be authenticated! mediacenter23
Install these packages without verification? [y/N]

debconf: delaying package configuration, since apt-utils is not installed

---------------------------------------------

All in all I am extremely pleased with the C2's performance and this combination install. Volumio is still supporting Odroid devices. The current install image is from December 2017.

Thanks to all in this forum for supporting MC in Linux.




Logged
Ryzen 5 W11 x64 MC 29 HTPC/Server and HP G2 Mini Elitedesk W11 MC 29 (music only zone), various Android Phones and Tablets for control of both, powering two lanai surround systems, 5.1 and 4.1 respectively.

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: ODroid C2, Getting Segmentation Fault [RESOLVED]
« Reply #8 on: February 20, 2018, 04:54:50 pm »

I played with this a bit.
The reason for the segfault is that MC needs libgomp1:armhf to run. I probably should add it to the dependencies.

ldd doesn't seem to work with installed arm64 arch with the armhf libraries so it took a bit to figure out what was missing.

I got a JRMark of 1131 running off of the sdcard.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10968
Re: ODroid C2, Getting Segmentation Fault [RESOLVED]
« Reply #9 on: February 20, 2018, 05:01:42 pm »

I wonder where we pull libgomp in, its not something MC itself uses, and it doesn't ring a bell from the deps I know of.
Logged
~ nevcairiel
~ Author of LAV Filters

Zhillsguy

  • Galactic Citizen
  • ****
  • Posts: 325
Re: ODroid C2, Getting Segmentation Fault [RESOLVED]
« Reply #10 on: February 21, 2018, 09:36:53 pm »

I played with this a bit.
The reason for the segfault is that MC needs libgomp1:armhf to run. I probably should add it to the dependencies.

ldd doesn't seem to work with installed arm64 arch with the armhf libraries so it took a bit to figure out what was missing.

I got a JRMark of 1131 running off of the sdcard.

Bob, thanks for posting this. Installing libgomp1:armhf did the trick. This may help folks with other 64 bit boards as well.
Logged
Ryzen 5 W11 x64 MC 29 HTPC/Server and HP G2 Mini Elitedesk W11 MC 29 (music only zone), various Android Phones and Tablets for control of both, powering two lanai surround systems, 5.1 and 4.1 respectively.

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: ODroid C2, Getting Segmentation Fault [RESOLVED]
« Reply #11 on: February 22, 2018, 09:19:35 am »

I wonder where we pull libgomp in, its not something MC itself uses, and it doesn't ring a bell from the deps I know of.
Looks like it's used in the camera raw image support in libJRImage.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10968
Re: ODroid C2, Getting Segmentation Fault [RESOLVED]
« Reply #12 on: February 22, 2018, 09:22:20 am »

Looks like it's used in the camera raw image support in libJRImage.

Sounds like something we could probably get rid of again by modifying the build.
Logged
~ nevcairiel
~ Author of LAV Filters

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: ODroid C2, Getting Segmentation Fault [RESOLVED]
« Reply #13 on: February 22, 2018, 09:39:23 am »

Sounds like something we could probably get rid of again by modifying the build.
Looks like it, the default configure uses it. Not sure why, perhaps it can't thread without it.
Logged
Pages: [1]   Go Up