[BUG] Backup Einlesen nach Crash nicht möglich #158

Closed
opened 2023-11-29 07:57:31 +00:00 by saeckech · 0 comments
Member

Current behavior

Es gab wieder einen Crash, diesmal aber die Sorte wo sich das Programm plötzlich schließt ohne vorher 20min den PC lahmzulegen. Als ich das Programm neu gestartet habe wollte ich das Backup einlesen lassen, dann ist aber nichts passiert. Im Error Log kam eine Exception. Beim zweiten Versuch das gleiche. Das Programm startet normal wenn ich das Backup nicht versuche einzulesen.

Expected behavior

naively expected no crash, expected backup not throwing an exception.

Steps to reproduce

step 1: torture PC
step 2: cry when it breaks

Log messages

29/11/2023 08:52:02 - ERROR - root : Uncaught exception:
Traceback (most recent call last):
  File "/tmp/.mount_NMRevajeiGpu/usr/bin/evaluate.py", line 24, in <module>
    mplQt = NMRMainWindow()
  File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/main/mainwindow.py", line 82, in __init__
    self.check_for_backup()
  File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/main/mainwindow.py", line 1132, in check_for_backup
    self.management.load_files([str(backup_by_date[-1][0])])
  File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/main/management.py", line 174, in load_files
    ret_dic = self._filereader.readfiles(fname)
  File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/io/filereaders.py", line 60, in readfiles
    r(f).exec()
  File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/io/nmrreader.py", line 33, in exec
    data = self._reader.make_data()
  File "/tmp/.mount_NMRevajeiGpu/usr/src/nmreval/io/nmrreader.py", line 46, in make_data
    return self._make_new(fname)
  File "/tmp/.mount_NMRevajeiGpu/usr/src/nmreval/io/nmrreader.py", line 67, in _make_new
    data = dtype.set_state(s.pop('data'))
  File "/tmp/.mount_NMRevajeiGpu/usr/src/nmreval/fit/result.py", line 415, in set_state
    data = FitResult(**state)
TypeError: __init__() missing 1 required positional argument: 'we'
29/11/2023 08:52:58 - INFO - root : Use C functions

Anything else?

No response

### Current behavior Es gab wieder einen Crash, diesmal aber die Sorte wo sich das Programm plötzlich schließt ohne vorher 20min den PC lahmzulegen. Als ich das Programm neu gestartet habe wollte ich das Backup einlesen lassen, dann ist aber nichts passiert. Im Error Log kam eine Exception. Beim zweiten Versuch das gleiche. Das Programm startet normal wenn ich das Backup nicht versuche einzulesen. ### Expected behavior naively expected no crash, expected backup not throwing an exception. ### Steps to reproduce step 1: torture PC step 2: cry when it breaks ### Log messages ```shell 29/11/2023 08:52:02 - ERROR - root : Uncaught exception: Traceback (most recent call last): File "/tmp/.mount_NMRevajeiGpu/usr/bin/evaluate.py", line 24, in <module> mplQt = NMRMainWindow() File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/main/mainwindow.py", line 82, in __init__ self.check_for_backup() File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/main/mainwindow.py", line 1132, in check_for_backup self.management.load_files([str(backup_by_date[-1][0])]) File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/main/management.py", line 174, in load_files ret_dic = self._filereader.readfiles(fname) File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/io/filereaders.py", line 60, in readfiles r(f).exec() File "/tmp/.mount_NMRevajeiGpu/usr/src/gui_qt/io/nmrreader.py", line 33, in exec data = self._reader.make_data() File "/tmp/.mount_NMRevajeiGpu/usr/src/nmreval/io/nmrreader.py", line 46, in make_data return self._make_new(fname) File "/tmp/.mount_NMRevajeiGpu/usr/src/nmreval/io/nmrreader.py", line 67, in _make_new data = dtype.set_state(s.pop('data')) File "/tmp/.mount_NMRevajeiGpu/usr/src/nmreval/fit/result.py", line 415, in set_state data = FitResult(**state) TypeError: __init__() missing 1 required positional argument: 'we' 29/11/2023 08:52:58 - INFO - root : Use C functions ``` ### Anything else? _No response_
saeckech added the
Kind/Bug
label 2023-11-29 07:57:31 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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#158
No description provided.