Search Unity

Bug regression: double clicking on console error doesn't open script (2020.1.17)

Discussion in 'Editor & General Support' started by laurentlavigne, Dec 16, 2020.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,327
    even though the script pointer is in the error description
    ArgumentException: source and destination length must be the same
    Unity.Collections.NativeArray`1[T].Copy (T[] src, Unity.Collections.NativeArray`1[T] dst) (at <bad59441812943c7b8d5a5ba85795810>:0)
    Unity.Collections.NativeArray`1[T].CopyFrom (T[] array) (at <bad59441812943c7b8d5a5ba85795810>:0)
    BlissManagerOld.UpdateBlissTexture (System.Boolean force) (at Assets/BlissManagerOld.cs:280)
    BlissManagerOld.Update () (at Assets/BlissManagerOld.cs:333)



    upload_2020-12-15_22-31-39.png
     
    Madgvox likes this.
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,317
    +1

    Been bitten by this one myself. It seems like since the console added the ability to click on the stack trace to go to the source (a good addition), it's broken the console's ability to go somewhere reasonable when you double click on the message.

    I've noticed that if the top of the stack is in native code, it doesn't try and take you to the uppermost C# line, but instead does nothing. The above is a perfect example of this -- the top trace on the stack is a pointer to native code. If the top-most trace points to C# code, then double-clicking works.
     
    laurentlavigne likes this.
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,327
    QA couldn't reproduce so we're thinking there is another condition.
    what do your errors look like?
     
  4. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,317
    Next time I run into a case that causes this, I will post the full stack trace here.