Repetier Host does not start anymore on Ubuntu 16.04

After a few month or so I tried to start repetier host, which does not work

Unhandled Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at RepetierHost.view.utils.RegMemory.StringToWindowPos (System.Windows.Forms.Form f, System.String pos, System.Int32 screenId) [0x0002a] in <4b6b78851490464eaa6ae55615a8e4c5>:0
  at RepetierHost.view.utils.RegMemory.RestoreWindowPos (System.String name, System.Windows.Forms.Form f) [0x00031] in <4b6b78851490464eaa6ae55615a8e4c5>:0
  at RepetierHost.Main..ctor () [0x00473] in <4b6b78851490464eaa6ae55615a8e4c5>:0
  at (wrapper remoting-invoke-with-check) RepetierHost.Main:.ctor ()
  at RepetierHost.Program.Main (System.String[] args) [0x0001a] in <4b6b78851490464eaa6ae55615a8e4c5>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at RepetierHost.view.utils.RegMemory.StringToWindowPos (System.Windows.Forms.Form f, System.String pos, System.Int32 screenId) [0x0002a] in <4b6b78851490464eaa6ae55615a8e4c5>:0
  at RepetierHost.view.utils.RegMemory.RestoreWindowPos (System.String name, System.Windows.Forms.Form f) [0x00031] in <4b6b78851490464eaa6ae55615a8e4c5>:0
  at RepetierHost.Main..ctor () [0x00473] in <4b6b78851490464eaa6ae55615a8e4c5>:0
  at (wrapper remoting-invoke-with-check) RepetierHost.Main:.ctor ()
  at RepetierHost.Program.Main (System.String[] args) [0x0001a] in <4b6b78851490464eaa6ae55615a8e4c5>:0


The strange thing is that I have used this version on the same computer without any problems for a long time.
Originally, the app image was 2.0.5, I also tried the recent one 2.1.3, same error.

I also did a apt-get upgrade and installed mono-devel (just to be sure)

Comments

  • edited August 2018
    sorry, fixed it, I just deleted the values.xml in the window folder of .mono. Sorry for the spam.

    I think I know now why this might happened. Normally I have multiple screens connected to my laptop, but this time not. Therefore these values are out of bound

    But I think repetier should not crash in such a situation.
  • I can try to put a try catch clause in that function so it just does not position window if position is illegal. Hope that will fix the position error problem.
  • Since I am able to reproduce the error consistently, I can test whether this fixes it, if you want.
    Steps to reproduce:
    - Add another screen to the pc,
    - open repetier
    - move repetier to the new screen
    - close repetier
    - disconnect the screen
    - try to open repetier

  • I have checked it and the used version did not have the try/catch so now it hopefully will work. If it still doe snot work after the next update please let me know. Not having 2 monitors I can not reproduce this but I'm quite confident that it solves the problem.
Sign In or Register to comment.