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. Dismiss Notice

Bug [Solved] Adding stuff (texture, script) using GUI crashes the editor

Discussion in 'Linux' started by AurimasBlazulionis, Jan 9, 2016.

  1. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    The editor crash when you add component using Add Component button, but it only happens if you click with mouse, not press enter with keyboard. Logs don't say much.

    EDIT:
    This is critical, the editor also crashes if you try to add texture or probably other stuff to terrain. This means the terrain is impossible to complete. You can make hills but you won't paint it.

    EDIT2:
    If it still happens for you even on the latest build (5.3.2), make sure you have your system fully updated. If for example you use ubuntu 15.04, make sure you update to 15.10 as it has more updated packages.
     
    Last edited: Feb 13, 2016
  2. NomadDemon

    NomadDemon

    Joined:
    Jan 9, 2016
    Posts:
    3
    same problem, cant add script to rigidbody

    editor crashes
     
  3. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    As a workaround you can use in the top bar component -> physics -> rigidbody or press add component and navigate using keyboard, not mouse
     
  4. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    Found a more critical thing which is that it is impossible to add something like textures to terrain, because it crashes the editor and there's no way of doing it without mouse.
     
  5. cheleb

    cheleb

    Joined:
    Nov 20, 2012
    Posts:
    6
    Same here on Debian under GNOME Shell. I just sent a bug report (Case 760521) with some gdb backtraces which hopefully help!
     
  6. ConnallTheCoble

    ConnallTheCoble

    Joined:
    Aug 10, 2013
    Posts:
    2
    Okay, so I don't particularly recommend this course of action but it might be a bit of a workaround if you need it.

    I decided to give running Unity as a superuser as a shot (using sudo on the /opt/Unity/Editor Unity file) and as it turns out what caused the issue, was an error dialog that would cause Unity to crash out. When I diagnosed the issue the dialog box was reporting and switched back to being a regular user, it allowed me to do what I could not accomplish as a regular user (without superuser elevation)

    Unity tells you not to run Unity as a superuser I can certainly see why, you might experience some oddities and files written will be controlled by the root user, so you will need to reset the files/folders permissions should you wish to go back to using Unity as a regular user.

    Didn't try this on terrain stuff, but it worked on the drag and drop issue. So maybe it will work on that? Leaving this info here, in case it helps any of the Unity folks.
     
  7. Wulfara

    Wulfara

    Joined:
    Aug 11, 2015
    Posts:
    40
    Nice info! That makes me think that maybe some issues could be fixed/workarounded by adding our users to one or more system groups which would add some more access without having to run Unity as root.

    Perhaps someone from the Unity team can tell us what system groups are recommended to run Unity on Linux (if any)?
     
    Last edited: Jan 12, 2016
  8. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    But...what was the issue triggering the error dialog?
     
  9. ConnallTheCoble

    ConnallTheCoble

    Joined:
    Aug 10, 2013
    Posts:
    2
    In this case it was the standard error dialog about attaching a script to a GameObject as a component where the script does not inherit from MonoBehaviour.

    Edit: C# script if that matters.
     
  10. NomadDemon

    NomadDemon

    Joined:
    Jan 9, 2016
    Posts:
    3
    'add component -> script -> c#' = crash

    but same with JS, js only didnt crashed once on 2d gameobject

    tool is unusable, cannot script anything :(
     
  11. Wulfara

    Wulfara

    Joined:
    Aug 11, 2015
    Posts:
    40
    Hi NomadDemon. You can workaround it selecting the GameObject (highlighting it) and adding components from the top menu bar "Component" (not the inspector button) and navigating throug the categories (e.g. "Scripts"). This way never crashes for me.
     
  12. NomadDemon

    NomadDemon

    Joined:
    Jan 9, 2016
    Posts:
    3
    Thanks, i will try at home
     
  13. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    Just wanted to ask if someone have found a workaround for things which can not be done without mouse, like adding texture to terrain?
     
  14. bgse

    bgse

    Joined:
    Jan 30, 2016
    Posts:
    1
    Good to know, thank you.

    Another workaround is to find a similar component, use the "copy component" in inspector (the little gear icon on the component), then paste that to your target and edit appropriately.
     
  15. cheleb

    cheleb

    Joined:
    Nov 20, 2012
    Posts:
    6
    Hey Tak,

    did you by any chance have a look at my bug report regarding this issue?
    It's case 760521. I just tested with the newly released 5.3.2f1+20160208 and can confirm this is still happening.
     
  16. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    For me it was fixed after system update. I don't know, 1 month ago on the same (older) build I had crashes, but after updating the system (arch linux) to latest packages (not the editor though) fixed all the issues. Try it on your distro, if not well... good luck finding what causes that...
     
  17. cheleb

    cheleb

    Joined:
    Nov 20, 2012
    Posts:
    6
    Thanks for the heads up and i am glad it's working for you now. Unfortunately a system upgrade doesn't work for me. I've gone through several of these by now - no dice so far. :) I will open another thread soon with more info.
     
  18. Gordyus

    Gordyus

    Joined:
    Mar 3, 2016
    Posts:
    8
    upload_2021-3-4_21-50-21.png
    Please do something, this happen randomly and to often...
    This time is juste an alt+tab to switch application, come back to Unity and boom, Hold on...
    I've tried to remove every editor scripts, close visual studio, switch to release mode...

    But i've found that this panel appears every time I clic to the shader type dropdown

    EDIT: I know you're already on it, it's just that I don't know what to do :/
     
    Last edited: Mar 4, 2021
  19. Coadon_Pile

    Coadon_Pile

    Joined:
    Sep 18, 2020
    Posts:
    4
    Same here, same problem.