Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes calling UnityEngine.Application.dataPath during serialization #362

Closed
timsgardner opened this issue May 2, 2019 · 1 comment
Closed

Comments

@timsgardner
Copy link
Contributor

timsgardner commented May 2, 2019

It's hard to pin down exactly when this happens, but sometimes for some scenes containing ArcadiaBehaviour, entering play mode throws

UnityEngine.UnityException: get_dataPath is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'UpdateHook' on game object 'coroutine-visualizer-pump'.
See "Script Serialization" page in the Unity Manual for further details.
  at (wrapper managed-to-native) UnityEngine.Application.get_dataPath()
  at Arcadia.Initialization..cctor () [0x00000] in /Users/timothygardner/code/arcadia_development/projects/state_lab_projects/coroutine_tracker_project/Assets/Arcadia/Editor/Initialization.cs:17 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])

Also sometimes this seems to prevent Arcadia starting at all.
This is a new issue, something about the new relative path stuff seems to have activated it.
The problematic line in Initialization.cs is

public static string PathToCompiled = Path.GetFullPath(VariadicPathCombine(Application.dataPath, "..", "Arcadia", "Compiled"));

We probably shouldn't be using a method that is sometimes unavailable in our Initialization logic.

One (not very satisfactory) work-around may be to make PathToCompiled a lazily-loaded static property, so dataPath isn't accessed automatically. It still means any code that tries to look up PathToCompiled could trigger this error if it runs during serialization.

@timsgardner
Copy link
Contributor Author

Making PathToComplied a lazy property doesn't fix it, though it does move the problem around a little. With it a property, the stacktraces (several exceptions are thrown) are:

UnityException: get_dataPath is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'UpdateHook' on game object 'coroutine-visualizer-pump'.
See "Script Serialization" page in the Unity Manual for further details.
Arcadia.Initialization.get_PathToCompiled () (at Assets/Arcadia/Editor/Initialization.cs:29)
Arcadia.Initialization.InitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:109)
Arcadia.Initialization.SetInitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:120)
Arcadia.Initialization.Initialize () (at Assets/Arcadia/Editor/Initialization.cs:68)
Arcadia.Initialization..cctor () (at Assets/Arcadia/Editor/Initialization.cs:37)
Rethrow as TypeInitializationException: The type initializer for 'Arcadia.Initialization' threw an exception.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Reflector.InvokeMethod (System.Reflection.MethodInfo info, System.Object target, System.Object[] args) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure.lang.CljCompiler.Ast.StaticMethodExpr.Eval () (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as CompilerException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Arcadia.Initialization' threw an exception. ---> UnityEngine.UnityException: get_dataPath is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'UpdateHook' on game object 'coroutine-visualizer-pump'.
See "Script Serialization" page in the Unity Manual for further details.
Arcadia.Initialization.get_PathToCompiled () (at Assets/Arcadia/Editor/Initialization.cs:29)
Arcadia.Initialization.InitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:109)
Arcadia.Initialization.SetInitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:120)
Arcadia.Initialization.Initialize () (at Assets/Arcadia/Editor/Initialization.cs:68)
Arcadia.Initialization..cctor () (at Assets/Arcadia/Editor/Initialization.cs:37)
--- End of inner exception stack trace ---
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
--- End of inner exception stack trace ---
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Reflector.InvokeMethod (System.Reflection.MethodInfo info, System.Object target, System.Object[] args) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure.lang.CljCompiler.Ast.StaticMethodExpr.Eval () (at <fb1204dbf0b848beaab1559f81f1b22c>:0 , compiling: (config.clj:14:46))
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.doInvoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.invoke (System.Object arg1, System.Object arg2, System.Object arg3, System.Object arg4, System.Object arg5, System.Object arg6, System.Object arg7) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
arcadia$internal$socket_repl$loading__25261__auto____15188__15191.invokeStatic () (at <fce4f3b521744124ae0052c3907a3b87>:0)
arcadia$internal$socket_repl$loading__25261__auto____15188__15191.invoke () (at <fce4f3b521744124ae0052c3907a3b87>:0)
__Init__$arcadia$internal$socket_repl+__expr15193..cctor () (at <fce4f3b521744124ae0052c3907a3b87>:0)
Rethrow as TypeInitializationException: The type initializer for '__expr15193' threw an exception.
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InitializeNamespace (System.String nsName, System.String[] names, System.Type[] types, clojure.lang.Compiler+StaticMetadataFlags[] metadataFlags, System.Type[] metadataTypes) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
__Init__$arcadia$internal$socket_repl.Initialize () (at <fce4f3b521744124ae0052c3907a3b87>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InvokeInitType (System.Reflection.Assembly assy, System.Type initType) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as AssemblyInitializationException: Error initializing arcadia.internal.socket_repl.clj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: Exception has been thrown by the target of an invocation.
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.doInvoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.invoke (System.Object arg1, System.Object arg2, System.Object arg3, System.Object arg4, System.Object arg5, System.Object arg6, System.Object arg7) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
arcadia$debug$loading__25261__auto____15728__15731.invokeStatic () (at <f5775f802c7a43b19a823e371a4008d4>:0)
arcadia$debug$loading__25261__auto____15728__15731.invoke () (at <f5775f802c7a43b19a823e371a4008d4>:0)
__Init__$arcadia$debug+__expr15733..cctor () (at <f5775f802c7a43b19a823e371a4008d4>:0)
Rethrow as TypeInitializationException: The type initializer for '__expr15733' threw an exception.
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InitializeNamespace (System.String nsName, System.String[] names, System.Type[] types, clojure.lang.Compiler+StaticMetadataFlags[] metadataFlags, System.Type[] metadataTypes) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
__Init__$arcadia$debug.Initialize () (at <f5775f802c7a43b19a823e371a4008d4>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InvokeInitType (System.Reflection.Assembly assy, System.Type initType) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as AssemblyInitializationException: Error initializing arcadia.debug.clj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: Exception has been thrown by the target of an invocation.
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.doInvoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.invoke (System.Object arg1, System.Object arg2, System.Object arg3, System.Object arg4, System.Object arg5, System.Object arg6) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
arcadiatech$state_lab$coroutine_tracker$dev$loading__25261__auto____15719__15722.invokeStatic () (at <9478c71899a7444192c0462bf95c8f44>:0)
arcadiatech$state_lab$coroutine_tracker$dev$loading__25261__auto____15719__15722.invoke () (at <9478c71899a7444192c0462bf95c8f44>:0)
__Init__$arcadiatech$state_lab$coroutine_tracker$dev+__expr15724..cctor () (at <9478c71899a7444192c0462bf95c8f44>:0)
Rethrow as TypeInitializationException: The type initializer for '__expr15724' threw an exception.
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InitializeNamespace (System.String nsName, System.String[] names, System.Type[] types, clojure.lang.Compiler+StaticMetadataFlags[] metadataFlags, System.Type[] metadataTypes) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
__Init__$arcadiatech$state_lab$coroutine_tracker$dev.Initialize () (at <9478c71899a7444192c0462bf95c8f44>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InvokeInitType (System.Reflection.Assembly assy, System.Type initType) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as AssemblyInitializationException: Error initializing arcadiatech.state_lab.coroutine_tracker.dev.clj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: Exception has been thrown by the target of an invocation.
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.doInvoke (System.Object , System.Object , System.Object ) (at <7<message truncated>
UnityEngine.UnityException: get_dataPath is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'UpdateHook' on game object 'coroutine-visualizer-pump'.
See "Script Serialization" page in the Unity Manual for further details.
  at (wrapper managed-to-native) UnityEngine.Application.get_dataPath()
  at Arcadia.Initialization.get_PathToCompiled () [0x00015] in /Users/timothygardner/code/arcadia_development/projects/state_lab_projects/coroutine_tracker_project/Assets/Arcadia/Editor/Initialization.cs:29 
  at Arcadia.Initialization.InitialClojureLoadPath () [0x00001] in /Users/timothygardner/code/arcadia_development/projects/state_lab_projects/coroutine_tracker_project/Assets/Arcadia/Editor/Initialization.cs:109 
  at Arcadia.Initialization.SetInitialClojureLoadPath () [0x00002] in /Users/timothygardner/code/arcadia_development/projects/state_lab_projects/coroutine_tracker_project/Assets/Arcadia/Editor/Initialization.cs:120 
  at Arcadia.Initialization.Initialize () [0x00007] in /Users/timothygardner/code/arcadia_development/projects/state_lab_projects/coroutine_tracker_project/Assets/Arcadia/Editor/Initialization.cs:68 
  at Arcadia.Initialization..cctor () [0x0002e] in /Users/timothygardner/code/arcadia_development/projects/state_lab_projects/coroutine_tracker_project/Assets/Arcadia/Editor/Initialization.cs:37 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])
UnityException: get_dataPath is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'UpdateHook' on game object 'coroutine-visualizer-pump'.
See "Script Serialization" page in the Unity Manual for further details.
Arcadia.Initialization.get_PathToCompiled () (at Assets/Arcadia/Editor/Initialization.cs:29)
Arcadia.Initialization.InitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:109)
Arcadia.Initialization.SetInitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:120)
Arcadia.Initialization.Initialize () (at Assets/Arcadia/Editor/Initialization.cs:68)
Arcadia.Initialization..cctor () (at Assets/Arcadia/Editor/Initialization.cs:37)
Rethrow as TypeInitializationException: The type initializer for 'Arcadia.Initialization' threw an exception.
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
UnityEditor.EditorAssemblies.ProcessInitializeOnLoadAttributes (System.Type[] types) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:106)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Reflector.InvokeMethod (System.Reflection.MethodInfo info, System.Object target, System.Object[] args) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure.lang.CljCompiler.Ast.StaticMethodExpr.Eval () (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as CompilerException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Arcadia.Initialization' threw an exception. ---> UnityEngine.UnityException: get_dataPath is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'UpdateHook' on game object 'coroutine-visualizer-pump'.
See "Script Serialization" page in the Unity Manual for further details.
Arcadia.Initialization.get_PathToCompiled () (at Assets/Arcadia/Editor/Initialization.cs:29)
Arcadia.Initialization.InitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:109)
Arcadia.Initialization.SetInitialClojureLoadPath () (at Assets/Arcadia/Editor/Initialization.cs:120)
Arcadia.Initialization.Initialize () (at Assets/Arcadia/Editor/Initialization.cs:68)
Arcadia.Initialization..cctor () (at Assets/Arcadia/Editor/Initialization.cs:37)
--- End of inner exception stack trace ---
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
--- End of inner exception stack trace ---
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Reflector.InvokeMethod (System.Reflection.MethodInfo info, System.Object target, System.Object[] args) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure.lang.CljCompiler.Ast.StaticMethodExpr.Eval () (at <fb1204dbf0b848beaab1559f81f1b22c>:0 , compiling: (config.clj:14:46))
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.doInvoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.invoke (System.Object arg1, System.Object arg2, System.Object arg3, System.Object arg4, System.Object arg5, System.Object arg6, System.Object arg7) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
arcadia$internal$socket_repl$loading__25261__auto____15188__15191.invokeStatic () (at <fce4f3b521744124ae0052c3907a3b87>:0)
arcadia$internal$socket_repl$loading__25261__auto____15188__15191.invoke () (at <fce4f3b521744124ae0052c3907a3b87>:0)
__Init__$arcadia$internal$socket_repl+__expr15193..cctor () (at <fce4f3b521744124ae0052c3907a3b87>:0)
Rethrow as TypeInitializationException: The type initializer for '__expr15193' threw an exception.
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InitializeNamespace (System.String nsName, System.String[] names, System.Type[] types, clojure.lang.Compiler+StaticMetadataFlags[] metadataFlags, System.Type[] metadataTypes) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
__Init__$arcadia$internal$socket_repl.Initialize () (at <fce4f3b521744124ae0052c3907a3b87>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InvokeInitType (System.Reflection.Assembly assy, System.Type initType) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as AssemblyInitializationException: Error initializing arcadia.internal.socket_repl.clj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: Exception has been thrown by the target of an invocation.
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.doInvoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.invoke (System.Object arg1, System.Object arg2, System.Object arg3, System.Object arg4, System.Object arg5, System.Object arg6, System.Object arg7) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
arcadia$debug$loading__25261__auto____15728__15731.invokeStatic () (at <f5775f802c7a43b19a823e371a4008d4>:0)
arcadia$debug$loading__25261__auto____15728__15731.invoke () (at <f5775f802c7a43b19a823e371a4008d4>:0)
__Init__$arcadia$debug+__expr15733..cctor () (at <f5775f802c7a43b19a823e371a4008d4>:0)
Rethrow as TypeInitializationException: The type initializer for '__expr15733' threw an exception.
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InitializeNamespace (System.String nsName, System.String[] names, System.Type[] types, clojure.lang.Compiler+StaticMetadataFlags[] metadataFlags, System.Type[] metadataTypes) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
__Init__$arcadia$debug.Initialize () (at <f5775f802c7a43b19a823e371a4008d4>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InvokeInitType (System.Reflection.Assembly assy, System.Type initType) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as AssemblyInitializationException: Error initializing arcadia.debug.clj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: Exception has been thrown by the target of an invocation.
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.doInvoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_libs__25574.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.applyTo (clojure.lang.ISeq arglist) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
clojure$core$apply__19534.invokeStatic (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$apply__19534.invoke (System.Object , System.Object , System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.invokeStatic (clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$require__25596.doInvoke (System.Object ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure.lang.RestFn.invoke (System.Object arg1, System.Object arg2, System.Object arg3, System.Object arg4, System.Object arg5, System.Object arg6) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
arcadiatech$state_lab$coroutine_tracker$dev$loading__25261__auto____15719__15722.invokeStatic () (at <9478c71899a7444192c0462bf95c8f44>:0)
arcadiatech$state_lab$coroutine_tracker$dev$loading__25261__auto____15719__15722.invoke () (at <9478c71899a7444192c0462bf95c8f44>:0)
__Init__$arcadiatech$state_lab$coroutine_tracker$dev+__expr15724..cctor () (at <9478c71899a7444192c0462bf95c8f44>:0)
Rethrow as TypeInitializationException: The type initializer for '__expr15724' threw an exception.
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InitializeNamespace (System.String nsName, System.String[] names, System.Type[] types, clojure.lang.Compiler+StaticMetadataFlags[] metadataFlags, System.Type[] metadataTypes) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
__Init__$arcadiatech$state_lab$coroutine_tracker$dev.Initialize () (at <9478c71899a7444192c0462bf95c8f44>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
clojure.lang.Compiler.InvokeInitType (System.Reflection.Assembly assy, System.Type initType) (at <fb1204dbf0b848beaab1559f81f1b22c>:0)
Rethrow as AssemblyInitializationException: Error initializing arcadiatech.state_lab.coroutine_tracker.dev.clj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: Exception has been thrown by the target of an invocation.
clojure$core$load_libfn__25538__25542.invoke () (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.invokeStatic (System.Object , System.Object , clojure.lang.ISeq ) (at <75aedcbf6ad14e4293bea1888c10ab1d>:0)
clojure$core$load_lib__25549.d<message truncated>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant