mbraceproject / MBrace.StarterKit

A collection of demos and tutorials for MBrace
http://mbrace.io
57 stars 34 forks source link

Exception in Mono.Cecil.dll #92

Closed vilinski closed 7 years ago

vilinski commented 7 years ago
    > mono --version
    Mono JIT compiler version 4.6.1 (mono-4.6.0-branch-c8sr0/abb06f1 Fri Sep 23 19:24:23 EDT 2016)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           normal
        SIGSEGV:       altstack
        Notification:  kqueue
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug
        LLVM:          yes(3.6.0svn-mono-master/8b1520c)
        GC:            sgen

Steps to reproduce:

  1. clone the repo
  2. start VSCode with ionide
  3. send F# Tutorial with ThespianCluster.fsx line by line
  4. At "hello world" task in 1-hello-world.fsx it fails with following output in FSI:
    > let task =
    -     cloud { return "Hello world!" }
    -     |> cluster.CreateProcess
    - ;;
    Binding session to '/Library/Frameworks/Mono.framework/Versions/4.6.1/lib/mono/4.5-api/Mono.Cecil.dll'...
    System.TypeInitializationException: The type initializer for 'Nessos.Vagabond.AssemblyParser.AssemblyParser' threw an exception. ---> Sys
    tem.TypeInitializationException: The type initializer for 'Mono.Cecil.Cil.OpCodes' threw an exception.
    at (wrapper managed-to-native) System.Reflection.MonoField:GetValueInternal (System.Reflection.MonoField,object)
    at System.Reflection.MonoField.GetValue (System.Object obj) [0x0006a] in <dca3b561b8ad4f9fb10141d81b39ff45>:0
    at Nessos.Vagabond.AssemblyParser.AssemblyParser+<>c.<.cctor>b__54_0 (System.Reflection.FieldInfo f) [0x00000] in <94c42bb284e34487ba86
    e8899923f7af>:0
    at System.Linq.Enumerable+WhereSelectArrayIterator`2[TSource,TResult].MoveNext () [0x0004d] in <63992662b765477a898ef49cdcc99ee2>:0
    at System.Linq.Enumerable+<CastIterator>c__Iterator17`1[TResult].MoveNext () [0x00080] in <63992662b765477a898ef49cdcc99ee2>:0
    at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x00087] in <63992662b765477a898ef49cdcc9
    9ee2>:0
    at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00011] in <63992662b765477a898ef49cd
    cc99ee2>:0
    at Nessos.Vagabond.AssemblyParser.AssemblyParser..cctor () [0x0002b] in <94c42bb284e34487ba86e8899923f7af>:0
    --- End of inner exception stack trace ---
    at Nessos.Vagabond.AssemblyParser.parseDynamicAssemblySlice (Nessos.Vagabond.SliceCompilerTypes+AssemblyCompilerState state, System.Ref
    lection.Assembly assembly) [0x000e2] in <578e98fc6249b3e6a7450383fc988e57>:0
    at Nessos.Vagabond.SliceCompiler.compileDynamicAssemblySlice (Nessos.Vagabond.SliceCompilerTypes+AssemblyCompilerState state, System.Re
    flection.Assembly dynamicAssembly) [0x00001] in <578e98fc6249b3e6a7450383fc988e57>:0
    at Nessos.Vagabond.SliceCompiler.compileAssembly (Nessos.Vagabond.SliceCompilerTypes+AssemblyCompilerState state, System.Reflection.Ass
    embly assembly) [0x00040] in <578e98fc6249b3e6a7450383fc988e57>:0
    at Nessos.Vagabond.SliceCompiler+compileAssemblies@134-1.Invoke (System.Reflection.Assembly assembly) [0x00036] in <578e98fc6249b3e6a74
    50383fc988e57>:0
    at Nessos.Vagabond.Utils.MailboxProcessor`1.PostAndReply[Msg,R] (Microsoft.FSharp.Control.FSharpMailboxProcessor`1[TMsg] m, Microsoft.F
    Sharp.Core.FSharpFunc`2[T,TResult] msgB) [0x00058] in <578e98fc6249b3e6a7450383fc988e57>:0
eiriktsarpalis commented 7 years ago

Hey, we are aware of this issue. It's due to bugs in the mono reflection runtime. On Tue, 17 Jan 2017 at 22:51, Andreas Vilinski notifications@github.com wrote:

MacOS Sierra Version: 10.12.2

mono --version Mono JIT compiler version 4.6.1 (mono-4.6.0-branch-c8sr0/abb06f1 Fri Sep 23 19:24:23 EDT 2016) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: normal SIGSEGV: altstack Notification: kqueue Architecture: x86 Disabled: none Misc: softdebug LLVM: yes(3.6.0svn-mono-master/8b1520c) GC: sgen

Steps to reproduce:

  1. clone the repo
  2. start VSCode with ionide
  3. send F# Tutorial with ThespianCluster.fsx line by line
  4. At hello world task it fails with following output in FSI:

`

let task =

-

cloud { return "Hello world!" }

-

|> cluster.CreateProcess

  • ;; Binding session to '/Library/Frameworks/Mono.framework/Versions/4.6.1/lib/mono/4.5-api/Mono.Cecil.dll'... System.TypeInitializationException: The type initializer for 'Nessos.Vagabond.AssemblyParser.AssemblyParser' threw an exception. ---> Sys tem.TypeInitializationException: The type initializer for 'Mono.Cecil.Cil.OpCodes' threw an exception. at (wrapper managed-to-native) System.Reflection.MonoField:GetValueInternal (System.Reflection.MonoField,object) at System.Reflection.MonoField.GetValue (System.Object obj) [0x0006a] in :0 at Nessos.Vagabond.AssemblyParser.AssemblyParser+<>c.<.cctor>b__54_0 (System.Reflection.FieldInfo f) [0x00000] in <94c42bb284e34487ba86 e8899923f7af>:0 at System.Linq.Enumerable+WhereSelectArrayIterator2[TSource,TResult].MoveNext () [0x0004d] in <63992662b765477a898ef49cdcc99ee2>:0 at System.Linq.Enumerable+c__Iterator171[TResult].MoveNext () [0x00080] in <63992662b765477a898ef49cdcc99ee2>:0 at System.Linq.Buffer1[TElement]..ctor (System.Collections.Generic.IEnumerable1[T] source) [0x00087] in <63992662b765477a898ef49cdcc9 9ee2>:0 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x00011] in <63992662b765477a898ef49cd cc99ee2>:0 at Nessos.Vagabond.AssemblyParser.AssemblyParser..cctor () [0x0002b] in <94c42bb284e34487ba86e8899923f7af>:0 --- End of inner exception stack trace --- at Nessos.Vagabond.AssemblyParser.parseDynamicAssemblySlice (Nessos.Vagabond.SliceCompilerTypes+AssemblyCompilerState state, System.Ref lection.Assembly assembly) [0x000e2] in <578e98fc6249b3e6a7450383fc988e57>:0 at Nessos.Vagabond.SliceCompiler.compileDynamicAssemblySlice (Nessos.Vagabond.SliceCompilerTypes+AssemblyCompilerState state, System.Re flection.Assembly dynamicAssembly) [0x00001] in <578e98fc6249b3e6a7450383fc988e57>:0 at Nessos.Vagabond.SliceCompiler.compileAssembly (Nessos.Vagabond.SliceCompilerTypes+AssemblyCompilerState state, System.Reflection.Ass embly assembly) [0x00040] in <578e98fc6249b3e6a7450383fc988e57>:0 at Nessos.Vagabond.SliceCompiler+compileAssemblies@134-1.Invoke (System.Reflection.Assembly assembly) [0x00036] in <578e98fc6249b3e6a74 50383fc988e57>:0 at Nessos.Vagabond.Utils.MailboxProcessor1.PostAndReply[Msg,R] (Microsoft.FSharp.Control.FSharpMailboxProcessor1[TMsg] m, Microsoft.F Sharp.Core.FSharpFunc2[T,TResult] msgB) [0x00058] in <578e98fc6249b3e6a7450383fc988e57>:0 `

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mbraceproject/MBrace.StarterKit/issues/92, or mute the thread https://github.com/notifications/unsubscribe-auth/ACrts-e1mJofZ19zpI_I_T61JaI1tIXgks5rTUXjgaJpZM4LmQ6_ .

vilinski commented 7 years ago

thx any chance to run mbrace on no-windows in near future?

eiriktsarpalis commented 7 years ago

It really depends on mono fixing their bugs. They've been reported for quite some time now, with many not being fixed yet. Please refer to the Vagabond repo for more information. On Wed, 18 Jan 2017 at 17:35, Andreas Vilinski notifications@github.com wrote:

thx any chance to run mbrace on no-windows in near future?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/mbraceproject/MBrace.StarterKit/issues/92#issuecomment-273508397, or mute the thread https://github.com/notifications/unsubscribe-auth/ACrtsxs3L9oy32Oe0J3RDfuGBeFG6mjjks5rTjElgaJpZM4LmQ6_ .

dsyme commented 7 years ago

Closing as the lack of Mono support is a known issue