Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Building a unity Linux app-game on Linux.

Discussion in 'Linux' started by MJ-meo-dmt, Nov 30, 2015.

  1. MJ-meo-dmt

    MJ-meo-dmt

    Joined:
    Feb 18, 2015
    Posts:
    12
    Hi, Since I haven't "reported" anything else since the very first build, I'll mention some things here quick.
    For the main Issue see point 4.

    1. I would like to thank the devs that made it possible! Free coffee and cookies for everyone!!! Unity Linux is awesome, really its great I have been enjoying it so much and it really "resparked" the whole game dev spirit, and most important of all I finally dropped windows!

    2. It has minor issues here and there, as expected:
    - As everybody knows the first run sign in screen doesn't take Keyboard Input. I'm on Ubuntu 15.10 - xfce and Mint 17.2 - xfce. As many should know about now, fluxbox is a quick work around.

    - Almost always when you want to open extra windows in the Editor, like Window>something it won't open until you retry, which then works.

    - Most times if you have 2 by 3 layout setup, and you move the mouse from the scene window over to the Game window the mouse cursor would get stuck in the resize shape.

    - Sometimes the mouse would jump to the left up most corner and grab the window, which results it a "Move - window state" which then resizes the whole editor window and messing up all the sizes of the 2by3 setup.

    - I had one random crash/close of the editor while I was editing a Gameobject

    - When you open the UnityServices window it blanks out the whole side of the inspector window widget? You can "reopen" it which then makes it show up again, but once you close it it just blanks out the widget/area again. One way to fix it is to reload/reset your layout.​

    3. Some more heavier issues I guess.
    - Unity sometimes won't kill all process when you exit it. This is on Mint 17.2 64Bit
    These things stay running, not really using CPU but RAM.
    • UnityHelper
    • UnityShaderCompiler
    • Unity/Editor/Unity *This sometimes stays running aswell
    If I don't manually close these process I get some weird things when I run the editor again, well not really weird but some issues it complains about.
    Like: Socket: bind failed, error: Address already in use(98)

    4. The actual issue I have been experiencing.
    - I tried Building a Linux x86-64, the build finishes, and opens the folder for me. When I run the app, it opens up the settings screen for Resolution & Input, once I click 'OK' it opens up a window, quickly dark blue, quick gray then exits. Here is a terminal output running it. Also note the UnityPlayer.png error, once I add that png manually from other projects that build fine(From windows and The First linux version) it just takes the error output away but still fails to run.

    And here is screenshots of the window, mind the '4' shape thing Must be record my desktop with the mouse or something that messed it up, but you can still see the two colors the window makes, right after I clicked 'OK'

    Code (csharp):
    1. ~/Development/Unity/Builds $ ./FireShard.x86_64
    2. Set current directory to /home/mj-meo-dmt/Development/Unity/Builds
    3. Found path: /home/mj-meo-dmt/Development/Unity/Builds/FireShard.x86_64
    4. Mono path[0] = '/home/mj-meo-dmt/Development/Unity/Builds/FireShard_Data/Managed'
    5. Mono path[1] = '/home/mj-meo-dmt/Development/Unity/Builds/FireShard_Data/Mono'
    6. Mono config path = '/home/mj-meo-dmt/Development/Unity/Builds/FireShard_Data/Mono/etc'
    7. displaymanager : xrandr version warning. 1.4
    8. displaymanager : trying .X11-unix
    9. client :0 has 1 screens
    10. displaymanager screen (0): 1366 x 768
    11. Using libudev for joystick management
    12.  
    13. Importing game controller configs
    14. Preloaded type GtkListStore
    15. Preloaded type GtkWindow
    16. Preloaded type GtkVBox
    17. Preloaded type GtkImage
    18. Preloaded type GtkNotebook
    19. Preloaded type GtkHBox
    20. Preloaded type GtkFrame
    21. Preloaded type GtkAlignment
    22. Preloaded type GtkTreeView
    23. Preloaded type GtkLabel
    24. Preloaded type GtkCheckButton
    25. Preloaded type GtkScrolledWindow
    26. Preloaded type GtkComboBox
    27.  
    28. (FireShard.x86_64:7514): Gtk-WARNING **: Error loading icon from file '/home/mj-meo-dmt/Development/Unity/Builds/FireShard_Data/Resources/UnityPlayer.png':
    29.     Failed to open file '/home/mj-meo-dmt/Development/Unity/Builds/FireShard_Data/Resources/UnityPlayer.png': No such file or directory
    30. Aborted
    31.  
    I have had a few cases where the Build won't complete where it would just hang in the middle of the bar... Though as I mentioned somewhere here, that the first Build of the Unity Linux editor build just fine, on the same project and not much has changed. Also I'd say this that it does it with all my projects even If i create a new project. (All the Arch types does exactly the same, under build settings, also ticking the extra things make no difference)

    Any other details on this ill add to this post.

    I will also retest this on my desktop later tonight to see what it does on that. The version I'm using is 5.2.2 Build #2015101801

    EDIT: Specs are:
    LinuxMint 17.2 (rafaela)
    Kernel: 3.16.0-38-generic
    CPU: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
    RAM: 8GB
    GPU: AMD/ATI Radeon HD 7600M Series + HD 4000 Switchable
     
    Last edited: Nov 30, 2015
  2. MJ-meo-dmt

    MJ-meo-dmt

    Joined:
    Feb 18, 2015
    Posts:
    12
    UPDATE:

    So I tried building a x86 / 64 (one of each) on my desktop and it worked fine so I figure it must be something with that system on my laptop(Which is being reinstalled with Ubuntu 15.10).

    I see that even on my Desktop system, those processes I mentioned; they stay active after Unity3D has been closed aswell.
     
    Last edited: Nov 30, 2015
  3. MJ-meo-dmt

    MJ-meo-dmt

    Joined:
    Feb 18, 2015
    Posts:
    12
    UPDATE:

    Regarding point 3, on the first post. The processes staying active.... That only seems to happen when you built something. Otherwise it closes everything down just fine.