Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

NotImplementedException Using 2019.1a11

Discussion in '2019.1 Beta' started by Lars-Steenhoff, Dec 8, 2018.

  1. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    I get an error that I don't know of what it means. Using 2019.1a11.
    Do I need to file a bug report for this?

     
  2. Deleted User

    Deleted User

    Guest

    What were you doing when it popped up?
     
  3. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Openend unity, I can clear the errors in the console and after they come back when I press play
     
    tp1415926535 likes this.
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
  5. DmitryAndreevMel

    DmitryAndreevMel

    Joined:
    Mar 7, 2017
    Posts:
    14
    We encounter the same error (written twice in the console) in our project (Unity 2018.3.1f) every time Unity compiles code or enters play mode

    Code (CSharp):
    1. NotImplementedException: The method or operation is not implemented.
    2. System.Environment.FailFast (System.String message) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    3. <Module>***(System.String ) (at <32aed235d00f4133a7558638d6cab2f5>:0)
    4. <Module>***(System.Object ) (at <32aed235d00f4133a7558638d6cab2f5>:0)
    5. System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    6. System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    7. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    8. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    9. System.Threading.ThreadHelper.ThreadStart (System.Object obj) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    10. UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
    there are strange symbols in the log, they were replaced by *** in the log I've posted because this forum struggles to display them and the following text becomes reversed (in most of the apps)
     
    Last edited: Jan 17, 2019
    tp1415926535 likes this.
  6. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Did you upgrade a project from an earlier unity vension ?

    It seems that is where it happens for me, and since this project is so large I can't send a bug report for it ( more than 10 gb )
     
  7. DmitryAndreevMel

    DmitryAndreevMel

    Joined:
    Mar 7, 2017
    Posts:
    14
    Yes, our project was updated from 2017.4.6 Unity version. The exception is not reproduced in new projects
     
  8. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Case 1118695

    It seemed to have something to do with an .dll of an asset store package in my project, and since the error came after upgrading it is most likely because of an api change in unity.

    Would it not be possible for unity to show what dll is generating the error?

    I got this answer from Unity QA:

     
    Last edited: Jan 28, 2019
  9. faolad

    faolad

    Joined:
    Jan 27, 2013
    Posts:
    118
    I keep getting similar errors, After changing the script Runtime Version from (.NET 3.5) to (.NET 4x Equivalent) It start showing this error in the editor and in play mode

    Code (CSharp):
    1.  NotImplementedException: The method or operation is not implemented.
    2. System.Environment.FailFast (System.String message) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    3. <Module>.‫‭‪‪‭‮‍‏‫‬‎‬‌‪‏‮‍‬‍‮‮‌‬‪‮‮‪‮‮ (System.String ) (at <9ddf73df998349b3bb919b38b7f23e17>:0)
    4. <Module>.‏‏‎‎‬‭‫‏‌‭‫‪‎‏‫‬‮‏‎‍‮ (System.Object ) (at <9ddf73df998349b3bb919b38b7f23e17>:0)
    5. System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    6. System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    7. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    8. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    9. System.Threading.ThreadHelper.ThreadStart (System.Object obj) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    10. UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
    11.  
     
  10. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Do you have any .dll's ?
     
  11. faolad

    faolad

    Joined:
    Jan 27, 2013
    Posts:
    118
    Last edited: Feb 4, 2019
  12. zwcloud

    zwcloud

    Joined:
    Mar 15, 2016
    Posts:
    377
    Got the same error for a project which contains an obfuscated dll with Unity 2018.3.0f1:

    upload_2019-2-15_23-9-12.png

    Code (csharp):
    1. NotImplementedException: The method or operation is not implemented.
    2. System.Environment.FailFast (System.String message) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    3. <Module>.‏‫‍‎‭‮‪‮‬‍‏‌‍‍‎‭‮ (System.String ) (at <0895a9bdb2fa4994b4ab471d1c31358c>:0)
    4. <Module>.‮‪‍‮‫‍‬‫‏‫‮‌‬‏‮‪‍‏‮‍‎‮ (System.Object ) (at <0895a9bdb2fa4994b4ab471d1c31358c>:0)
    5. System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    6. System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    7. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    8. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    9. System.Threading.ThreadHelper.ThreadStart (System.Object obj) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    10. UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
     
  13. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Yes its very cryptic, and any newcomers to unity will pull their hairs out why this is happening, I hope unity will implement a way to see the source file that generated the error.
     
  14. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Could you please submit a feature request at https://feedback.unity3d.com/ (and vote for it)?
    I've talked with the team and they currently don't have the bandwidth to implement support for this functionality, since that would be a non-trivial endeavour and there are other tasks with a higher priority. If more users express their interest in this, prioritisation might change though.
     
    eizenhorn and Lars-Steenhoff like this.
  15. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527

    I was thinking about if I should do a feedback item, but since feedback is now dead
    ( https://forum.unity.com/threads/the-future-of-unity-feedback.633241/ )
    I will just trust that this issue is now known, and that if anyone encounters this error they should report it in this forum.
     
  16. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Yes, sorry for the confusion. Since the feedback page is no longer available and this thread was originally about a different topic, I'd recommend that you start a new thread specifically about this feature request in a different forum though. Either External Tools or Scripting seem appropriate.
     
  17. zwcloud

    zwcloud

    Joined:
    Mar 15, 2016
    Posts:
    377
    https://github.com/Unity-Technologi...5/mcs/class/corlib/System/Environment.cs#L921

    Found that
    System.Environment.FailFast
    is not implemented in mono.

    Code (CSharp):
    1. [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode=true)]
    2. public static void FailFast (string message)
    3. {
    4.     throw new NotImplementedException ();
    5. }
    And it should be implemented as an internal call like in CoreCLR:

    https://github.com/dotnet/coreclr/b...CoreLib/src/System/Environment.CoreCLR.cs#L36

    Code (CSharp):
    1. // Note: The CLR's Watson bucketization code looks at the caller of the FCALL method
    2. // to assign blame for crashes.  Don't mess with this, such as by making it call
    3. // another managed helper method, unless you consult with some CLR Watson experts.
    4. [MethodImpl(MethodImplOptions.InternalCall)]
    5. public static extern void FailFast(string message);
     
    Last edited: Feb 24, 2019
    Lars-Steenhoff likes this.
  18. LastChaos

    LastChaos

    Joined:
    Dec 9, 2013
    Posts:
    39
    Similar error here, how to fix that? Unity 2019.1.3f1
    Code (CSharp):
    1. NotImplementedException: The method or operation is not implemented.
    2. System.Environment.FailFast (System.String message) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    3. <Module>.j
    4. *-k,*,+ll
    5. km-.-m*+k,,j-*k.
    6. jm. (System.String ) (at <e5fbef407f0641f994a976a46d5b082f>:0)
    7. <Module>.*l,lmo+..l.jko+nn.n*k,-l.mnm. (System.Object ) (at <e5fbef407f0641f994a976a46d5b082f>:0)
    8. System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    9. System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    10. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    11. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    12. System.Threading.ThreadHelper.ThreadStart (System.Object obj) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    13. UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
    upload_2019-5-20_23-13-16.png
     
    Last edited: May 22, 2019
  19. pixelxinteractives

    pixelxinteractives

    Joined:
    Jun 26, 2019
    Posts:
    2
    NotImplementedException: The method or operation is not implemented.
    System.Environment.FailFast (System.String message) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    <Module>.
    +
    j,+l,nljno

    o
    +n-.l*o,nmk
    j+-o.n
    . (System.String ) (at <59e29b1ac58a4ef88a9b214947e25be9>:0)
    <Module>.,+loo,+k*-.ll,m*k.n-*m,+kl,.l. (System.Object ) (at <59e29b1ac58a4ef88a9b214947e25be9>:0)
    System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.Threading.ThreadHelper.ThreadStart (System.Object obj) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)





    same error howt o resovle?
     
  20. pixelxinteractives

    pixelxinteractives

    Joined:
    Jun 26, 2019
    Posts:
    2
  21. faolad

    faolad

    Joined:
    Jan 27, 2013
    Posts:
    118
    Try to remove every single .dll file from your project and reintegrate them one by one until you found the one causing the issue. Knowing exactly what the issue in the file its time consuming and you will need external tools/software to inspect the files.
     
    Last edited: Jul 8, 2019