LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Cannot run Unity3D as average user. Getting Segmentation Fault error. Can open as root, however. (https://www.linuxquestions.org/questions/linux-mint-84/cannot-run-unity3d-as-average-user-getting-segmentation-fault-error-can-open-as-root-however-4175647909/)

erbcalb 02-08-2019 03:36 PM

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!

Sudonix 02-15-2019 11:08 PM

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

ondoho 02-16-2019 08:01 AM

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.

erbcalb 02-19-2019 08:39 AM

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.

erbcalb 02-19-2019 08:40 AM

How do I mark this thread as solved?

ondoho 02-21-2019 01:47 AM

Quote:

Originally Posted by erbcalb (Post 5964013)
How do I mark this thread as solved?

see my signature.


All times are GMT -5. The time now is 08:30 PM.