Skip to content

Program hang on updating progress bar #23

@mishaturnbull

Description

@mishaturnbull

Program hangs when instructed to update the progress bar in any manner. Tried variations:

# in gui.py
self.variables['progressbar'].set(self.variables['progressbar'].get() + 1)  # desirable
self.bar['value'] += 1
self.bar.step()
# in coordinator.py
self.gui.variables['progressbar'].set(self.gui.variables['progressbar'].get() + 1)
self.gui.bar['value'] += 1
self.bar.step()

Also after each above attempt I added bar.update_idletasks() and bar.update() with no progress.

Interestingly, this only seems to occur on the first update. Running with Spyder4, I can achieve a complete batch send with the following procedure:

  1. Start the program, enter configuration values, click Send
  2. Wait for the first email to send
  3. After the first email sends, program hangs.
  4. Send a KeyboardInterrupt via either CTRL+C or with iPython's stop button
  5. Program throws an exception (below) and continues. The issue does not repeat for further progress bar updates.

KeyboardInterrupt exception:

Exception in Tkinter callback
Traceback (most recent call last):
  File "c:\program files (x86)\python36\lib\tkinter\__init__.py", line 1699, in __call__
    return self.func(*args)
  File "D:/Random Programming Shit/Python/EmailBot/src/coordinator.py", line 59, in wrapped
    return cbfunc(self)
  File "D:\Random Programming Shit\Python\EmailBot\src\gui_callbacks.py", line 69, in handle_send
    coordinator.send()
  File "D:/Random Programming Shit/Python/EmailBot/src/coordinator.py", line 83, in send
    self.sender.run()
  File "D:\Random Programming Shit\Python\EmailBot\src\sender.py", line 128, in run
    if not self.workers:
KeyboardInterrupt

Metadata

Metadata

Assignees

No one assigned

    Labels

    uiA problem in the user interface design/operation

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions