IronSchemeUnity icon indicating copy to clipboard operation
IronSchemeUnity copied to clipboard

Working n the Editor, but does not with standalone application

Open hww opened this issue 4 years ago • 0 comments

The standalone app (built with Unity 2019.3.15) has the next error.

UnloadTime: 0.857000 ms
PlatformNotSupportedException: Operation is not supported on this platform.
  at System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access) [0x00000] in <c79628fadf574d3a8feae0871fad28ef>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess)
  at IronScheme.Scripting.Generation.AssemblyGen..ctor (System.String moduleName, System.String outDir, System.String outFile, IronScheme.Scripting.Generation.AssemblyGenAttributes generationAttributes, System.Reflection.PortableExecutableKinds peKind, System.Reflection.ImageFileMachine machine) [0x00170] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Scripting.Generation.AssemblyGen..ctor (System.String moduleName, System.String outDir, System.String outFile, IronScheme.Scripting.Generation.AssemblyGenAttributes generationAttributes) [0x00000] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Scripting.Generation.Snippets.CreateNewAssembly (System.String name, IronScheme.Scripting.Generation.AssemblyGenAttributes attrs) [0x00016] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Scripting.Generation.Snippets.get_Assembly () [0x00019] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Runtime.R6RS.Records.MakeRecordTypeDescriptorTyped (System.Object name, System.Object parent, System.Object uid, System.Object issealed, System.Object isopaque, System.Object fields, System.Object fieldtypes) [0x00019] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Runtime.R6RS.Records.MakeRecordTypeDescriptor (System.Object name, System.Object parent, System.Object uid, System.Object issealed, System.Object isopaque, System.Object fields) [0x0002d] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at #.ironscheme.conditions () [0x00000] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at #.Initialize (IronScheme.Scripting.CodeContext ) [0x00021] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Runtime.Builtins.Load (System.Object filename, System.Boolean loadinmemory) [0x001e1] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Hosting.IronSchemeLanguageProvider.Initialize () [0x00006] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Hosting.IronSchemeLanguageProvider..ctor (IronScheme.Scripting.ScriptDomainManager x) [0x00063] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <c79628fadf574d3a8feae0871fad28ef>:0 
Rethrow as InvalidImplementationException: Type 'IronScheme.Hosting.IronSchemeLanguageProvider' doesn't provide a suitable public constructor or its implementation is faulty.
  at IronScheme.Scripting.Utils.ReflectionUtils.CreateInstance[T] (System.Type actualType, System.Object[] args) [0x00030] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Scripting.ScriptDomainManager+LanguageProviderDesc.LoadProvider (IronScheme.Scripting.ScriptDomainManager manager) [0x0008b] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.Scripting.ScriptDomainManager.GetLanguageProvider (System.Type type) [0x00072] in <7df8bb37e6774ea884787dd5850d7e83>:0 
  at IronScheme.RuntimeExtensions..cctor () [0x00005] in <7df8bb37e6774ea884787dd5850d7e83>:0 
Rethrow as TypeInitializationException: The type initializer for 'IronScheme.RuntimeExtensions' threw an exception.
  at TestBehavior.Start () [0x0000a] in <b4fcb92fd17c47bcaec20685e7b671f9>:0 

hww avatar Jun 05 '21 09:06 hww