Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Bug Experimental Mono broken on Linux

Discussion in 'Linux Editor' started by PJayB, Dec 9, 2017.

  1. PJayB

    PJayB

    Unity Technologies

    Joined:
    Apr 24, 2017
    Posts:
    104
    Hi all,

    This week we identified an issue introduced to upstream Mono which severely impacts Linux Editor Beta users using Experimental Mono. As far as I can tell, this applies to all versions of the Linux Editor Beta.

    The issue will usually manifest itself as an error in your Console where background jobs will fail, e.g. Enlighten baking, shader compilation failures, and so on. However, it's likely there are more stability implications that go beyond these error messages, such as random crashes and other unexpected behavior.

    We're currently verifying a potential fix with the Mono Project and our own QA. You will need to switch to stock Mono in the Project Settings and restart your Editor for the changes to take effect. However, be cautious, because any Experimental Mono features your projects make use of will no longer function correctly.

    Thanks.
     
    Last edited: Feb 14, 2018
  2. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    157
    Thanks! When you say "beta" here, it applies to all the Linux builds, right?
     
  3. PJayB

    PJayB

    Unity Technologies

    Joined:
    Apr 24, 2017
    Posts:
    104
    Yes, that's correct. The formal name for the Linux Editor is the Linux Editor Beta, so I meant all Linux versions of the Editor to date.
     
    spacepluk likes this.
  4. DylanDocherty

    DylanDocherty

    Joined:
    Jan 22, 2018
    Posts:
    6
    Has this been fixed yet?
    If not, in the above fix, is that in Unity editor project settings, i cant find any setting to switch to mono, and in monodevelop theres no setting to switch from monoBleedingEdge to anything else. Im running Ubuntu 16.04 LTS and Unity 2017.3.Op2 personal. Not sure if i just miss understood, could you please clarify.
     
  5. rjakob13

    rjakob13

    Joined:
    Apr 13, 2016
    Posts:
    42
    I changed the runtime version in the player settings like in attached screenshot. Open it in Edit / Project Settings / Player and then scroll down to "Other settings".
    RuntimeVersion.png
     
  6. DylanDocherty

    DylanDocherty

    Joined:
    Jan 22, 2018
    Posts:
    6
    aw, this didnt seem to fix my error. Owell time to post about it.
     
  7. IvanRibakov

    IvanRibakov

    Joined:
    Jan 23, 2018
    Posts:
    4
    How would one go about switching from Mono Bleeding Edge to stock Mono when using Linux for CI builds via CLI?
     
  8. Joseph-Ferano

    Joseph-Ferano

    Joined:
    Jul 18, 2008
    Posts:
    165
    Is this something that's also present on OSX? I have 2017.3f1 on Linux and the project opens fine. On OSX, the same project tracked by git, crashes on start up and the logs point to a crash while doing something with lightmaps. We are on MBE and as soon as I reverted to C# 4, the project now opens fine.
     
  9. Joseph-Ferano

    Joseph-Ferano

    Joined:
    Jul 18, 2008
    Posts:
    165
    You can edit the field in the ProjectSettings file directly.
     
  10. XaeroDegreaz

    XaeroDegreaz

    Joined:
    Feb 6, 2010
    Posts:
    13
    I don't understand how come this kind of stuff isn't baked into the editor release. I find it pretty unreasonable that these packages are pulled from an upstream source at build-time, and have the ability to completely grind-to-a-halt a CI process. Now we have to go through our entire project and convert back to different language features in order to get our projects to deploy again.

    @PJayB - Will you be updating this particular thread once the issue is resolved, or should we be monitoring for updates on this somewhere else?
     
    Last edited: Jan 30, 2018
  11. PJayB

    PJayB

    Unity Technologies

    Joined:
    Apr 24, 2017
    Posts:
    104
    I'm not sure what you mean. Mono and MBE are distributed with the Editor, and are never pulled from an upstream source.

    Yes, I will update this thread. We're integrating the upstream fix into 2018.1's MBE right now.
     
    Last edited: Jan 31, 2018
  12. OriginalSINe

    OriginalSINe

    Joined:
    Oct 15, 2016
    Posts:
    12
    How does one "switch to stock Mono"? This is configurable in the PlayerSettings, correct? Even with my attached settings, I am facing problems getting anything to compile. Specifically, I am encountering this probably related error.

    In the editor log, under the "Compiler Commandline Arguments", it looks like it's still using MonoBleedingEdge.
     

    Attached Files:

  13. gururise

    gururise

    Joined:
    Oct 12, 2016
    Posts:
    11
    Any updates? Not able to use the Unity ML-Agents in Linux unless I'm on Mono bleeding edge.
     
  14. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    935
  15. fake-unity-user-6

    fake-unity-user-6

    Joined:
    Jun 6, 2017
    Posts:
    1
    Now I can actually use the editor, thanks! Will there be any further beta updates before the final release?
     
  16. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    I would assume it depends on how long until the final release. If there are 5 more betas and then RCs afterwards I would expect one more before the final one.
     
  17. kiroma

    kiroma

    Joined:
    Feb 4, 2016
    Posts:
    1
    Is it possible to use the version of mono installed on system instead of the one provided with the Editor?
     
  18. gururise

    gururise

    Joined:
    Oct 12, 2016
    Posts:
    11
    Any chance of getting an updated 2017.3 build that fixes the issue?
     
  19. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    935
    No, Unity's mono runtime is heavily customized.
     
  20. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    935
    Sorry, it looks like backporting the fixes to 2017.3 would be pretty involved, and the team is focusing on making the new runtime/framework solid on 2018.x+.
     
    mosaic_school likes this.
  21. LearningNot

    LearningNot

    Joined:
    Sep 30, 2015
    Posts:
    102
    i get segfault on new fresh project, mono 5.14.0 do i need to downgrade or something
     
  22. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    935
    The version of mono you have installed on your system doesn't affect Unity.
    If you're experiencing a crash, please file a bug report.
     
  23. MrDyrektor

    MrDyrektor

    Joined:
    Nov 13, 2016
    Posts:
    14
    Any news about fix of this issue? Will it be fixed in 2018.3?
     
  24. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    935
    It was already fixed in 2018.1.
    If you're experiencing crashes, please file a bug report.