Source code repository for the backend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
GNU General Public License v3.0
22
stars
10
forks
source link
[backend crash] loading non-existent HDU via URL causing the backend crashing #1365
Closed
kswang1029 closed 2 months ago
Describe the bug Assuming we have a FITS image with image HDUs at indices 1, 6, 7, if we access
http://localhost:3002/?file=Users/kswang/set_QA_e2e_v2/spire500_ext.fits[6]
the 6th HDU image loads properly. However, if we access
http://localhost:3002/?file=Users/kswang/set_QA_e2e_v2/spire500_ext.fits[2]
(ie HDU 2 which is not an image), the backend will crash with error messages:
[CARTA] [critical] ArrayBase::diagonal() - diagonal out of range zsh: segmentation fault
To Reproduce Steps to reproduce the behavior:
Expected behavior The backend should not crash and handle this exception gracefully.
Screenshots or videos If applicable, add screenshots/videos to help explain your problem.
Platform info (please complete the following information):
Additional context Add any other context about the problem here.