View source

From NMR Wiki

Jump to: navigation, search

Post your question about NMR, EPR or MRI on our Q&A forum

However, please this space and links below to discuss content of the corresponding wiki page.

Sorting order:
Start a new discussion about the current wiki page

Spinworks on linux (1)

There have been no changes to this discussion for at least 14 days. If it is concluded, you may want to write a summary.

Hi I would like to run this on the linux box. Has anyone done it successfully?

Porting to Linux (using mono) is underway.

When I try to run SpinWorks 3 with mono under linux I get the following error message:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at SpinWorks.SW_main.SW_main_Resize (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnResizeInternal (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnResize (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.OnResize (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.SetBoundsCoreInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.SetBoundsInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.ScaleControl (SizeF factor, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ScrollableControl.ScaleControl (SizeF factor, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Form.ScaleControl (SizeF factor, BoundsSpecified specified) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.Scale (SizeF factor) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ContainerControl.PerformAutoScale (Boolean called_by_scale) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ContainerControl.PerformAutoScale () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ContainerControl.PerformDelayedAutoScale () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ContainerControl:PerformDelayedAutoScale ()
  at System.Windows.Forms.Control.ResumeLayout (Boolean performLayout) [0x00000] in <filename unknown>:0
  at SpinWorks.SW_main.InitializeComponent () [0x00000] in <filename unknown>:0
  at SpinWorks.SW_main..ctor () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) SpinWorks.SW_main:.ctor ()
  at SpinWorks.Program.Main () [0x00000] in <filename unknown>:0

this happens with both the .NET executable and the mono compiled executable from the test_versions folder (both v3.1.6). Bailli 14:59, 7 January 2010 (UTC)

←In reply to Spinworks on linux (1) by Evgeny Fadeev, above:

Bailli,

What Linux version are you using, and what Mono version are you using? My Linux test system is openSUSE 11.1 and a fairly recent mono release (2.4.2.3). I think I.ve seen essentially the same error messages with older mono releases. This combination seems to work (mostly) O.K. I still have some issues with registry support (not essential to run SpinWorks) and some printers.

The only thing I can suggest is to upgrade to the most recent mono that is available for your O.S.

Let me know how you make out.

Thanks -Kirk

Hi,

I am running Kubuntu 9.10. The mono version supplied by the package maintainer is 2.4.2.3 and showed the mentioned error. Since I thought it might be a problem with an older version of mono, too, I compiled the latest stable release (2.6.1) myself. But the error is still the same...

Thanks for your help and your nice program.

O.K. I am going to build a new Linux version with much more tracing in it to see if I can find where it fails. From the log, it seems that it is failing very early in the start-up procedure. I will let you know when this build is ready.

Do you have (or can you get) MonoDevelop on your system?? If so, we might be able to use the debugger.

Thanks for the feedback. -Kirk

I installed MonoDevelop. (But I switched back to mono v2.4.2.3 because I had problems compiling MonoDevelop - I think the problem was due to some mixed versions of different libraries...)

You do not have permission to do that, for the following reason:

The action you have requested is limited to users in the group user.

You can view and copy the source of this page:

Return to Talk:SpinWorks.

←In reply to Spinworks on linux (5) by Bailli, above:

Sadly, the same error message is displayed with the new executable... Is there already any additional debugging oder tracing capabilites included yet?

Thanks for your efforts.

Bali,

If you can get Mono Develop compiled on your system I can send you the source code (ca 60,000 lines) for you to try to compile it. Mono Develop includes a debugger that can track down the problem.

-Kirk

←In reply to Spinworks on linux (4) by Kirk Marat, above:
Personal tools