You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
with the scripting interface, if we do session = Session.interact(url_with_token, session_id, debug_no_auth=True)
with a correct session_id, things work normally.
But if `session_id` is not correct, we see error from the scripting interface like
Traceback (most recent call last):
File "/Users/kswang/carta_pythonInterface_testing/test.py", line 23, in <module>
img0 = session.open_image(image_file_0)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/validation.py", line 630, in newfunc
return func(self, *args, **kwargs)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/session.py", line 371, in open_image
return Image.new(self, path, hdu, False)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/image.py", line 68, in new
image_id = session.call_action("appendFile" if append else "openFile", directory, file_name, hdu, return_path="frameInfo.fileId")
File "/opt/anaconda3/lib/python3.9/site-packages/carta/session.py", line 250, in call_action
return self._protocol.request_scripting_action(self.session_id, path, *args, **kwargs)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/protocol.py", line 362, in request_scripting_action
raise CartaRequestFailed(f"{carta_action_description} failed with status {response.status_code}. {backend_message}")
carta.util.CartaRequestFailed: CARTA scripting action .openFile called with parameters ('/Users/kswang/carta_image_pool/set_HD163296', 'HD163296_CO_2_1.fits', '') failed with status 404. No session with ID 1070215517 could be found.
and the backend is still alive. However, if we correct the session_id and re-run the script, the backend will crash with a Segmentation fault: 11.
VM Region Info: 0x118 is not in any region. Bytes before following region: 140737487199976
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
VM_ALLOCATE 7fffffee6000-7fffffee7000 [ 4K] r-x/r-x SM=ALI
@kswang1029 could you please provide the full test script? I haven't encountered this before (despite frequently correcting bad session IDs); I wonder if it's related to using debug_no_auth.
@confluence please try the following to see if it works (literally XD)
run a carta_backend (this is a dev build) like ./carta_backend --frontend_folder /Users/kswang/carta_build/carta-frontend/build --port 3002 --omp_threads 16 --enable_scripting --no_browser --verbosity 5 --debug_no_auth
Traceback (most recent call last):
File "/Users/kswang/carta_pythonInterface_testing/test.py", line 25, in <module>
img0 = session.open_image(image_file_0)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/validation.py", line 630, in newfunc
return func(self, *args, **kwargs)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/session.py", line 371, in open_image
return Image.new(self, path, hdu, False)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/image.py", line 68, in new
image_id = session.call_action("appendFile" if append else "openFile", directory, file_name, hdu, return_path="frameInfo.fileId")
File "/opt/anaconda3/lib/python3.9/site-packages/carta/session.py", line 250, in call_action
return self._protocol.request_scripting_action(self.session_id, path, *args, **kwargs)
File "/opt/anaconda3/lib/python3.9/site-packages/carta/protocol.py", line 362, in request_scripting_action
raise CartaRequestFailed(f"{carta_action_description} failed with status {response.status_code}. {backend_message}")
carta.util.CartaRequestFailed: CARTA scripting action .openFile called with parameters ('/Users/kswang/carta_image_pool/set_HD163296', 'HD163296_CO_2_1.fits', '') failed with status 404. No session with ID 4201997856 could be found.
now set the right session_id and rerun the script, we will see the carta_backend crashes.
Describe the bug
with the scripting interface, if we do
session = Session.interact(url_with_token, session_id, debug_no_auth=True)
with a correct
session_id
, things work normally.and the backend is still alive. However, if we correct the
session_id
and re-run the script, the backend will crash with aSegmentation fault: 11
.the macOS crash report is
To Reproduce
Steps to reproduce the behavior:
Expected behavior
carta_backend survives in this case
Platform info (please complete the following information):
The text was updated successfully, but these errors were encountered: