MatterControl: X11 Error: BadMatch (invalid parameter attributes) (crash)

Bug Report

Steps to Reproduce

  1. Upgrade to v2.19.10 on Elementary OS v5.0 Juno.
  2. (Attempt to) Start software with application tile, 2b. Start software from command line. 2c. Momentary processing, some gtk/mono whinging.
  3. X11 Error: BadMatch, crash with exit code 1.

Expected Behavior Program v2.x and above loads and I can configure my 3d printer.

Actual Behavior Program installed from v2.x debfile crashes without displaying MatterControl window.

MatterControl Build Number Installed via dpkg -i ./MatterControlSetup-2.19.10.10370.deb, so assuming it’s 10370?

Operating System Version Elementary OS 5.0 Juno

Printer Make/Model Robo3D R1+.

Console Log

user@system >$ sudo dpkg -i ./MatterControlSetup-2.19.10.10370.deb 
[sudo] password for jakimfett:                            
Selecting previously unselected package mattercontrol.
(Reading database ... 266221 files and directories currently installed.)
Preparing to unpack .../MatterControlSetup-2.19.10.10370.deb ...
Unpacking mattercontrol (2.19.10.10367) ...
Setting up mattercontrol (2.19.10.10367) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2+elementary2~ubuntu5.0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.60ubuntu1) ...

user@system >$ mattercontrol --version
Could not get XIM
Gtk-Message: 14:11:28.483: Failed to load module "pantheon-filechooser-module"

(mono:31518): Gtk-WARNING **: 14:11:28.498: Unable to locate theme engine in module_path: "pixmap",

(mono:31518): Gtk-WARNING **: 14:11:28.498: Unable to locate theme engine in module_path: "pixmap",

(mono:31518): Gtk-WARNING **: 14:11:28.498: Unable to locate theme engine in module_path: "pixmap",

