Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

If AmbiguousMatchException happens, unity editor(Windows) ruined.

Discussion in 'Scripting' started by netics, Feb 7, 2017.

  1. netics

    netics

    Joined:
    Aug 23, 2011
    Posts:
    102
    Could you check this weird phenomenon?
    This bug lives on Unity 5.5.

    If AmbiguousMatchException happens, unity becomes lame.
    Catched or not, your unity are infected.

    After playmode ends, editor will be freezed in some machine.
    In some machine, editor works normally. But if you check cpu usage, editor will be spending 25~30%.

    Test below code.
    Code (CSharp):
    1. using System;
    2. using UnityEngine;
    3.  
    4. public class TestClass {
    5.     public void Overloaded(string b) { }
    6.     public void Overloaded(int a) { }
    7. }
    8.  
    9. public class BugBehaviour : MonoBehaviour {
    10.     void Start () {
    11.         try {
    12.             var methodInfo = typeof(TestClass).GetMethod("Overloaded");
    13.         }
    14.         catch( Exception e ) {
    15.             Debug.LogException(e);
    16.         }
    17.         Debug.Log("Exception catched. But your unity already infected.");
    18.     }
    19. }
    20.  
     
    Last edited: Feb 8, 2017
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    5,538
    Have you sent a bug report?
     
  3. netics

    netics

    Joined:
    Aug 23, 2011
    Posts:
    102
    Yes, I did.
    But they said "Can't reproduce".
    But, All 3 machines in my office can reproduce.
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    6,999
    didnt have any issues here.. (5.5.1p2, pc win10)
     
unityunity