Search Unity

Crash on start on linux builds.

Discussion in 'Linux' started by PetrisPeper, Jul 7, 2019.

  1. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    We've recently updated to unity 2018.3 from unity 2018.2, and our builds are crashing giving this on start if we're using versions newer than 2018.3.7f1 (tested 2018.3.9f1, and later builds, 2019.1 and 2019.2).
    Error:
    Stack overflow in unmanaged: IP: 0x55bc29423c5a, fault addr: 0x7f614800afe8
    StackOverflowException: The requested operation caused a stack overflow.
    at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_object_new_specific(intptr)
    at UnityEngine.UI.MaskableGraphic..ctor () [0x00015] in <3fd465fd218a47abac2595cdfbbc0639>:0
    at UnityEngine.UI.Image..ctor () [0x0004b] in <3fd465fd218a47abac2595cdfbbc0639>:0
    UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    UnityEngine.Logger:LogException(Exception, Object)
    UnityEngine.Debug:LogException(Exception)
    UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
    System.Object:__icall_wrapper_ves_icall_object_new_specific(IntPtr)
    UnityEngine.UI.MaskableGraphic:.ctor()
    UnityEngine.UI.Image:.ctor()

    Due to a different, smaller bug we have to update to a newer versions cause it was fixed there, so this currently stops us from releasing an update to our game.
    Does anybody else also experience this?

    (to unity staff: if you need to see our code, message me, we can give git access to the project)
     
  2. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    18
    @PetrisPeper can you file a bug and link that to here, and if possible provide a smaller repro with the bug ?
     
  3. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,220
    I reported the same bug a month ago, case #1158390.
    Can confirm that this is really critical for multiplayer games. We are all stuck with 2018.3.6 because headless builds always crash with this bug.

    Any news would be greatly appreciated :)
     
  4. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    @andrews_unity Our project is quite big (about 10GB without Library) so uploading it with a report doesn't really sound good, and since it's that big, we aren't able to find the source of the issue, thus we aren't able to make a reproduction project.
    But, as we can see @vis2k already reported it.
     
  5. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,220
    Any news on this?
     
  6. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    18
    @vis2k I have fixed your bug and hopefully will land in 2019.3, @PetrisPeper its unclear if your bug is the same bug as the callstack from @vis2k is very different and in a completely unrelated area, can you DM me and file a bug for the issue.
     
    Djayp and vis2k like this.
  7. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,220
    That is so awesome to hear, you have no idea :)

    Any chance the fix to land in 2018 LTS? Most multiplayer games rely on LTS for server stability, and this way we would have to wait until 2019 LTS again.

    If not, any hints on which UI elements we have to avoid in order to still use 2018 LTS without this bug?
     
    Last edited: Jul 16, 2019
  8. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
  9. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    Well, after that experience with Unitys Bug Reporter, we'd rather prefer to give git access, over trying to report it for few hours again.
     
  10. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    Another error ("Unable to write") on uploading, seeing this we'd rather prefer to give you git access instead. This currently prevents us from releasing a new update for our game which makes us lose lots of player, so it's really important for us.
     
    Last edited: Jul 23, 2019
  11. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    After removing UnityEngine.UI with package manager, we have been a crash due to 42GB heap allocation on 2019.1 and the same stack overflow in heap allocations in our code (example line causing this: private readonly List<SubAbilities079> unlockedAbs = new List<SubAbilities079>(); ). Looks like unitys heap allocator is completly broken after 2018.3.7. We'd really appreciate any help or feedback, we still don't know what do to with not working reporter.
     
    Last edited: Jul 30, 2019
    vis2k likes this.
  12. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    Okay. we've managed to upload it, case 1173159
     
    PixelJ likes this.
  13. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    18
    So to follow up on this we have identified the issue and its actually not caused by the UI system but in fact caused by a crash in the physics system on a different thread. This is a linux only issue and the issue has been resolved in 2019.3+ as we updated PhysX. We are in the process of tracking down the specific change to try and see if we can backport it to 2018 LTS.
     
    Djayp and vis2k like this.
  14. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    Ok, 2019.3 seems working, but we hope for a quick backport cause alphas aren't the best for production. Could you give any possible ETA for the backport?
     
  15. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    18
    So the issue has been fixed in 2019.2 (should be out in the next update), we are looking to backport the fix into 2018 LTS.
     
  16. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,220
    That is great to hear. Thanks for your hard work :)
     
  17. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    20
    Unity 2019.2.1f1 still seems broken
     
  18. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    18
    This should be in the next 2019.2 release