-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seg fault when using spectral widget on (older) gzipped data with VELO-LSR velocity units #1014
Comments
Has this been fixed by #1119? Can we close it? |
Yes, I get the same error using v3-b3 and following steps 1-6 from my initial report. |
I tried another fits cube, this one with FELO-LSR velocity units (an old AIPS cube). I made a copy of it which I gizipped. I then loaded the non-gzipped fits cube, then appended the fits.gz one. CARTA did not disconnect, and things seemed to be going well (the two cubes went through animation together, the zspec looked the same). I opened a cursor info widget and confirmed that the values are the exact same as I move the cursor around. But then I opened two statistics widgets, and set the image for one to be the non-gzipped image, and the other to be the gzipped one. The first had reasonable values, but the second had all zeros except the NumPixels. There are a lot of "[error] FITS read data failed" messages in the console. Then I drew a region on the non-gzipped image and that seemed ok, but as soon as I clicked on the gzipped image panel (with the zprofile displayed), it disconnected. This is repeatable. |
I tried the latest dev (including #1119 merged about a month ago) and followed your description to reproduce the issues. It works fine now. |
@kswang1029 made an electron version of CARTA with #1119 fixed, and I confirm that it fixes both of the above failure cases - I get the same values/statistics/spectra from both the normal fits and gzipped fits cubes. This ticket can be closed, and thanks! |
Credit to @markccchiang and @ajm-asiaa 🙂 |
Describe the bug
CARTA v3-2b has a deg fault when I try to open a gzipped file of an older data cube (with CTYPE units VELO-LSR)
To Reproduce
Steps to reproduce the behavior:
/usr/local/bin/carta: line 14: 41986 Segmentation fault: 11 carta_backend "$@"
carta_backend(41944,0x7000099ae000) malloc: *** error for object 0x7fe01804e590: pointer being freed was not allocated
carta_backend(41944,0x7000099ae000) malloc: *** set a breakpoint in malloc_error_break to debug
/usr/local/bin/carta: line 14: 41944 Abort trap: 6 carta_backend "$@"
Expected behavior
It should not disconnect, and display the spectra in the zprofile widget (as it does if the non-gzipped file is opened the same way)
Screenshots or videos
If applicable, add screenshots/videos to help explain your problem.
Platform info (please complete the following information):
Additional context
Kuo-Song Wang said:
"This might have the same root cause as #999 but it is good to submit a new one in the backend repo."
The text was updated successfully, but these errors were encountered: