scallion
scallion copied to clipboard
Weird error under arch linux with mono
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Unhandled Exception:
System.InvalidOperationException: ErrorCode:'-1'
at scallion.CLDeviceInfo.CheckError (System.Int32 err) [0x00018] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.CLDeviceInfo.GetDeviceIds (System.IntPtr platformId, OpenTK.Compute.CL10.DeviceTypeFlags deviceType) [0x00010] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.CLDeviceInfo.<GetDeviceIds>m__0 (System.IntPtr i) [0x00000] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at System.Linq.Enumerable+<SelectManyIterator>c__Iterator2`2[TSource,TResult].MoveNext () [0x00059] in <63992662b765477a898ef49cdcc99ee2>:0
at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x00087] in <63992662b765477a898ef49cdcc99ee2>:0
at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00011] in <63992662b765477a898ef49cdcc99ee2>:0
at scallion.CLDeviceInfo.GetDeviceIds () [0x00028] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.CLRuntime.GetDevices () [0x00001] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.Program.Main (System.String[] args) [0x00282] in <d0e0bddb4d06413d9646cfa640dd5232>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: ErrorCode:'-1'
at scallion.CLDeviceInfo.CheckError (System.Int32 err) [0x00018] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.CLDeviceInfo.GetDeviceIds (System.IntPtr platformId, OpenTK.Compute.CL10.DeviceTypeFlags deviceType) [0x00010] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.CLDeviceInfo.<GetDeviceIds>m__0 (System.IntPtr i) [0x00000] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at System.Linq.Enumerable+<SelectManyIterator>c__Iterator2`2[TSource,TResult].MoveNext () [0x00059] in <63992662b765477a898ef49cdcc99ee2>:0
at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x00087] in <63992662b765477a898ef49cdcc99ee2>:0
at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00011] in <63992662b765477a898ef49cdcc99ee2>:0
at scallion.CLDeviceInfo.GetDeviceIds () [0x00028] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.CLRuntime.GetDevices () [0x00001] in <d0e0bddb4d06413d9646cfa640dd5232>:0
at scallion.Program.Main (System.String[] args) [0x00282] in <d0e0bddb4d06413d9646cfa640dd5232>:0
I get the exact same error using Archlinux on a Rapsberry Pi 3. Xbuild Scallion.sln compiles perfectly with a few warnings but no errors. The resulting scallion.exe works fine in a windows environment. But trying to run it in Archlinux: mono scallion.exe -l and the desired mono version 4.5 is nowhere to be found. Currently Archlinux pacman -Sy mono imports version 5.0.
EDIT: Got it to work on Ubuntu Linux 16.04 LTS!! I installed the suggested fix for error -1001 even though that error does not appear (unless trying wine, which as it turns out is not necessary). Now mono scallion.exe still throws the warning about version not available but it works anyway! Not only that but I get an order of magnitude increase from 15 MH/s to 150 MH/s on my HP Envy laptop when generating GPG keys. AWESOME!!
to fix the above error, try running: mono --runtime=v4.0 scallion/bin/Debug/scallion.exe