Bugs in McStas/McGUI

Kristian Nielsen kristian.nielsen at risoe.dk
Tue Feb 15 12:00:26 CET 2000


> Date: Thu, 10 Feb 2000 11:45:17 +0100
> From: Farhi <farhi at ill.fr>

Hi Emmanuel and Ron,

I have fixed some of the points we discussed at my visit a few weeks
ago:

 - Compiler warnings on SGI.
 - Components stored in subdirectories (samples, optics, monitors,
   sources, misc).
 - Automatic generation of documentation (HTML web pages) from component
   header comments.
 - String values for instrument parameters.

The use of strings for instrument parameters was somewhat more involved
than I thought initially because of the need to handle it also in the
front-ends (mcgui), but I think it is solved now.

I can send you a new version if you want. There is still one serious
bug; because of the new subdirectory structure for components, users
installing the new version may end up with both old and new components
in the mcstas directory. This is bound to cause confusion and I have not
yet decided the correct way to solve it.

About your problems on the SGI:

> 1- When on a SGI machine, I launch mcgui with the example tutorial
> in14_tut (from web)
> 
> mica~farhi 32% mcgui in14_tut.instr
> Ambiguous use of expand => resolved to "expand" => at
> /usr/ill/lib/perl5/site_perl/Tk/Text.pm line 1038.
> Ambiguous use of expand => resolved to "expand" => at
> /usr/ill/lib/perl5/site_perl/Tk/Text.pm line 1075.

Hm, this warning addresses the syntax in the source for Perl/Tk. What
version of Perl/Tk is installed? Anyway, this sounds completely harmless
(but annoying anyway). It will probably go away if the "-w" switch in
the first line of mcgui.pl is removed (please tell me if it does).

> Then if I try to compile instrument
> mcstas -t -o in14_tut.out.c in14_tut.instr
> 
> Then I crashes (mcgui disappears, core dumped). No 'cc' call is
> displayed in mcgui, but I think the problem occurs here.
> The manual processing works ok.

> 2- When using the POLARISATION macro, mcstas warns about comps that do
> not handle that, but also crashes (seg fault) at the end.
> The '.c' file is generated anyway.

Not good! Unfortunately, I could not reproduce these two crashes. That
makes it quite difficult to give suggestions.

Would it be possible to re-establish my "nielsen" account at the ILL?
Then I could just log in and try it myself, and hopefully the cause
would be apparent in 10 minutes?

 - Kristian.






More information about the mcstas-users mailing list