GeetanshGautam0 / QAS4

Quizzing app v4 is an open source, Python-based application centered around the task of creating and hosting quizzes/trivia, with a variety of features.
https://geetansh.ca
GNU General Public License v3.0
1 stars 0 forks source link

CLI freezes when an invalid command is entered. #1

Open GeetanshGautam0 opened 10 months ago

GeetanshGautam0 commented 10 months ago

Any CLI command that does not follow the following format causes the default click help doc to be printed and the CLI to freeze:

python qa_main.py start-app [AppID]

Invalid app IDs are taken care of manually and therefore do not result in the bug occurring; the global error manager is invoked and the app is terminated correctly.

If the command start-app command and/or the AppID are not present, then the command line freezes and a keyboard interrupt signal must be sent repeatedly or the shell must be terminated entirely.

GeetanshGautam0 commented 3 months ago

Currently, the app should terminate when the IOHistory buffer tries to empty itself as the thread will not be started. This "crash" can take up to a minute to occur.

image