lachesis / scallion

GPU-based Onion Hash generator
Other
1.25k stars 164 forks source link

System.TypeInitializationException: The type initializer for 'OpenSSL.Core.Native' #157

Open sasha-x opened 4 years ago

sasha-x commented 4 years ago
~/Desktop/scallion-v2.0$ mono scallion.exe -l
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'OpenSSL.Core.Native' threw an exception. ---> System.EntryPointNotFoundException: ERR_load_crypto_strings assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) OpenSSL.Core.Native.ERR_load_crypto_strings()
  at OpenSSL.Core.Native..cctor () [0x00080] in <38c0e4f76c27429fb3b78d7e3d807f68>:0 
   --- End of inner exception stack trace ---
  at OpenSSL.Core.ThreadInitialization.InitializeThreads () [0x00001] in <38c0e4f76c27429fb3b78d7e3d807f68>:0 
  at scallion.Program.Main (System.String[] args) [0x00008] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'OpenSSL.Core.Native' threw an exception. ---> System.EntryPointNotFoundException: ERR_load_crypto_strings assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) OpenSSL.Core.Native.ERR_load_crypto_strings()
  at OpenSSL.Core.Native..cctor () [0x00080] in <38c0e4f76c27429fb3b78d7e3d807f68>:0 
   --- End of inner exception stack trace ---
  at OpenSSL.Core.ThreadInitialization.InitializeThreads () [0x00001] in <38c0e4f76c27429fb3b78d7e3d807f68>:0 
  at scallion.Program.Main (System.String[] args) [0x00008] in <1229c4d7c88140dba1cf0e6bed5a8c08>:0 
$ uname -a
Linux dell-7720 4.15.0-70-generic #79-Ubuntu SMP Tue Nov 12 10:36:11 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
alex@dell-7720:~/Desktop/scallion-v2.0$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:   bionic
$ nvidia-settings -v
nvidia-settings:  version 418.56
  The NVIDIA X Server Settings tool.
$ lspci 
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (rev a1)
.....

Same shit after src build.

Tail of build output:

Build succeeded.

"/home/alex/Desktop/tmp/scallion/scallion.sln" (default target) (1) ->
"/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj" (default target) (2) ->
(ResolveCodeAnalysisRuleSet target) -> 
  /usr/lib/mono/msbuild/Current/bin/Microsoft.CSharp.CurrentVersion.targets(142,9): warning MSB3884: Could not find rule set file "AllRules.ruleset". [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]

