CARTAvis / carta

To CARTA users, this repo holds the CARTA release packages. Please use this repo to log bugs and feature requests. These will be triaged by the development team and prioritised as necessary in the development cycles.
19 stars 0 forks source link

Backend crash if file attached to is removed #188

Open kgolap opened 1 year ago

kgolap commented 1 year ago

Describe the bug If the image being viewed gets removed from disk the back end crash

This is what the backend messages before crashing

terminate called after throwing an instance of 'casacore::AipsError' what(): File::getstat error on /lustre/kgolap/BUGS/CAS-13814/hpg_v100_basic_cube.pb: No such file or directory /tmp/.mount_cartaknIhjk/AppRun: line 26: 104879 Aborted (core dumped) $DIR/bin/carta_backend "$@"

To Reproduce Steps to reproduce the behavior:

  1. View an image in the frontend
  2. delete the image on disk while the frontend is displaying it

Expected behavior After receiving the signal that the image is no longer there it should just remove the image from the display (i.e forcefully close it) rather than the backend quitting

Platform info (please complete the following information):

kswang1029 commented 1 year ago

@veggiesaurus @confluence @YuHsuan-Hwang I guess in this case, we need a mechanism to let backend trigger. CLOSE_FILE. Currently, the close file action is only triggered by the frontend (ie user).