Ticket #160 (new defect)

Opened 10 months ago

Last modified 10 months ago

Cleaner error when no .d file

Reported by: stefan Assigned to: andrew
Priority: critical Milestone:
Component: client Version:
Keywords: Cc:

Description

Bug in Startstop causes a problem in EWFE. EWFE should allow for the possibility of no .d file, however, and come up with a message like "Can't find .d file" instead of:

Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\ogl\_canvas.py", line 219, in OnMouseEvent
    nearest_object.GetEventHandler().OnLeftClick(x, y, keys, attachment)
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\ogl\_basic.py", line 994, in OnLeftClick
    self._parent.GetEventHandler().OnLeftClick(x, y, keys, attachment)
  File "C:\isti\src\ewfe\src\ewfe_pro\client\gui\views\graph.py", line 525, in OnLeftClick
    self.__left_click()
  File "C:\isti\src\ewfe\src\ewfe_pro\client\gui\views\graph.py", line 292, in <lambda>
    self.__server_callbacks.display_module_config(module)
  File "C:\isti\src\ewfe\src\ewfe\client\gui\controllers\server.py", line 241, in display_module_config
    self.__installation.connxn.get_module_config(module),
  File "C:\isti\src\ewfe\src\ewfe\client\core\installation.py", line 203, in get_module_config
    return self.__server.get_module_config(module)
  File "C:\Python26\lib\xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "C:\Python26\lib\xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "C:\Python26\lib\xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "C:\Python26\lib\xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "C:\Python26\lib\xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "<type 'exceptions.IOError'>:[Errno 2] No such file or directory: '/app/rtem/ew/run/params/carlstatrig.d'">

Here's what Startstop status looks like:

calcite1:params} status
using default config file startstop_sol.d
NOTE: If next line reads "ERROR: tport_attach...", Earthworm is not running.
      Sent request for status; waiting for response...

                    EARTHWORM SYSTEM STATUS

        Hostname-OS:            calcite1 - SunOS 5.10
        Start time (UTC):       Wed May 20 18:14:34 2009
        Current time (UTC):     Thu Sep 24 19:51:39 2009
        Disk space avail:       3162019 kb
        Ring  1 name/key/size:  WAVE_RING_AE / 1001 / 1024 kb
        Ring  2 name/key/size:  WAVE_RING_FJ / 1002 / 1024 kb
        Ring  3 name/key/size:  WAVE_RING_KO / 1003 / 1024 kb
        Ring  4 name/key/size:  WAVE_RING_PS / 1004 / 1024 kb
        Ring  5 name/key/size:  WAVE_RING_TZ / 1005 / 1024 kb
        Ring  6 name/key/size:  WAVE_RING_ANALOG / 1006 / 1024 kb
        Ring  7 name/key/size:  PICK_RING / 1010 / 1024 kb
        Ring  8 name/key/size:  HYPO_RING / 1015 / 1024 kb
        Ring  9 name/key/size:  HYPO_RING_ARC / 1110 / 1024 kb
        Ring 10 name/key/size:  EXPORT_RING / 1075 / 1024 kb
        Ring 11 name/key/size:  FILTERPICK_RING / 1085 / 1024 kb
        Ring 12 name/key/size:  SUBTRIG_RING / 1105 / 1024 kb
        Ring 13 name/key/size:  TRIG_RING / 1095 / 1024 kb
        Startstop Version:      v7.2 2007-12-16

         Process  Process           Class/    CPU
          Name      Id     Status  Priority   Used  Argument
         -------  -------  ------  --------   ----  --------
       startstop    8943   Alive    FSS    38:23  -
         pick_ew    8946   Alive    FSS   FSS  1191:31  pick/pick_ew_ae.d
         pick_ew    8947   Alive    FSS   FSS   561:25  pick/pick_ew_fj.d
         pick_ew    8948   Alive    FSS   FSS   899:09  pick/pick_ew_ko.d
         pick_ew    8949   Alive    FSS   FSS  1359:09  pick/pick_ew_ps.d
         pick_ew    8950   Alive    FSS   FSS   756:11  pick/pick_ew_tz.d
         pick_ew   24365   Alive    FSS   FSS     6:39  pick/pick_ew_analog.d
        pkfilter    8952   Alive    FSS   FSS   106:10  pick/pkfilter.d
       binder_ew    8953   Alive    FSS   FSS   198:26  eq/binder_ew.d
      eqassemble    8954   Alive    FSS   FSS    48:53  eq/eqassemble.d
          eqproc    8955   Alive    FSS   FSS    42:06  eq/eqproc.d
        mcast2ew    8956   Alive    FSS   FSS  3757:32  inp/mc2ew_ae.d
        mcast2ew    8957   Alive    FSS   FSS  1437:21  inp/mc2ew_fj.d
        mcast2ew    8958   Alive    FSS   FSS  2575:23  inp/mc2ew_ko.d
        mcast2ew    8959   Alive    FSS   FSS  4218:55  inp/mc2ew_ps.d
        mcast2ew    8960   Alive    FSS   FSS  2361:36  inp/mc2ew_tz.d
        mcast2ew    8961   Alive    FSS   FSS    34:46  inp/mc2ew_analog.d
         hyps2ps    8962   Alive    FSS   FSS     8:20  eq/hyps2ps.d
         trig2ps    8963   Alive    FSS   FSS     9:04  carl/trig2ps.d
     carlstatrig    8964   Alive    FSS   FSS    19:01 
     carlstatrig    8965   Alive    FSS   FSS   156:24  carl/carlstatrig_ae.d
     carlstatrig    8966   Alive    FSS   FSS    81:07  carl/carlstatrig_fj.d
     carlstatrig    8967   Alive    FSS   FSS   118:07  carl/carlstatrig_ko.d
     carlstatrig   24988   Alive    FSS   FSS    26:24  carl/carlstatrig_ps.d
     carlstatrig    8969   Alive    FSS   FSS   124:48  carl/carlstatrig_tz.d
     carlsubtrig    8970   Alive    FSS   FSS    51:39  carl/carlsubtrig.d
          ew2wda    8971   Alive    FSS   FSS   626:08  wda/ew2wda_ae.d
          ew2wda    8972   Alive    FSS   FSS   318:03  wda/ew2wda_fj.d
          ew2wda    8973   Alive    FSS   FSS   520:12  wda/ew2wda_ko.d
          ew2wda    8974   Alive    FSS   FSS   727:54  wda/ew2wda_ps.d
          ew2wda    8980   Alive    FSS   FSS   412:59  wda/ew2wda_tz.d
         statmgr    8945   Alive    FSS   FSS    18:06  statmgr.d
      copystatus    8981   Alive    FSS   FSS    12:16  WAVE_RING_AE EXPORT_RING
      copystatus    8982   Alive    FSS   FSS     9:01  WAVE_RING_FJ EXPORT_RING
      copystatus    8983   Alive    FSS   FSS    11:00  WAVE_RING_KO EXPORT_RING
      copystatus    8984   Alive    FSS   FSS    13:11  WAVE_RING_PS EXPORT_RING
      copystatus    8985   Alive    FSS   FSS    10:24  WAVE_RING_TZ EXPORT_RING
      copystatus    8986   Alive    FSS   FSS     6:39  WAVE_RING_ANALOG
      copystatus    8987   Alive    FSS   FSS     8:22  PICK_RING EXPORT_RING
      copystatus    8988   Alive    FSS   FSS     6:50  FILTERPICK_RING
      copystatus    8989   Alive    FSS   FSS     6:44  HYPO_RING EXPORT_RING
      copystatus    8990   Alive    FSS   FSS     7:14  TRIG_RING EXPORT_RING
      copystatus    8991   Alive    FSS   FSS     6:38  SUBTRIG_RING EXPORT_RING

And here's what the .d file looks like.

...
Process        "trig2ps carl/trig2ps.d"
Class/Priority TS 0


Process        "carlstatrig carl/carlstatrig_analog.d"
Class/Priority TS 0

Process        "carlstatrig carl/carlstatrig_ae.d"
Class/Priority TS 0

Process        "carlstatrig carl/carlstatrig_fj.d"
Class/Priority TS 0

Process        "carlstatrig carl/carlstatrig_ko.d"
Class/Priority TS 0

Process        "carlstatrig carl/carlstatrig_ps.d"
Class/Priority TS 0

Process        "carlstatrig carl/carlstatrig_tz.d"
Class/Priority TS 0

Process        "carlsubtrig carl/carlsubtrig.d"
Class/Priority TS 0
...

Created this Earthworm trac ticket for it: http://bigboy.isti.com/trac/earthworm/ticket/16

Change History

09/25/09 10:51:22 changed by stefan

  • priority changed from major to critical.

09/25/09 17:01:23 changed by stefan

Here's one for "scream" which is not an earthworm program and has no .d, yet is launched by startstop...

Traceback (most recent call last):
  File "C:\isti\src\ewfe\src\ewfe\client\gui\views\page.py", line 321, in <lambda>
    lambda event, m=module: self.__edit_callback(m),
  File "C:\isti\src\ewfe\src\ewfe\client\gui\controllers\server.py", line 242, in display_module_config
    self.__installation.connxn.get_module_config(module),
  File "C:\isti\src\ewfe\src\ewfe\client\core\installation.py", line 203, in get_module_config
    return self.__server.get_module_config(module)
  File "C:\Python26\lib\xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "C:\Python26\lib\xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "C:\Python26\lib\xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "C:\Python26\lib\xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "C:\Python26\lib\xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "<type 'exceptions.IOError'>:[Errno 2] No such file or directory: 'c:\\\\earthworm\\\\run_working\\\\params\\\\scream.d'">