1. The space forums use a separate registration system from the main virtual world. To comment on these forums, you need to create a separate forum account.
    Dismiss Notice
  2. Hey there, we have two Skype groups for space early users - if you're creating content, or need help, feel free to join in either the the beginners or advanced users groups.
    Dismiss Notice

Bug Report Space.Log Error

Discussion in 'Bug Reports' started by AshaSekayi, Aug 9, 2017.

Tags:
  1. AshaSekayi

    AshaSekayi Member

    Space.Log() is giving me errors in every script when using the 10.7 EP.

    So, a script that just has Space.Log("hello"); will give this error:

    Environment.GetCommandLineArgs[0] = E:\Program Files\Unity\Editor\Unity.exe
    UnityEngine.Debug:Log(Object)
    Session:.cctor()
    SScript:Log(String)
    SScript:Log(String)
    System.Runtime.CompilerServices.ExecutionScope:lambda_method(ExecutionScope, Object, Object[])
    MoonSharp.Interpreter.Interop.MethodMemberDescriptor:Execute(Script, Object, ScriptExecutionContext, CallbackArguments)
    MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor:(Script, Object, ScriptExecutionContext, CallbackArguments)
    MoonSharp.Interpreter.Interop.:(ScriptExecutionContext, CallbackArguments)
    MoonSharp.Interpreter.CallbackFunction:Invoke(ScriptExecutionContext, IList`1, Boolean)
    A.:(Int32, Int32, CallbackFunction, CallbackFunction, Boolean, String, DynValue)
    A.:(Int32)
    A.:(DynValue, DynValue[])
    MoonSharp.Interpreter.Script:Call(DynValue, DynValue[])
    MoonSharp.Interpreter.Script:Call(DynValue)
    MoonSharp.Interpreter.Script:DoString(String, Table, String)
    ScriptingRuntimeBaseInternal:StartExecution()
    :MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    NullReferenceException: Object reference not set to an instance of an object
    UIManager.get_MainUI () <IL 0x00046, 0x001e2>
    UIBaseInternal.QueueScriptMessage (string,string) <IL 0x00002, 0x00075>
    SScript.Log (string) <IL 0x00036, 0x001d8>
    (wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,object,object[]) <IL 0x00020, 0x000ed>
    MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute (MoonSharp.Interpreter.Script,object,MoonSharp.Interpreter.ScriptExecutionContext,MoonSharp.Interpreter.CallbackArguments) <IL 0x000a5, 0x00541>
    MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor. (MoonSharp.Interpreter.Script,object,MoonSharp.Interpreter.ScriptExecutionContext,MoonSharp.Interpreter.CallbackArguments) <IL 0x0008b, 0x00511>
    MoonSharp.Interpreter.Interop.OverloadedMethodMemberDescriptor/. (MoonSharp.Interpreter.ScriptExecutionContext,MoonSharp.Interpreter.CallbackArguments) <IL 0x00014, 0x00075>
    MoonSharp.Interpreter.CallbackFunction.Invoke (MoonSharp.Interpreter.ScriptExecutionContext,System.Collections.Generic.IList`1<MoonSharp.Interpreter.DynValue>,bool) <IL 0x00092, 0x00503>
    A.. (int,int,MoonSharp.Interpreter.CallbackFunction,MoonSharp.Interpreter.CallbackFunction,bool,string,MoonSharp.Interpreter.DynValue) <IL 0x00271, 0x01189>
    A.. (int) <IL 0x003e2, 0x01599>
    A.. (MoonSharp.Interpreter.DynValue,MoonSharp.Interpreter.DynValue[]) <IL 0x000b0, 0x005e1>
    MoonSharp.Interpreter.Script.Call (MoonSharp.Interpreter.DynValue,MoonSharp.Interpreter.DynValue[]) <IL 0x0010f, 0x00967>
    MoonSharp.Interpreter.Script.Call (MoonSharp.Interpreter.DynValue) <IL 0x00008, 0x00083>
    MoonSharp.Interpreter.Script.DoString (string,MoonSharp.Interpreter.Table,string) <IL 0x0000e, 0x000ba>
    ScriptingRuntimeBaseInternal.StartExecution () <IL 0x00383, 0x01f19>
    ScriptingRuntimeBaseInternal/.MoveNext () <IL 0x00189, 0x00bd9>
    UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator,intptr) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
     
  2. Adam

    Adam Developer Staff Member Moderator

    OK, thanks - looks like I need to patch the UI prefabs.
     
  3. AshaSekayi

    AshaSekayi Member

    Welcome :)
     

Share This Page