unhandled exception when opening slic3r configuration

Hi,

If I try to open the Slic3r configuration menu, repetier 2.1.6 crashes with

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at SlicerSlic3r.Slic3rInstance.Slic3rExited (System.Object sender, System.EventArgs e) [0x00000] in <75b16d726be94d5eb45b28bbcfd6a1ca>:0
  at System.Diagnostics.Process.OnExited () [0x0003f] in <2b0d86369d72459baed0cee98a8e578a>:0
  at System.Diagnostics.Process.RaiseOnExited () [0x0002c] in <2b0d86369d72459baed0cee98a8e578a>:0
  at System.Diagnostics.Process.CompletionCallback (System.Object context, System.Boolean wasSignaled) [0x00006] in <2b0d86369d72459baed0cee98a8e578a>:0
  at System.Threading.RegisteredWaitHandle.DoCallBack (System.Object timedOut) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at SlicerSlic3r.Slic3rInstance.Slic3rExited (System.Object sender, System.EventArgs e) [0x00000] in <75b16d726be94d5eb45b28bbcfd6a1ca>:0
  at System.Diagnostics.Process.OnExited () [0x0003f] in <2b0d86369d72459baed0cee98a8e578a>:0
  at System.Diagnostics.Process.RaiseOnExited () [0x0002c] in <2b0d86369d72459baed0cee98a8e578a>:0
  at System.Diagnostics.Process.CompletionCallback (System.Object context, System.Boolean wasSignaled) [0x00006] in <2b0d86369d72459baed0cee98a8e578a>:0
  at System.Threading.RegisteredWaitHandle.DoCallBack (System.Object timedOut) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <a07d6bf484a54da2861691df910339b1>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0


curaengine works fine

Ubuntu 20.04
Any more information I have to provide?

Comments

  • Is this under Linux?
    Are you using appimage or tar solution? For tar you need to install and configure slic3r your self first or it does not get found and will not start.
  • yes, linux (ubuntu 20.04 as written, kernel 5.8.11)

    I am using the appimage (which includes slic3r.
    I also tried installing slic3r separately and then configuring repetier to point to this installation. Same error.

  • Just installed it on Mint 19 which is newest I currently have installed and worked out of the box.
    Did you also test PrusaSlicer?
    Can you start the manually downloaded Slic3r?
    Question is if these slicers have a compatibility problem like missing library that crashes them which you see in host. From the log I see the problem arises when the start is finished but it sounds like it was never successfully started.
  • Yes, I can start the manually downloaded Slic3r and also the slicing works.

    If I try PrusaSlicer, it at least opens, but if I close it, it crashes too:
    Unhandled Exception:
    System.NullReferenceException: Object reference not set to an instance of an object
      at SlicerSlic3rPE.Slic3rInstance.Slic3rExited (System.Object sender, System.EventArgs e) [0x00000] in <f4f8e67df5d04016884cf529f103c07e>:0
      at System.Diagnostics.Process.OnExited () [0x0003f] in <2b0d86369d72459baed0cee98a8e578a>:0
      at System.Diagnostics.Process.RaiseOnExited () [0x0002c] in <2b0d86369d72459baed0cee98a8e578a>:0
      at System.Diagnostics.Process.CompletionCallback (System.Object context, System.Boolean wasSignaled) [0x00006] in <2b0d86369d72459baed0cee98a8e578a>:0
      at System.Threading.RegisteredWaitHandle.DoCallBack (System.Object timedOut) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
      at SlicerSlic3rPE.Slic3rInstance.Slic3rExited (System.Object sender, System.EventArgs e) [0x00000] in <f4f8e67df5d04016884cf529f103c07e>:0
      at System.Diagnostics.Process.OnExited () [0x0003f] in <2b0d86369d72459baed0cee98a8e578a>:0
      at System.Diagnostics.Process.RaiseOnExited () [0x0002c] in <2b0d86369d72459baed0cee98a8e578a>:0
      at System.Diagnostics.Process.CompletionCallback (System.Object context, System.Boolean wasSignaled) [0x00006] in <2b0d86369d72459baed0cee98a8e578a>:0
      at System.Threading.RegisteredWaitHandle.DoCallBack (System.Object timedOut) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <a07d6bf484a54da2861691df910339b1>:0
      at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0




    Further, there is this in the console directly after opening the prusa slider (before crash):
    20:34:12.185 : PrusaSlicer command:/tmp/.mount_RepetiUBgFFw/Slic3rPE/slic3r-console.exe  --datadir "/home/userName/.Slic3rPE"
    20:34:12.193 : 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.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0037b] in <2b0d86369d72459baed0cee98a8e578a>:0    at System.Diagnostics.Process.Start () [0x0003a] in <2b0d86369d72459baed0cee98a8e578a>:0    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()   at SlicerSlic3rPE.Slic3rInstance.RunConfig () [0x001eb] in <f4f8e67df5d04016884cf529f103c07e>:0



    Curaengine works fine.

    Can I provide any more information?

    I will also try on an ubuntu 16.04 installation (where I already know that version 2.1.3 works fine, which I am using for a few months/years now)

  • on my other machine with ubuntu 16.04, version 2.1.6 works fine, no crashes.

    Now the question is if it is my specific installation or ubuntu 20.04 in general.
  • It is at least some incompatibility with a library that is not installed inside the app image and the version on your os is then causing the problems I'd say. Will make a new linux installation for testing and see what happens. 
  • Ok strange thing. I found a workaround so it worked for me on ubuntu 20.04. I needed to start it like this:
    littwin@ubuntu:~$ export TERM=xterm
    littwin@ubuntu:~$ ./Repetier-Host-x86_64-2.1.6.AppImage

    The problem seems to be inside mono console implementation which is causing the exception. We redirect it so you see output in log and without having TERM defined to something existing it seems to crash.
  • This solved it only partially for me. I now got another error (at least repetier was not crashing anymore)
    <Slic3r> libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
    Googling the error suggested to also set another environment variable
    export MESA_LOADER_DRIVER_OVERRIDE=i965

    Now I can use Slic3r from within repetier.
    The standalone version does not produce these errors

    very strange



  • We have bundled the stand alone version inside, but that version is a bit older. So guess they have changed libraries or something else. Will see on next update.
Sign In or Register to comment.