"/home/alex/Desktop/tmp/scallion/scallion.sln" (default target) (1) ->
"/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj" (default target) (2) ->
(CoreCompile target) -> 
  Platform/Windows/WinGLNative.cs(578,10): warning CS1030: #warning: '"This seems to resize one of the 'large' icons, rather than using a small icon directly (multi-icon files). Investigate!"' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  DisplayDevice.cs(78,10): warning CS1030: #warning: '"Consolidate current resolution with bounds? Can they fall out of sync right now?"' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/X11/X11GLContext.cs(122,10): warning CS1030: #warning: '"This is not entirely correct: Embedded is not a valid flag! We need to add a GetARBContextFlags(GraphicsContextFlags) method."' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/Windows/WinGLContext.cs(94,10): warning CS1030: #warning: '"This is not entirely correct: Embedded is not a valid flag! We need to add a GetARBContextFlags(GraphicsContextFlags) method."' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/Windows/WinMMJoystick.cs(117,10): warning CS1030: #warning: '"Implement joystick name detection for WinMM."' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Input/IInputDriver.cs(16,37): warning CS0612: 'IKeyboardDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Input/IInputDriver.cs(16,54): warning CS0612: 'IMouseDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Input/IInputDriver.cs(16,68): warning CS0612: 'IJoystickDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/X11/X11Joystick.cs(38,32): warning CS0612: 'IJoystickDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/Windows/WinMMJoystick.cs(39,34): warning CS0612: 'IJoystickDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(100,70): warning CS3001: Argument type 'ContextProperties*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(100,87): warning CS3001: Argument type 'uint' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(100,108): warning CS3001: Argument type 'IntPtr*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(100,185): warning CS3001: Argument type 'ErrorCode*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(105,88): warning CS3001: Argument type 'uint' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(113,90): warning CS3001: Argument type 'uint' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(119,68): warning CS3001: Argument type 'ContextProperties*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(119,85): warning CS3001: Argument type 'uint' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(119,106): warning CS3001: Argument type 'IntPtr*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(119,183): warning CS3001: Argument type 'ErrorCode*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(125,92): warning CS3001: Argument type 'uint' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(134,94): warning CS3001: Argument type 'uint' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(141,78): warning CS3001: Argument type 'ContextProperties*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(141,187): warning CS3001: Argument type 'ErrorCode*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(160,76): warning CS3001: Argument type 'ContextProperties*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(160,185): warning CS3001: Argument type 'ErrorCode*' is not CLS-compliant [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  DisplayDevice.cs(82,55): warning CS0618: 'DisplayResolution.Bounds' is obsolete: 'This property will return invalid results if a monitor changes resolution. Use DisplayDevice.Bounds instead.' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  DisplayResolution.cs(154,51): warning CS0618: 'DisplayResolution.Bounds' is obsolete: 'This property will return invalid results if a monitor changes resolution. Use DisplayDevice.Bounds instead.' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  DisplayResolution.cs(188,20): warning CS0618: 'DisplayResolution.Bounds' is obsolete: 'This property will return invalid results if a monitor changes resolution. Use DisplayDevice.Bounds instead.' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/Windows/WinDisplayDevice.cs(149,25): warning CS0618: 'DisplayResolution.Bounds' is obsolete: 'This property will return invalid results if a monitor changes resolution. Use DisplayDevice.Bounds instead.' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  GameWindow.cs(606,26): warning CS0612: 'NativeWindow.InputDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  GameWindow.cs(618,26): warning CS0612: 'NativeWindow.InputDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  GameWindow.cs(618,59): warning CS0612: 'NativeWindow.InputDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  GameWindow.cs(630,26): warning CS0612: 'NativeWindow.InputDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  GameWindow.cs(630,56): warning CS0612: 'NativeWindow.InputDriver' is obsolete [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  GameWindow.cs(909,17): warning CS0618: 'IGraphicsContext.VSync' is obsolete: 'Use SwapInterval property instead.' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/Windows/WinGLNative.cs(59,38): warning CS0649: Field 'WinGLNative.ModalLoopCallback' is never assigned to, and will always have its default value null [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/Dummy/DummyGLContext.cs(26,14): warning CS0169: The field 'DummyGLContext.vsync' is never used [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Platform/MacOS/AglContext.cs(53,23): warning CS0169: The field 'AglContext.device' is never used [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  DisplayDevice.cs(323,79): warning CS1574: XML comment has cref attribute 'DeviceIndex' that could not be resolved [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  DisplayDevice.cs(325,48): warning CS1574: XML comment has cref attribute 'DeviceIndex' that could not be resolved [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Graphics/ColorFormat.cs(133,44): warning CS1591: Missing XML comment for publicly visible type or member 'ColorFormat.Empty' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Graphics/OpenGL/GLHelper.cs(1060,26): warning CS1591: Missing XML comment for publicly visible type or member 'DebugProcAmd' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Graphics/OpenGL/GLHelper.cs(1064,26): warning CS1591: Missing XML comment for publicly visible type or member 'DebugProcArb' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Input/MouseState.cs(183,21): warning CS1591: Missing XML comment for publicly visible type or member 'MouseState.IsConnected' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  NativeWindow.cs(822,44): warning CS1574: XML comment has cref attribute 'KeyboardKeyEventArgs' that could not be resolved [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(87,67): warning CS0419: Ambiguous reference in cref attribute: 'GetDeviceInfo'. Assuming 'CL.GetDeviceInfo(IntPtr, DeviceInfo, IntPtr, IntPtr, IntPtr[])', but could have also matched other overloads including 'CL.GetDeviceInfo(IntPtr, DeviceInfo, IntPtr, IntPtr, out IntPtr)'. [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(100,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContext(ContextProperties*, uint, IntPtr*, IntPtr, IntPtr, ErrorCode*)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(105,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContext(ContextProperties[], uint, IntPtr[], IntPtr, IntPtr, ErrorCode[])' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(113,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContext(ref ContextProperties, uint, ref IntPtr, IntPtr, IntPtr, out ErrorCode)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(119,31): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContext<T4>(ContextProperties*, uint, IntPtr*, IntPtr, ref T4, ErrorCode*)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(125,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContext<T4>(ContextProperties[], uint, IntPtr[], IntPtr, ref T4, ErrorCode[])' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(134,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContext<T4>(ref ContextProperties, uint, ref IntPtr, IntPtr, ref T4, out ErrorCode)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(141,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContextFromType(ContextProperties*, DeviceTypeFlags, IntPtr, IntPtr, ErrorCode*)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(146,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContextFromType(ContextProperties[], DeviceTypeFlags, IntPtr, IntPtr, ErrorCode[])' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(154,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContextFromType(ref ContextProperties, DeviceTypeFlags, IntPtr, IntPtr, out ErrorCode)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(160,31): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContextFromType<T4>(ContextProperties*, DeviceTypeFlags, IntPtr, ref T4, ErrorCode*)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(166,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContextFromType<T4>(ContextProperties[], DeviceTypeFlags, IntPtr, ref T4, ErrorCode[])' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]
  Compute/CL10/CLHelper.cs(175,37): warning CS1591: Missing XML comment for publicly visible type or member 'CL.CreateContextFromType<T4>(ref ContextProperties, DeviceTypeFlags, IntPtr, ref T4, out ErrorCode)' [/home/alex/Desktop/tmp/scallion/opentk/Source/OpenTK/OpenTK.csproj]

    60 Warning(s)
    0 Error(s)

Time Elapsed 00:00:13.58