MatterHackers / MatterControl

3D printing software for Windows, Mac and Linux
http://www.mattercontrol.com/
BSD 2-Clause "Simplified" License
459 stars 184 forks source link

Ubuntu 19.10 (X11 Error, Request 151 (5)) #4705

Open gpropf opened 4 years ago

gpropf commented 4 years ago

Bug Report

Steps to Reproduce

  1. Installed the deb file from https://www.matterhackers.com/store/l/mattercontrol/sk/MKZGTDW6
  2. Open terminal and run 'mattercontrol'

Expected Behavior

Mattercontrol program starts

Actual Behavior

  1. Window starts to open but crashes with errors below

`X11 Error encountered: Error: BadMatch (invalid parameter attributes) Request: 151 (5) Resource ID: 0x4800014 Serial: 263 Hwnd: Hwnd, Mapped:False ClientWindow:0x4800014, WholeWindow:0x4800013, Zombie=False, Parent:[Hwnd, Mapped:False ClientWindow:0x4800012, WholeWindow:0x4800011, Zombie=False, Parent:[]] Control: 0 at System.Environment.get_StackTrace () [0x00000] in :0 at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr , System.IntPtr , System.IntPtr ) [0x00000] in :0 at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr display, System.IntPtr drawable, OpenTK.ContextHandle context) [0x00000] in :0 at OpenTK.Platform.X11.X11GLContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in :0 at OpenTK.Graphics.GraphicsContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in :0 at OpenTK.GLControl.MakeCurrent () [0x00000] in <33e0a290e5404e8e8877ff9c93b1ec2f>:0 at OpenTK.GLControl.OnHandleCreated (System.EventArgs e) [0x00000] in <33e0a290e5404e8e8877ff9c93b1ec2f>:0 at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.UserControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control.CreateHandle () [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control.CreateControl () [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control.CreateControl () [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control.SetVisibleCore (System.Boolean value) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Form.SetVisibleCore (System.Boolean value) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at MatterHackers.Agg.UI.WinformsSystemWindow.SetVisibleCore (System.Boolean value) [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at System.Windows.Forms.Control.set_Visible (System.Boolean value) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control.Show () [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at MatterHackers.Agg.UI.WinformsSystemWindow.Show () [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at MatterHackers.Agg.UI.WinformsSystemWindow.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at MatterHackers.Agg.UI.SingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <49bb6fd6740f4762a381356153fe2e02>:0 at MatterHackers.MatterControl.WinformsSingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <16b4831ddba24ef8b2ca5ca9a43af3cd>:0 at MatterHackers.Agg.UI.SystemWindow.ShowAsSystemWindow () [0x00000] in :0 at MatterHackers.MatterControl.Program.Main (System.String[] args) [0x00000] in :0

Time to '': 1353 X11 Error encountered: Error: BadMatch (invalid parameter attributes) Request: 151 (5) Resource ID: 0x4800014 Serial: 318 Hwnd: Hwnd, Mapped:True ClientWindow:0x4800014, WholeWindow:0x4800013, Zombie=False, Parent:[Hwnd, Mapped:True ClientWindow:0x4800012, WholeWindow:0x4800011, Zombie=False, Parent:[]] Control: 0 at System.Environment.get_StackTrace () [0x00000] in :0 at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr , System.IntPtr , System.IntPtr ) [0x00000] in :0 at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr display, System.IntPtr drawable, OpenTK.ContextHandle context) [0x00000] in :0 at OpenTK.Platform.X11.X11GLContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in :0 at OpenTK.Graphics.GraphicsContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in :0 at OpenTK.GLControl.MakeCurrent () [0x00000] in <33e0a290e5404e8e8877ff9c93b1ec2f>:0 at MatterHackers.Agg.UI.AggGLControl.MakeCurrent () [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at MatterHackers.Agg.UI.OpenGLSystemWindow.OnPaint (System.Windows.Forms.PaintEventArgs paintEventArgs) [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at MatterHackers.Agg.UI.WinformsSystemWindow.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at MatterHackers.Agg.UI.SingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <49bb6fd6740f4762a381356153fe2e02>:0 at MatterHackers.MatterControl.WinformsSingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <16b4831ddba24ef8b2ca5ca9a43af3cd>:0 at MatterHackers.Agg.UI.SystemWindow.ShowAsSystemWindow () [0x00000] in :0 at MatterHackers.MatterControl.Program.Main (System.String[] args) [0x00000] in :0

X11 Error encountered: Error: BadMatch (invalid parameter attributes) Request: 151 (5) Resource ID: 0x4800014 Serial: 362 Hwnd: Hwnd, Mapped:False ClientWindow:0x4800014, WholeWindow:0x4800013, Zombie=False, Parent:[Hwnd, Mapped:False ClientWindow:0x4800012, WholeWindow:0x4800011, Zombie=False, Parent:[]] Control: 0 at System.Environment.get_StackTrace () [0x00000] in :0 at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr , System.IntPtr , System.IntPtr ) [0x00000] in :0 at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr display, System.IntPtr drawable, OpenTK.ContextHandle context) [0x00000] in :0 at OpenTK.Platform.X11.X11GLContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in :0 at OpenTK.Graphics.GraphicsContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in :0 at OpenTK.GLControl.MakeCurrent () [0x00000] in <33e0a290e5404e8e8877ff9c93b1ec2f>:0 at MatterHackers.Agg.UI.AggGLControl.MakeCurrent () [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at MatterHackers.Agg.UI.OpenGLSystemWindow.OnClosed (System.EventArgs e) [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at System.Windows.Forms.Form.FireClosedEvents (System.Windows.Forms.CloseReason reason) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Form.RaiseCloseEvents (System.Boolean last_check, System.Boolean cancel) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Form.WmClose (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUI.SendMessage (System.IntPtr handle, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Form.Close () [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at MatterHackers.Agg.UI.WinformsSystemWindow.CloseSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at MatterHackers.Agg.UI.SingleWindowProvider.CloseSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <49bb6fd6740f4762a381356153fe2e02>:0 at MatterHackers.Agg.UI.SystemWindow.OnClosed (System.EventArgs e) [0x00000] in :0 at MatterHackers.MatterControl.RootSystemWindow.OnClosed (System.EventArgs e) [0x00000] in <49bb6fd6740f4762a381356153fe2e02>:0 at MatterHackers.Agg.UI.GuiWidget.Close () [0x00000] in :0 at MatterHackers.Agg.UI.GuiWidget.b__391_0 () [0x00000] in :0 at MatterHackers.Agg.UI.UiThread.InvokePendingActions () [0x00000] in :0 at System.Reflection.RuntimeMethodInfo.InternalInvoke (System.Reflection.RuntimeMethodInfo , System.Object , System.Object[] , System.Exception& ) [0x00000] in :0 at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in :0 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in :0 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in :0 at System.Windows.Forms.XplatUIDriverSupport.ExecutionCallback (System.Windows.Forms.AsyncMethodData data) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUIDriverSupport.ExecutionCallbackInContext (System.Object state) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in :0 at System.Windows.Forms.XplatUIDriverSupport.ExecuteClientMessage (System.Runtime.InteropServices.GCHandle gchandle) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr handle, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <69e4940ac30645898b9c63f67c310dba>:0 at MatterHackers.Agg.UI.WinformsSystemWindow.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 at MatterHackers.Agg.UI.SingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <49bb6fd6740f4762a381356153fe2e02>:0 at MatterHackers.MatterControl.WinformsSingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00000] in <16b4831ddba24ef8b2ca5ca9a43af3cd>:0 at MatterHackers.Agg.UI.SystemWindow.ShowAsSystemWindow () [0x00000] in :0 at MatterHackers.MatterControl.Program.Main (System.String[] args) [0x00000] in :0 `

MatterControl Build Number

2.19.10.10370

Operating System Version

Ubuntu 19.10 with stock kernel 5.3.0-40-generic.

Printer Make/Model

Not relevant as program fails to start.

bryanmtdt commented 4 years ago

I'm having the same problem, seems to be calling processes on DISPLAY :0 but my system is mainly running on :1 or :1.0, and even calling mattercontrol with :1 doesn't work and shows the same error messages. I'm running Ubuntu 19.10. And installed from deb package. I'd like to try compiling and/or appimage (it seems the development is stopped on this).