Ctrl+Space on startup results in "Bug Detected" pop-up

Bug #1239367 reported by Laurens Vanderhoven
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DreamPie
Undecided
Unassigned

Bug Description

Performing the Ctrl+Space shortkey (shown at the first-run pop-up) results in a "Bug Detected" pop-up. On start-up, the cursor is located on the output field rather than on the input box. Performing Ctrl+Space with the cursor in the input box seems to work as intended. When moving the cursor back to the output field and pressing Ctrl+Space, it does not result in the "Bug Detected" pop-up anymore.

* Reproduction steps (bug appears every time)
1- Start DreamPie
2- Do Ctrl+Space
3- "Bug Detected", "A programming error has been detected." pop-up.
4- Press 'Close'
5- Application is still usable, it does not crash

* Software versions
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
DreamPie 1.1.1
OS: Ubuntu 12.04 LTS (64-bit)

* Stack trace
Variables:
  File "/usr/share/dreampie/dreampielib/gui/__init__.py", line 938, on_show_completions(self=DreamPie(path..."window_main"), _widget=<gtk.Men...2945160)>)
    {'False': False, 'is_auto': [], 'complete': [], 'self.autocomplete.show_completions': <bound method Autocomplete.show_completions of <dreampielib.gui.autocomplete.Autocomplete object at 0x28c40d0>>}
  File "/usr/share/dreampie/dreampielib/gui/autocomplete.py", line 118, show_completions(self=<dreampi...x28c40d0>, is_auto=False, complete=False)
    {'self.window.show': <bound method AutocompleteWindow.show of <dreampielib.gui.autocomplete_window.AutocompleteWindow object at 0x28c4110>>, 'comp_prefix': u'', 'len': <built-in function len>, 'private': [u'__builtins__', u'__debug__', u'__doc__', u'__import__', u'__name__', u'__package__'], 'is_case_insen': False, 'public': [u'ArithmeticError', u'AssertionError', u'AttributeError', u'BaseException', u'BufferError', u'BytesWarning', u'DeprecationWarning', u'EOFError', u'Ellipsis', u'EnvironmentError', u'Exception', u'False', u'FloatingPointError', u'FutureWarning', u'GeneratorExit', u'IOError', u'ImportError', u'ImportWarning', u'IndentationError', u'IndexError', u'KeyError', u'KeyboardInterrupt', u'LookupError', u'MemoryError', u'NameError', u'None', u'NotImplemented', u'NotImplementedError', u'OSError', u'OverflowError', u'PendingDeprecationWarning', u'ReferenceError', u'RuntimeError', u'RuntimeWarning', u'StandardError', u'StopIteration', u'SyntaxError', u'SyntaxWarning', u'SystemError', u'SystemExit', u'TabError', u'True', u'TypeError', u'UnboundLocalError', u'UnicodeDecodeError', u'UnicodeEncodeError', u'UnicodeError', u'UnicodeTranslateError', u'UnicodeWarning', u'UserWarning', u'ValueError', u'Warning', u'ZeroDivisionError', u'abs', u'all', u'and', u'any', u'apply', u'as', u'assert', u'basestring', u'bin', u'bool', u'break', u'buffer', u'bytearray', u'bytes', u'callable', u'chr', u'class', u'classmethod', u'cmp', u'coerce', u'compile', u'complex', u'continue', u'copyright', u'credits', u'def', u'del', u'delattr', u'dict', u'dir', u'divmod', u'elif', u'else', u'enumerate', u'eval', u'except', u'exec', u'execfile', u'file', u'filter', u'finally', u'float', u'for', u'format', u'from', u'frozenset', u'getattr', u'global', u'globals', u'hasattr', u'hash', u'help', u'hex', u'id', u'if', u'import', u'in', u'input', u'int', u'intern', u'is', u'isinstance', u'issubclass', u'iter', u'lambda', u'len', u'license', u'list', u'locals', u'long', u'map', u'max', u'memoryview', u'min', u'next', u'not', u'object', u'oct', u'open', u'or', u'ord', u'pass', u'pow', u'print', u'print', u'property', u'quit', u'raise', u'range', u'raw_input', u'reduce', u'reload', u'repr', u'return', u'reversed', u'round', u'set', u'setattr', u'slice', u'sorted', u'staticmethod', u'str', u'sum', u'super', u'try', u'tuple', u'type', u'unichr', u'unicode', u'vars', u'while', u'with', u'xrange', u'yield', u'zip']}
  File "/usr/share/dreampie/dreampielib/gui/autocomplete_window.py", line 131, show(self=<dreampi...x28c4110>, public=[u'ArithmeticError', u'AssertionError', u'AttributeError', u'BaseException', u'BufferError', u'BytesWarning', ...], private=[u'__builtins__', u'__debug__', u'__doc__', u'__import__', u'__name__', u'__package__'], is_case_insen=False, start_len=0)
    {'self.place_window': <bound method AutocompleteWindow.place_window of <dreampielib.gui.autocomplete_window.AutocompleteWindow object at 0x28c4110>>}
  File "/usr/share/dreampie/dreampielib/gui/autocomplete_window.py", line 194, place_window(self=<dreampi...x28c4110>)
    {'get_origin': [], 'sv_x': [], 'sv_y': [], 'sv.get_window': <built-in method get_window of gtksourceview2.View object at 0x28b7d70>, 'gtk.TEXT_WINDOW_WIDGET': <enum GTK_TEXT_WINDOW_WIDGET of type GtkTextWindowType>}

Traceback (most recent call last):
  File "/usr/share/dreampie/dreampielib/gui/__init__.py", line 938, in on_show_completions
    self.autocomplete.show_completions(is_auto=False, complete=False)
  File "/usr/share/dreampie/dreampielib/gui/autocomplete.py", line 118, in show_completions
    self.window.show(public, private, is_case_insen, len(comp_prefix))
  File "/usr/share/dreampie/dreampielib/gui/autocomplete_window.py", line 131, in show
    self.place_window()
  File "/usr/share/dreampie/dreampielib/gui/autocomplete_window.py", line 194, in place_window
    sv_x, sv_y = sv.get_window(gtk.TEXT_WINDOW_WIDGET).get_origin()
AttributeError: 'NoneType' object has no attribute 'get_origin'

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers