Excpetion on saving #124
Closed
opened 2023-09-27 14:42:13 +00:00 by markusro
·
5 comments
No Branch/Tag Specified
Labels
Clear labels
Kind/Breaking
Kind/Bug
Kind/Crash
Kind/Documentation
Kind/Enhancement
Kind/Feature
Reviewed/Won't Fix
Type/BDS
Type/DSC
Type/Fit
Type/General
Type/NMR
Breaking change that won't be backward compatible
Something is not working
This issue describes unexpected shutdowns or non-responsive behaviors
Improves documentation
Improve existing functionality
New feature
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Priority
Very low
The priority is very low
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid isssue
This issue won't be fixed
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Status
On Hold
This issue or pull request is on hold
Status
Stale
Issues without activity for more than 6 months
Issues connected to BDS
Issues connected to DSC
Issue is connected to fitting data
issue connected to general functionality
Issues connected to NMR
No labels
Kind/Bug
Milestone
No items
No Milestone
Assignees
aahmad (Arshid Ahmad)
anisar (Aqsa Nisar)
ckolb (Christian Kolb)
cwolter (Celine Wolter)
dominik (Dominik Demuth)
dwuerz (David Würz)
elisa (Elisa Steinruecken)
fwolter (Finn Wolter)
huczhang (Huanchen Zhang)
jepsinrajkp (Jepsinraj Kakkuzhiyulla Parambath)
kschroeder (Katharina Schroeder)
malbrecht (Maximilian Albrecht)
mandal (Suvendu Mandal)
markusro (Markus Rosenstihl)
mbergmann (Mark Bergmann)
mhaneke (Markus Haneke)
robin (Robin Horstmann)
saeckech (Christoph Säckel)
skloth (Sebastian Kloth)
skrueger (Sandra Krüger)
ypiliauskaya (Yauheniya Piliauskaya)
Clear assignees
No Assignees
dominik
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: IPKM/nmreval#124
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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