Excpetion on saving #124

Closed
opened 2023-09-27 14:42:13 +00:00 by markusro · 5 comments
Owner

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

`

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 `
Author
Owner

Was saving the file as test.nmr

Was saving the file as test.nmr
Author
Owner

Can not export any plot as agr file

Can not export any plot as agr file
Author
Owner

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

`

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 `
dominik added the
Kind/Bug
label 2023-09-27 15:36:33 +00:00
dominik self-assigned this 2023-09-27 15:36:41 +00:00
Member

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)

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)
Author
Owner

OK, opened the Default.agr and saveing it again fixed this issue

OK, opened the Default.agr and saveing it again fixed this issue
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IPKM/nmreval#124
No description provided.