Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Stack overflow Unity Editor crash

Discussion in 'Editor & General Support' started by Andrey-Postelzhuk, Nov 16, 2016.

  1. Andrey-Postelzhuk

    Andrey-Postelzhuk

    Joined:
    Nov 26, 2013
    Posts:
    75
    That simple script with stack overflow causes a unity editor crash.
    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class Crash : MonoBehaviour
    5. {
    6.  
    7.     private Transform IWillCrashYou
    8.     {
    9.         get
    10.         {
    11.             return IWillCrashYou;
    12.         }
    13.     }
    14.  
    15.     // Use this for initialization
    16.     void Start()
    17.     {
    18.         Debug.Log(IWillCrashYou);
    19.     }
    20. }
    It was not easy to find little typo in code that produced this bug.
    Hope this info can be helpful for someone.
    Unity version is 5.4.0f3
     
  2. Andrey-Postelzhuk

    Andrey-Postelzhuk

    Joined:
    Nov 26, 2013
    Posts:
    75
    I've reported a bug (851837_qgj3vphvpauipl7a)