qview segfaults when trying to edit cube without write privileges
Minimal - Cube re-opens under "r" privileges if it fails to open open "rw"
Steps to reproduce:
Open a cube in qview you don't have write privilege on. (ex: /work/users/kberry/demprep/vesta64_dtm.cub )
Try to edit it, say, by adding a horizontal line of nulls.
An error pop up which says "Cannot open cube read/write."
After clicking on this box, qview segfaults.
#8 Updated by Kristin Berry about 1 year ago
- Status changed from Resolved to Feedback
qview now no longer segfaults the first time a no-write-permissions cube edit is attempted, but if you click 'Ok' on the warning that pops up, and continue to try to edit the cube over and over (try 10 times: adding null lines, adding boxes of LRS, etc) I still get a bunch of "Programmer errors" and then a segfault. Could you see if you can reproduce this behavior? Let me know if you have any questions.
#10 Updated by Tammy Becker about 1 year ago
Tested this with a cube that I didn't have write permission with. I attempted to apply the edit tool and it popped up the error message; I tried it multiple times and the popup continued just fine.
I also tested with a cube I do have permission to write and the edit tool worked as expected.