Skip to content

npbackup crash on ^C in the terminal #125

Closed
@GuitarBilly

Description

@GuitarBilly

npbackup-gui v3.0.0-rc14
Linux 6.8.0-52-generic #53 x86_64

steps to reproduce:
In an attempt to copy the console output for the /bin/sh: 1: %NPBACKUP_BACKEND_BINARY%: not found issue i pressed ^C instead of CTRL+SHIFT+C in the terminal.

The termination of npbackup was not graceful and produced a traceback:

^C**** EXITING ****
2025-02-16 14:30:49,186 :: CRITICAL :: GUI Execution error name 'exit' is not defined
2025-02-16 14:30:49,186 :: INFO :: Trace:
Traceback (most recent call last):
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/FreeSimpleGUI/window.py", line 1087, in _read
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/tkinter/__init__.py", line 1505, in mainloop
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/npbackup/gui/__main__.py", line 1221, in main_gui
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/npbackup/gui/__main__.py", line 1092, in _main_gui
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/npbackup/gui/__main__.py", line 503, in backup
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/npbackup/gui/helpers.py", line 348, in gui_thread_runner
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/FreeSimpleGUI/window.py", line 959, in read
  File "/home/linux/npbackup.v3.0.0-rc14/npbackup-gui/FreeSimpleGUI/window.py", line 1090, in _read
NameError: name 'exit' is not defined
2025-02-16 14:30:49,196 :: INFO :: ExecTime = 0:07:08.120116, finished, state is: critical.

expected behaviour:
would be nice if npbackup-gui can terminate gracefully. the traceback seems to suggest that 'exit' can be used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwaiting

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions