Selecting Prosit in Library Match window results in unexpected error

support
Selecting Prosit in Library Match window results in unexpected error tmaile  2023-01-04 15:42
 

Hello Skyline team,

I accidentally clicked on Prosit in the Library Match window which lead to the window blanking out and becoming completely unresponsive, showing the message "Prosit is not properly configured".
Right clicking on the blank window resulted in an unexpected error report (submitted):

Message:
Object reference not set to an instance of an object.

Source code location:
System.NullReferenceException: Object reference not set to an instance of an object.
at pwiz.Skyline.Controls.Graphs.GraphSpectrum.get_SpectrumInfo() in C:\proj\pwiz\pwiz_tools\Skyline\Controls\Graphs\GraphSpectrum.cs:line 1466
at pwiz.Skyline.SkylineWindow.pwiz.Skyline.Controls.Graphs.GraphSpectrum.IStateProvider.BuildSpectrumMenu(Boolean isProteomic, ZedGraphControl zedGraphControl, ContextMenuStrip menuStrip) in C:\proj\pwiz\pwiz_tools\Skyline\SkylineGraphs.cs:line 1159
at ZedGraph.ZedGraphControl.contextMenuStrip1_Opening(Object sender, CancelEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnOpening(CancelEventArgs e)
at System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible)
at System.Windows.Forms.ToolStripDropDown.Show(Control control, Point position)
at System.Windows.Forms.ContextMenuStrip.ShowInternal(Control source, Point location, Boolean isKeyboardActivated)
at System.Windows.Forms.Control.WmContextMenu(Message& m, Control sourceControl)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Exception caught at:
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at pwiz.Skyline.Program.Main(String[] args) in C:\proj\pwiz\pwiz_tools\Skyline\Program.cs:line 312

Reloading the Skyline file did not fix the issue, I can see my spectra fine via View>Spectral_Libraries. I imported my library into the Targets list via the Spectral Library Explorer, but this also did not have any effect on the Library match window staying blank.
It seems like the window is stuck for now. Is there a workaround for this?

Best,
Tobi

 
 
Nick Shulman responded:  2023-01-04 16:01
You might be able to get Prosit work by going to:
Tools > Options > Prosit
and making sure that something is selected for both the "Intensity Model" and "iRT Model".

That will probably fix things and allow you to right-click on the Library Match graph without error.

If you are still unable to right-click on the Library Match graph, then you might have to go to:
Tools > Options > Miscellaneous
and push the "Clear all saved settings".

This will cause Skyline to forget all of its settings including the setting that says to display Prosit in the Library Match window.

I am able to reproduce the Unhandled Error but that you are running into. I will make sure this gets fixed in a future update of Skyline-daily.
-- Nick
 
tmaile responded:  2023-01-05 12:20
Hello Nick,

Thank you for the quick response! The first option worked for me: once I set entries into the empty model fields, the server got connected and the Library Match window was functional again.

Cheers,
Tobi