Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gscan exception hook dialog closure incapacity #2579

Merged

Conversation

sadielbartholomew
Copy link
Collaborator

@sadielbartholomew sadielbartholomew commented Feb 14, 2018

Whilst reviewing #2574 I noticed that when I obtained a exception traceback in gscan in a pop-up dialog window, the window would immediately re-open after being prompted to close via clicking of the 'OK' button or the 'Close Window' cross corner iron (ad infinitum with further attempts to close it).

To recreate: open gscan so it provides any 'entry' traceback e.g. by providing invalid arguments to it such as cylc gscan -o '*' -n '*' or by editing the code in lib/cylc/gui/gscan.py to create an error there.

I have resolved this by changing an argument so that (as I understand the logic) the set_exception_hook_dialog function will only launch an exception dialog if it has not already been launched. The variable old_hook was in fact already initialised within the function but not implemented in this way; it seems (?) the original writer intended to include it as an argument to _launch_exception_hook_dialog function but mistakenly put sys.excepthook instead.

@sadielbartholomew sadielbartholomew added the bug Something is wrong :( label Feb 14, 2018
@sadielbartholomew sadielbartholomew added this to the next release milestone Feb 14, 2018
@sadielbartholomew sadielbartholomew self-assigned this Feb 14, 2018
@hjoliver hjoliver merged commit 89ef1db into cylc:master Feb 15, 2018
@sadielbartholomew sadielbartholomew deleted the gscan-exception-dialog-inf-loop branch February 19, 2018 10:34
matthewrmshin added a commit to matthewrmshin/cylc-flow that referenced this pull request Mar 26, 2018
* cylc#2606 Fix poll when job.status has no batch sys info
* cylc#2604 Lowercase for shell bool vars
* cylc#2603 Fix gui insert nested family
* cylc#2602 gcylc: prevent negative job progress
* cylc#2596 Fix ref by value of parameters with plus/minus
* cylc#2592 Permit syntax errors with trigger edits
* cylc#2588 Fix trigger --edit with host select
* cylc#2586 Fix gcylc zero division error from task mean elapsed time
* cylc#2585 Fix recovery of a failed host select command
* cylc#2579 Fix gscan exception hook dialog closure incapacity
* cylc#2574 Fix gscan host port range owner behaviour
* cylc#2571 gcylc: fix tailer of remote job log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants