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
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
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.
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.
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
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
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.