Word-completion crashes with BadAlloc

Bug #940701 reported by Adam Olsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scribes
New
Undecided
Unassigned

Bug Description

1. Download a copy of http://svn.openttd.org/trunk/src/lang/english.txt
2. open in scribes and click on the first blank line
3. type in STR_
4. Crash is almost immediate.

Console output:

$ scribes english.txt
$ /usr/lib/pymodules/python2.7/SCRIBES/Main.py:10: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  main()
/usr/lib/scribes/GenericPlugins/WordCompletion/GUI/Window.py:34: GtkWarning: Native Windows wider or taller than 65535 pixels are not supported
  self.__window.show_all()
The program 'Scribes' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 5767 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

$ scribes -i
$ ========================================================
System Info: ('Linux', 'Tetronimo', '3.0.0-16-generic', '#28-Ubuntu SMP Fri Jan 27 17:44:39 UTC 2012', 'x86_64')
Python Version: 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
System Byteorder: little
Python Modules: ('__builtin__', '__main__', '_ast', '_bisect', '_codecs', '_collections', '_functools', '_hashlib', '_locale', '_random', '_socket', '_sre', '_ssl', '_struct', '_symtable', '_warnings', '_weakref', 'array', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'errno', 'exceptions', 'fcntl', 'gc', 'grp', 'imp', 'itertools', 'marshal', 'math', 'operator', 'posix', 'pwd', 'select', 'signal', 'spwd', 'strop', 'sys', 'syslog', 'thread', 'time', 'unicodedata', 'xxsubtype', 'zipimport', 'zlib')
========================================================
Scribes Version: 0.4-dev-build1032
Dbus Version: (0, 84, 0)
GTK+ Version: (2, 24, 6)
PyGTK Version: (2, 24, 0)
Psyco Not Installed
========================================================
Running Instance: 0
========================================================
Python Path: /usr/lib/python2.7/dist-packages
Plugin Path: /usr/lib/scribes/GenericPlugins
Data Path: /usr/share/scribes
Executable Path: /usr/bin
========================================================

Thanks. Loving the editor.

Revision history for this message
Adam Olsen (rhamph) wrote :

Oh, and ctrl-shift-alt-c does avoid the crash.

Revision history for this message
Mystilleef (mystilleef) wrote :

Interesting, I can't reproduce this problem at all. Looks like a bug in X. I'll test again on a Linux Mint box I have and report back.

Revision history for this message
Matěj Cepl (mcepl) wrote :

BTW, just to add that that g_object_set_qdata warning is https://bugzilla.gnome.org/show_bug.cgi?id=661155 which has been fixed in git.gnome.org repository (http://git.gnome.org/browse/pygobject/commit/?h=pygobject-2-28&id=42d871eb0b08ee6d55e95cc7e4b90844919555b9), but new release of pygobject has not been made yet.

Revision history for this message
Matěj Cepl (mcepl) wrote :

... and I cannot reproduce this with

========================================================
System Info: ('Linux', 'wycliff.ceplovi.cz', '3.7.0-0.31.el7.x86_64.debug', '#1 SMP Mon Jan 14 16:28:26 EST 2013', 'x86_64')
Python Version: 2.7.3 (default, Aug 10 2012, 02:54:27)
[GCC 4.7.1 20120720 (Red Hat 4.7.1-5)]
System Byteorder: little
Python Modules: ('__builtin__', '__main__', '_ast', '_codecs', '_sre', '_symtable', '_warnings', '_weakref', 'errno', 'exceptions', 'gc', 'imp', 'marshal', 'posix', 'pwd', 'signal', 'sys', 'thread', 'zipimport')
========================================================
Scribes Version: 0.4-dev-build1052
Dbus Version: (1, 1, 1)
GTK+ Version: (2, 24, 13)
PyGTK Version: (2, 24, 0)
Psyco Not Installed
========================================================
Running Instance: 0
========================================================
Python Path: /usr/lib/python2.7/site-packages
Plugin Path: /usr/lib64/scribes/GenericPlugins
Data Path: /usr/share/scribes
Executable Path: /usr/bin
========================================================

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.