Ubuntu Server 22.04.1 LTS - Throw exeption -

edited February 2023 in Repetier-Server
Hi,
I did a fresh installation on my PC with Ubuntu Server 22.04.1 LTS.
After download and extraction, I go to the folder and run ./configure_first.sh
When I starting repetier-host it throws folling error message



root@pstpc42:~/RepetierHost# repetierHost
root@pstpc42:~/RepetierHost#
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
  at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x00435] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.XplatUI..cctor () [0x000e3] in <a3daa9b84fd241a497578a25f68bc3c7>:0
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00005] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.Control..ctor () [0x000dc] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control..ctor()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x0000d] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.Form..ctor () [0x00012] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at RepetierHost.view.utils.SplashScreen..ctor () [0x00000] in <0ca2e0ea36c74fe187369efc262ab16d>:0
  at (wrapper remoting-invoke-with-check) RepetierHost.view.utils.SplashScreen..ctor()
  at RepetierHost.view.utils.SplashScreen.run () [0x00049] in <0ca2e0ea36c74fe187369efc262ab16d>:0
  at RepetierHost.Program.Main (System.String[] args) [0x0000b] in <0ca2e0ea36c74fe187369efc262ab16d>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
  at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x00435] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.XplatUI..cctor () [0x000e3] in <a3daa9b84fd241a497578a25f68bc3c7>:0
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00005] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.Control..ctor () [0x000dc] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control..ctor()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x0000d] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at System.Windows.Forms.Form..ctor () [0x00012] in <a3daa9b84fd241a497578a25f68bc3c7>:0
  at RepetierHost.view.utils.SplashScreen..ctor () [0x00000] in <0ca2e0ea36c74fe187369efc262ab16d>:0
  at (wrapper remoting-invoke-with-check) RepetierHost.view.utils.SplashScreen..ctor()
  at RepetierHost.view.utils.SplashScreen.run () [0x00049] in <0ca2e0ea36c74fe187369efc262ab16d>:0
  at RepetierHost.Program.Main (System.String[] args) [0x0000b] in <0ca2e0ea36c74fe187369efc262ab16d>:0


Comments

Sign In or Register to comment.