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

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)