Repetier Host cannot connect to Printer without SUDO
I have Repetier Host 2.1.6 as an AppImage. It connected fine under Ubuntu 19.04, but I wiped my computer to clean install Ubuntu 20.04. Using the same AppImage, I can start RH, but it crashes upon clicking the "Connect" button. If I load the AppImage from the commandline with a "sudo" prefix, then the Connect button works. Can anyone help fix this? The log is below--the line starting with Unhandled Exception is output upon clicking Connect.
~/Desktop$ ./Repetier-Host-x86_64-2.1.6.AppImage
LD_LIBRARY_PATH = /tmp/.mount_Repetiq6lxWU/usr/lib:/tmp/.mount_Repetiq6lxWU/usr/lib/mono/4.5:
MONO_PATH = /tmp/.mount_Repetiq6lxWU/usr/lib/mono/4.5
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver..cctor () [0x0004d] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
at System.Console..cctor () [0x0008e] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00059] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x002e2] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <c86f0be4f9a847d3b8d63306221e6732>:0
at RepetierHost.Program.Main (System.String[] args) [0x0001f] in <374e76794d164d76af696b6b7ca9e871>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver..cctor () [0x0004d] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
at System.Console..cctor () [0x0008e] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00059] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x002e2] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <c86f0be4f9a847d3b8d63306221e6732>:0
at RepetierHost.Program.Main (System.String[] args) [0x0001f] in <374e76794d164d76af696b6b7ca9e871>:0
LD_LIBRARY_PATH = /tmp/.mount_Repetiq6lxWU/usr/lib:/tmp/.mount_Repetiq6lxWU/usr/lib/mono/4.5:
MONO_PATH = /tmp/.mount_Repetiq6lxWU/usr/lib/mono/4.5
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver..cctor () [0x0004d] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
at System.Console..cctor () [0x0008e] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00059] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x002e2] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <c86f0be4f9a847d3b8d63306221e6732>:0
at RepetierHost.Program.Main (System.String[] args) [0x0001f] in <374e76794d164d76af696b6b7ca9e871>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a07d6bf484a54da2861691df910339b1>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
at System.ConsoleDriver..cctor () [0x0004d] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
at System.Console..cctor () [0x0008e] in <a07d6bf484a54da2861691df910339b1>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00059] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x002e2] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <c86f0be4f9a847d3b8d63306221e6732>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <c86f0be4f9a847d3b8d63306221e6732>:0
at RepetierHost.Program.Main (System.String[] args) [0x0001f] in <374e76794d164d76af696b6b7ca9e871>:0
Comments