Excpetion on saving #124
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Crash
Kind/Documentation
Kind/Enhancement
Kind/Feature
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Priority
Very low
Reviewed
Duplicate
Reviewed
Invalid
Reviewed/Won't Fix
Status
Need More Info
Status
On Hold
Status
Stale
Type/BDS
Type/DSC
Type/Fit
Type/General
Type/NMR
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: IPKM/nmreval#124
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Attached file will trigger an exception, but it will be saved.
`
markusro@track:~/Programs$ ~/Downloads/NMReval-latest-x86_64.AppImage
27/09/2023 16:40:35 - INFO - root : Use C functions
27/09/2023 16:40:37 - INFO - root : zsync information 2023-09-19 17:26:00+02:00, 6f58550c06759aeabd5ff7f67c9ee25aac5e9a86, NMReval-2023.175-0046d04-x86_64.AppImage
27/09/2023 16:40:37 - INFO - root : file information 2023-09-22 10:06:55, 6f58550c06759aeabd5ff7f67c9ee25aac5e9a86
27/09/2023 16:40:49 - ERROR - root : Uncaught exception:
Traceback (most recent call last):
File "/tmp/.mount_NMRevaEejKaf/usr/src/gui_qt/main/mainwindow.py", line 304, in save
self.current_graph_widget.export(savefile.with_name(param_outfile + '.agr'))
File "/tmp/.mount_NMRevaEejKaf/usr/src/gui_qt/graphs/graphwindow.py", line 609, in export
GraceExporter(opts).export(outfile, mode=mode)
File "/tmp/.mount_NMRevaEejKaf/usr/src/gui_qt/io/exporters.py", line 25, in export
new_g = self.__agr.new_graph()
File "/tmp/.mount_NMRevaEejKaf/usr/src/nmreval/io/graceeditor.py", line 96, in new_graph
return self.graphs[-1]
IndexError: list index out of range
Segmentation fault
`
Was saving the file as test.nmr
Can not export any plot as agr file
I can not even export a file with automatically generated data
`
markusro@track:~/Programs$ ~/Downloads/NMReval-latest-x86_64.AppImage
27/09/2023 17:11:39 - INFO - root : Use C functions
27/09/2023 17:11:41 - INFO - root : zsync information 2023-09-19 17:26:00+02:00, 6f58550c06759aeabd5ff7f67c9ee25aac5e9a86, NMReval-2023.175-0046d04-x86_64.AppImage
27/09/2023 17:11:41 - INFO - root : file information 2023-09-22 10:06:55, 6f58550c06759aeabd5ff7f67c9ee25aac5e9a86
27/09/2023 17:12:10 - ERROR - root : Uncaught exception:
Traceback (most recent call last):
File "/tmp/.mount_NMRevaCRuaCO/usr/src/gui_qt/graphs/graphwindow.py", line 583, in export_dialog
self.export(outfile)
File "/tmp/.mount_NMRevaCRuaCO/usr/src/gui_qt/graphs/graphwindow.py", line 609, in export
GraceExporter(opts).export(outfile, mode=mode)
File "/tmp/.mount_NMRevaCRuaCO/usr/src/gui_qt/io/exporters.py", line 25, in export
new_g = self.__agr.new_graph()
File "/tmp/.mount_NMRevaCRuaCO/usr/src/nmreval/io/graceeditor.py", line 96, in new_graph
return self.graphs[-1]
IndexError: list index out of range
`
The Default.agr seems to be missing information about how a graph should look like, replacing the existing one with a Grace file that has a graph in it should fix it.
The location is either in ~/.config/nmreval or ~/.auswerten (this is the order the program looks for it)
OK, opened the Default.agr and saveing it again fixed this issue