LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 02-08-2019, 03:36 PM   #1
erbcalb
LQ Newbie
 
Registered: Feb 2019
Posts: 3

Rep: Reputation: Disabled
Cannot run Unity3D as average user. Getting Segmentation Fault error. Can open as root, however.


Hi, My name is Caleb and I truth be told this is the first question I've asked on a forum so bear with me. My problem is this: I have installed the Unity3D game engine on my linux system, but when I run it, it gives me a segmentation fault (core dumped) error. I can open and run the program as root but I am unable to build apps to my android phone (I'm guessing because I am root). Even when I open as root, it says this is not recommended. So I tasked myself to research...and found very little. So I come to you today asking for help before I throw my laptop out my window.

OS: Linux Mint Cinnamon 19.1
Unity Version: 2018.3.5f1
Unity Installation Medium: UnityHub

The strace output when I run as ordinary user:
https://github.com/2018erbcalb/Unity...ce-nonroot.txt

The strace output when I run as root (Note I closed the program at the end, giving what seems to be an error, as to not put a massively long section of code here):
https://github.com/2018erbcalb/Unity...trace-root.txt

I uploaded the outputs to GitHub due to the character limitations.


I am honestly baffled as to why this is happening. I read in my research that a segmentation fault occurs when the program is trying to access memory that it doesn't have access to. I'm not sure if this is correct or not, but it is what I read. Any help on this would be much appreciated. Thank you!
 
Old 02-15-2019, 11:08 PM   #2
Sudonix
LQ Newbie
 
Registered: Jan 2019
Location: /dev/null
Distribution: Arch
Posts: 20

Rep: Reputation: 1
Wink

I haven't used Unity3D myself, but I'd bet that the segmentation fault is due to your user trying to access parts of the program it isn't authorized to. Running it as root works because it has full system authority. Warnings advising you not to run something as root can generally be ignored. They're put in to warn you that a program in particular can cause system damage if used improperly.

You may consider trying to chown (change ownership) of the program directory to your user and see if that changes anything.
For example:
Code:
sudo chown -R yourusername /path/to/directory
 
Old 02-16-2019, 08:01 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,044
Blog Entries: 7

Rep: Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778
i'm not good at reading strace output, but what i see is this:
Code:
rename("/home/caleb/.config/unity3d/Editor.log", "/home/caleb/.config/unity3d/Editor-prev.log") = -1 EACCES (Permission denied)
and after that just some sort of prelude to the actual segfault.
i suggest you rename or simply delete ALL unity3d configuration directories under your $HOME, or at least change ownership to your user. it seems some of it's root owned now.
typical places to look are of course /home/caleb/.config/, then ~/.cache, ~/.local/share and ~ itself (hidden files).

btw ~ stands for $HOME stands for /home/caleb.
 
Old 02-19-2019, 08:39 AM   #4
erbcalb
LQ Newbie
 
Registered: Feb 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
I apologize dearly to those who have taken the time to reply. I am new to forums, and when I posted my original thread I did some more testing (which including installing a fresh install of Linux Mint) and that fixed it. I have no clue what was wrong with it but it worked after that. I though to delete this post afterwards, but I apparently couldn't find it until the admins accepted it or something like that. :/ I thank you both who took the time, and again I'm sorry.
 
Old 02-19-2019, 08:40 AM   #5
erbcalb
LQ Newbie
 
Registered: Feb 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
How do I mark this thread as solved?
 
Old 02-21-2019, 01:47 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,044
Blog Entries: 7

Rep: Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778
Quote:
Originally Posted by erbcalb View Post
How do I mark this thread as solved?
see my signature.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change password but "user not exist" however it is on the user list arketipi Ubuntu 7 01-29-2017 07:50 PM
Getting ADB working through Wine? (For Unity3D, that's why) Abscissa256 Linux - Software 1 11-08-2014 05:37 AM
[SOLVED] Getting into real trouble: ldconfig gives segmentation fault when run (boot time). stf92 Slackware 2 11-23-2013 05:33 PM
[SOLVED] Cannot print out of thunderbird; getting a segmentation fault instead integrale16 Slackware 3 07-09-2010 04:44 PM
can't "su" to root user - segmentation fault bioalchemist Linux - General 3 11-26-2007 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration