beeware / bugjar

A interactive graphical debugger for Python code.
BSD 3-Clause "New" or "Revised" License
249 stars 31 forks source link

bugjar fails with TclError: out of stack space error #12

Open unode opened 10 years ago

unode commented 10 years ago

I'm running bugjar with python 2.7.5 on Gentoo Linux. Bugjar was installed on a virtualenv using pip install bugjar.

The script I'm running contains only a print statement, nothing else. The script was launched using: bugjar script.py

Listening on 0.0.0.0:3742 for a bugjar client
Got connection from ('127.0.0.1', 46871)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 808, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 761, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/unode/.virtualenvs/bugjar/lib/python2.7/site-packages/bugjar/connection.py", line 56, in command_buffer
    getattr(debugger, 'on_%s' % event)(**data)
  File "/home/unode/.virtualenvs/bugjar/lib/python2.7/site-packages/bugjar/connection.py", line 227, in on_stack
    self.view.on_stack(stack=stack)
  File "/home/unode/.virtualenvs/bugjar/lib/python2.7/site-packages/bugjar/view.py", line 469, in on_stack
    self.file_notebook.select(self.stack_frame)
  File "/usr/lib64/python2.7/lib-tk/ttk.py", line 885, in select
    return self.tk.call(self._w, "select", tab_id)
TclError: out of stack space (infinite loop?)

After this I also tried to install latest version directly from github but the error persisted.

The GUI is still displayed but it doesn't display any useful information. The code panel is black. The variables panel displays "builtins, globals, locals" but nothing under Values.

efc-awebb commented 9 years ago

Hi Unode - I'm getting the exact same error here with 2.6. Did you by any chance get it working?

unode commented 9 years ago

Hi Alex. I didn't get to debug it myself. Was expecting (more) feedback from primary developers.

freakboy3742 commented 9 years ago

Apologies - I've been distracted by other projects since initially launching bugjar. As a result, bugjar hasn't been getting a lot of my attention. At this point, it's safe to say that bugjar is a proof of concept with lots of sharp edges, rather than a production ready tool.

efc-awebb commented 9 years ago

Thanks for the reply. This has a great deal of potential, so we're going to try and find some way to get it working. I'll post back if we're able to do so.