Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
        ## Mon Jun 19         ## Mon Jun 19 09:49:41 W. Europe Daylight Time 2006        ## Authors: Time 2006        ## Authors: R.Giannitrapani M.Frailis         ## Contact: [
        ## Contact: riccardo@fisica.uniud.it|mailto:riccardo@fisica.uniud.it]         ## Web site:\
        ## Web site:[www.fisica.uniud.it/~glast/FRED

Panel

Fred v0r100p1 is the patch provided for a bug discovered in Fred v0r100. 

PROBLEM

When running Gleam (from GlastRelease-v15r49), Fred v0r100 would not launch, and instead this is as far as Fred v0r100 would go when passed a ".ior" file:

Code Block
CORBA HepRep Object Ready
##########################################################
## FRED version v0r100 "Calvin"
## Mon Jun 19 09:44:22 W. Europe Daylight Time 2006
## Authors: R.Giannitrapani M.Frailis
## Contact: riccardo@fisica.uniud.it
## Web site: www.fisica.uniud.it/~glast/FRED
##########################################################
./kernel/modules/Help/module.rb:38: warning: Insecure world writable dir /afs/slac/g/glast/ground in PATH, mode 040777
Wow, I've been requested by Fred, v1.0
Replied with GlastServer version=0.1;dataFormat=heprep2;setEventCommand=next,commands,getEventId,fluxes,source,back,eventId,eventIdx,openfile
I've just given to Fred, v1.0 an HepRep object
FXRbToolBar::create: trying to create window before creating parent window.

A windows briefly popped up and then disappeared with that last error message.  Analagously, when on the Windows operating system, FRED v0r100 would throw the following error:

      ########################################################

      ## FRED version v0r100 "Calvin"

Wiki Markup

http://www.fisica.uniud.it/%7Eglast/FRED]  &nbspImage Removed\]   

;     ##########################################################
        Wow, I've been requested by Fred, v1.0
        Replied with GlastServer version=0.1;dataFormat=heprep2;setEventCommand=next,com
        mands,getEventId,fluxes,source,back,eventId,eventIdx,openfile
        I've just given to Fred, v1.0 an HepRep object

Wiki Markup*        .         . /kernel/gui/FredMainWindow.rb:961: \ [BUG\] Segmentation fault{*} Wiki Markup*        ruby
        ruby 1.8.2 (2004-12-25) \ [i386-mswin32\]*

SOLUTION

(tick) The solution for both errors is to fix a line in kernel/gui/FredMainWindow.rb in the Fred v0r100 distribution.  On line 954 (in the "addToolBar" procedure), I changed
        Wiki Markup*@toolbars\[name\] = FXToolBar.new{*}(temp,
to
        Wiki Markup*@toolbars\[name\] = FXToolBar.new{*}(@toolbarBox

And that is the change in Fred v0r100p1.

...

  1. FRED v0r100p1 is availabe at SLAC in /nfs/farm/g/glast/u05/extlib/VC8/FRED-v0r100p1.zip
    1. (warning) When using ftp to get the zip file, set the mode to "binary"
      1. Code Block
        F:\somelocation> ftp ftp.slac.stanford.edu
        ftp> binary
        200 Type set to I
        ftp> cd /nfs/farm/g/glast/u05/extlib/VC8
        250 CWD command successful
        ftp> get FRED-v0r100p1.zip
        
  2. Extract the contents of FRED-v0r100p1.zip
Panel

(minus) Using the DOS, "unzip," command to extract the contens of FRED-v0r100p1.zip prevents FRED from launching, and throws an error:  
CORBAHepRepServerIOR=IOR:010000001700000049444c3a4865704576656e745365727665723a3
12e300000010000000000000064000000010102000d0000003139322e3136382e36312e310000151
10e000000fe6ef21e4a0000121800000000000000020000000000000008000000010000000054544
1010000001c00000001000000010001000100000001000105090101000100000009010100
CORBA HepRep Object Ready
##########################################################
## FRED version v0r100 "Calvin"
## Mon Jun 19 09:49:41 W. Europe Daylight Time 2006
## Authors: R.Giannitrapani M.Frailis
## Contact: riccardo@fisica.uniud.it
## Web site: www.fisica.uniud.it/~glast/FRED
##########################################################unmigrated-wiki-markup

*./kernel/Fred.rb:100:in `\[\]': no implicit conversion from nil to integer (TypeError)*
        from ./kernel/Fred.rb:100:in `loadModules'
        from ./kernel/Fred.rb:44:in `initFred'
        from ./kernel/main.rb:38
        from F:/glast/extlib/Fred/v0r100p1/vc71/fred.rb:276:in `load'
        from F:/glast/extlib/Fred/v0r100p1/vc71/fred.rb:276:in `bootFRED'
        from F:/glast/extlib/Fred/v0r100p1/vc71/fred.rb:289
(plus) To avoid the above error, I recommend using a program like WinZip or 7-zip to extract the contents of FRED-v0r100p1.zip.  Basically, avoid using the DOS "unzip" command on FRED-v0r100p1.zip