(mono:31518): Gtk-WARNING **: 14:11:28.499: Unable to locate theme engine in module_path: "pixmap",
X11 Error encountered: 
  Error: BadMatch (invalid parameter attributes)
  Request:     154 (5)
  Resource ID: 0x7200014
  Serial:      264
  Hwnd:        Hwnd, Mapped:False ClientWindow:0x7200014, WholeWindow:0x7200013, Zombie=False, Parent:[Hwnd, Mapped:False ClientWindow:0x7200012, WholeWindow:0x7200011, Zombie=False, Parent:[<null>]]
  Control:     0  at System.Environment.get_StackTrace () [0x00000] in <285579f54af44a2ca048dad6be20e190>:0 
  at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr , System.IntPtr , System.IntPtr ) [0x00000] in <d85857bc66524258b04ff0bdaeed67db>:0 
  at OpenTK.Platform.X11.Glx.MakeCurrent (System.IntPtr display, System.IntPtr drawable, OpenTK.ContextHandle context) [0x00000] in <d85857bc66524258b04ff0bdaeed67db>:0 
  at OpenTK.Platform.X11.X11GLContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in <d85857bc66524258b04ff0bdaeed67db>:0 
  at OpenTK.Graphics.GraphicsContext.MakeCurrent (OpenTK.Platform.IWindowInfo window) [0x00000] in <d85857bc66524258b04ff0bdaeed67db>: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 <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.UserControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.CreateHandle () [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.CreateControl () [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.CreateControl () [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.SetVisibleCore (System.Boolean value) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Form.SetVisibleCore (System.Boolean value) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>: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 <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.Show () [0x00000] in <7346aaf818a24e898fc55461ebf690ad>: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 <a5c2db3666d84398b1090e2f2dfee474>:0 
  at MatterHackers.MatterControl.Program.Main (System.String[] args) [0x00000] in <e58f04b6857344df9781155f8ee2c0c8>:0 

exception inside UnhandledException handler: (null) assembly:/usr/lib/mono/4.5/mscorlib.dll type:FileNotFoundException member:(null)

[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at Mindscape.Raygun4Net.RaygunMessageBuilder.SetEnvironmentDetails () [0x0000b] in <f91f2b249ee243acbec1dd6bfd729d19>:0 
  at Mindscape.Raygun4Net.RaygunClient.BuildMessage (System.Exception exception, System.Collections.Generic.IList`1[T] tags, System.Collections.IDictionary userCustomData, Mindscape.Raygun4Net.Messages.RaygunIdentifierMessage userInfoMessage, System.Nullable`1[T] currentTime) [0x00024] in <f91f2b249ee243acbec1dd6bfd729d19>:0 
  at Mindscape.Raygun4Net.RaygunClient.StripAndSend (System.Exception exception, System.Collections.Generic.IList`1[T] tags, System.Collections.IDictionary userCustomData, Mindscape.Raygun4Net.Messages.RaygunIdentifierMessage userInfo, System.Nullable`1[T] currentTime) [0x00016] in <f91f2b249ee243acbec1dd6bfd729d19>:0 
  at Mindscape.Raygun4Net.RaygunClient.Send (System.Exception exception, System.Collections.Generic.IList`1[T] tags, System.Collections.IDictionary userCustomData, Mindscape.Raygun4Net.Messages.RaygunIdentifierMessage userInfo) [0x00023] in <f91f2b249ee243acbec1dd6bfd729d19>:0 
  at Mindscape.Raygun4Net.RaygunClient.Send (System.Exception exception) [0x00000] in <f91f2b249ee243acbec1dd6bfd729d19>:0 
  at MatterHackers.MatterControl.Program+<>c.<Main>b__6_2 (System.Object s, System.Threading.ThreadExceptionEventArgs e) [0x0001c] in <e58f04b6857344df9781155f8ee2c0c8>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00037] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x000d5] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams cp) [0x004e5] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00009] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.CreateHandle () [0x00031] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.CreateControl () [0x00039] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.CreateControl()
  at System.Windows.Forms.Control.CreateControl () [0x00072] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.SetVisibleCore (System.Boolean value) [0x00057] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Form.SetVisibleCore (System.Boolean value) [0x00065] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at MatterHackers.Agg.UI.WinformsSystemWindow.SetVisibleCore (System.Boolean value) [0x00009] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 
  at System.Windows.Forms.Control.set_Visible (System.Boolean value) [0x00009] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.Show () [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at MatterHackers.Agg.UI.WinformsSystemWindow.Show () [0x000f8] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 
  at MatterHackers.Agg.UI.WinformsSystemWindow.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00060] in <712ffdb4c0144e8c88c0ce33a0b20977>:0 
  at MatterHackers.Agg.UI.SingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00373] in <49bb6fd6740f4762a381356153fe2e02>:0 
  at MatterHackers.MatterControl.WinformsSingleWindowProvider.ShowSystemWindow (MatterHackers.Agg.UI.SystemWindow systemWindow) [0x00031] in <16b4831ddba24ef8b2ca5ca9a43af3cd>:0 
  at MatterHackers.Agg.UI.SystemWindow.ShowAsSystemWindow () [0x0002b] in <a5c2db3666d84398b1090e2f2dfee474>:0 
  at MatterHackers.MatterControl.Program.Main (System.String[] args) [0x0037f] in <e58f04b6857344df9781155f8ee2c0c8>:0 

user@system >$ echo $?
1

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 24 (1 by maintainers)

Most upvoted comments

You can edit /usr/lib/mattercontrol/appsettings.json to override this bug. Application crashes while ‘Color’ and ‘Depth’ parameters has different values. I set this values to ‘24’, and program works fine.

I installed 2.0 with only Intel Integrated graphics and it starts. Initially, it’s just a blank window but when I maximize it, I see and accept the license agreement. After that, all is normal.

Fedora 31 UHD Graphics 620

@didli yes it would be interesting to see if anyone on AMD or Intel graphics is having this issue.

I do notice a graphics hiccup (momentary choppy responsiveness) between when the program is executed and the (moments later) crashdump, @unlimitedbacon.

That said, I’m running a reasonably powerful graphics card (the GTX 970 FTW+ at almost five years old is nearly still more than 10x what Passmark considers “low mid range”) with the v390.116 Nvidia proprietary driver for Linux-x86_64.

After re-installing with a freshly-downloaded .deb and setting FSAASamples to zero, the hiccup and crashdump are still generated when running the mattercontrol command, run duration approximately three seconds, total.

(edit(s) for clarity & conciseness, thanks @h54 for reminding me to add driver version numbers)