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

Frequent crashes in 2020.1.6f while debugging

Discussion in 'Editor & General Support' started by PMacDev, Sep 30, 2020.

?

Have you had unity crash while using an attached debugger to inspect values?

  1. yes

    31 vote(s)
    100.0%
  2. no

    0 vote(s)
    0.0%
  1. PMacDev

    PMacDev

    Joined:
    Sep 8, 2020
    Posts:
    7
    I have had TONS of issues where the debugger tends to crash unity while I am inspecting different object values.

    I have tried VSCode, Visual Studio Community, and Rider. They all seem to make unity stop responding after looking through object values for ~5-10 minutes. I have had this happen in various different ways, I don't really know if there is one single cause other than the length of time spent looking at the actual values in the inspectors for the respective IDE's.

    I was also experiencing this in 2020.1.5f so I upgraded to 2020.1.6f but it is still happening. It seemed to crash more frequently with VSCode of the three editors/IDE's I was using, but they all had the issue.

    the Unity Editor process status becomes "Not Responding" in windows and I am unable to click the main unity editor windows including the UIBuilder.

    Please let me know what more information I can provide. I don't see a crash message from unity but I would be happy to provide logs if you could point me to the location that is relevant for this error.

    This was the most recent error shown in the Rider console when the process hung:

    Code (CSharp):
    1. System.ObjectDisposedException: Cannot access a disposed object.
    2. Object name: 'System.Net.Sockets.Socket'.
    3.    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError& errorCode)
    4.    at Mono.Debugger.Soft.TcpConnection.TransportReceive(Byte[] buf, Int32 buf_offset, Int32 len)
    5.    at Mono.Debugger.Soft.Connection.Receive(Byte[] buf, Int32 buf_offset, Int32 len)
    6.    at Mono.Debugger.Soft.Connection.ReadPacket()
    7.    at Mono.Debugger.Soft.Connection.ReceivePacket()
    8.    at Mono.Debugger.Soft.Connection.receiver_thread_main()

    This has been causing huge headaches and I have lost significant portions of work. Please fix this.

    Thanks,
    Paul
     
  2. ManuelSegura

    ManuelSegura

    Joined:
    Dec 12, 2015
    Posts:
    19
    I have the same issue since updating to 2020.3.2f1

    I have tried rebuilding the project in many versions, older and newer, but it still crashes.
    Also, I have tried rebuilding with different versions of the Visual Studio and Visual Studio Code packages but still get the same error.

    I sent a bug report but still waiting for an answer...
     
    Last edited: Apr 8, 2021
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    Can you let me know the bug report number? I'll have a look at its status.
     
  4. ManuelSegura

    ManuelSegura

    Joined:
    Dec 12, 2015
    Posts:
    19
    Sorry for the late reply, didn't saw the alert until now.

    So it appears that what was happening to me is somewhat different (it is a different error) but it leads to the same outcome. They moved my case to an Atlassian website and the only reference I can give as far as I can see is this number: IN-1181

    Right now I have given up on TextMeshPro and are starting to port everything to UI Toolkit because I can't be having Unity randomly crashing whenever I accidentally hover a TextMeshPro internal variable.
     
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    Thanks for the details, I'm glad that you at least have a work around. Hopefully we will be able to track down the cause the of the issue.