[pygtk] segfault

2012-04-12 Thread Yann Leboulanger
Hi, We are experiencing a strange bug in our application, which result sometimes in a segfault, and sometimes in a freeze of the application. it's related to accel groups. In our application (quite big, and I haven't tried to make a small test case, but if someone is interested I can point

[pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread Ralph Sleigh
Hey The following code is getting me a segfault (found by mistake on my part, meant to compare with another attribute): #!/usr/bin/env python # -*- coding: utf-8 -*- import pygtk pygtk.require('2.0') import gtk class myImage(gtk.Image): def __init__(self): return image = myImage()

Re: [pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread René 'Necoro' Neumann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well -- you are not initializing gtk.Image. So it's your very own mistake. I don't see a pygtk issue here. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Re: [pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread Tomeu Vizoso
On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu wrote: Well -- you are not initializing gtk.Image. So it's your very own mistake. I don't see a pygtk issue here. This is Python, any crash is a bug. Regards, Tomeu ___ pygtk

Re: [pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread Pietro Battiston
Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto: On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu wrote: Well -- you are not initializing gtk.Image. So it's your very own mistake. I don't see a pygtk issue here. This is Python, any crash is a bug.

Re: [pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread Paul Pogonyshev
Pietro Battiston wrote: Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto: On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu wrote: Well -- you are not initializing gtk.Image. So it's your very own mistake. I don't see a pygtk issue here.

Re: [pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread Pietro Battiston
Il giorno sab, 17/10/2009 alle 20.49 +0300, Paul Pogonyshev ha scritto: Pietro Battiston wrote: Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto: On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu wrote: Well -- you are not initializing

Re: [pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread Paul Pogonyshev
Pietro Battiston wrote: What I mean is: where is it written that every crash is a bug, if Pygtk developers themselves are not so clear on that (and I'm possibly too ignorant)? I am a PyGTK developer (not active currently), Matthias Classen is not. He is a developer of GTK+ itself. I think it

Re: [pygtk] pyGtk segfault comparing gtk.Image with 0

2009-10-17 Thread John Finlay
Pietro Battiston wrote: Il giorno sab, 17/10/2009 alle 20.49 +0300, Paul Pogonyshev ha scritto: Pietro Battiston wrote: Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto: On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu wrote:

Re: [pygtk] Segfault with set_set_scroll_adjustments_signals and gnome.ui

2008-09-10 Thread BJörn Lindqvist
Hi, 2008/8/29 Herwig Hochleitner [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! My Custom DrawingArea keeps segfaulting me on being destroyed. I traced it down to the following minimal example: [PYTHON] import gtk import gobject import gnome.ui class

[pygtk] Segfault with set_set_scroll_adjustments_signals and gnome.ui

2008-08-29 Thread Herwig Hochleitner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! My Custom DrawingArea keeps segfaulting me on being destroyed. I traced it down to the following minimal example: [PYTHON] import gtk import gobject import gnome.ui class CustomDrawingArea(gtk.DrawingArea): __gsignals__ =

Re: [pygtk] Segfault importing gtk within distutils / unittest

2008-06-17 Thread Johannes Wienke
Hi again, maybe someone can help me if I narrow the problem? I've found out that this segfault only occurs if one of my own extension modules that also link against gtk is loaded before the gtk import statement. Moreover it is unrelated to pyunit or distutils. What could be the problem?

[pygtk] Segfault importing gtk within distutils / unittest

2008-06-09 Thread Johannes Wienke
Hi, I've programmed a custom distutils command to run my unit tests. The important part looks like this: def __runTests(self): ''' Runs all unit tests found in the folder 'test'. ''' print --- start run tests # append the build path to the pythonpath

[pygtk] Segfault using pangocairo

2007-07-30 Thread John C Barstow
Running Ubunu Gutsy; pycairo 1.4.0, pygtk 2.10.6 I'm using show_layout_line to display paragraphs, and it works just fine if I do just one paragraph. However, if I do two paragraphs, I get a segfault. I've tried different backends and they all show the same behaviour, so I suspect it's in the

Re: [pygtk] segfault when using gtk.glade.set_custom_handler() on windows

2006-05-18 Thread Johan Dahlin
I guess the segfaults when calling gtk.glade.set_custom_handler() are due to some internal mismatch (perhaps because python and gtk where compiled with different compilers?). But the above should work (as that is the recommended way as far as I could see). And I bet that _some_ people have

[pygtk] segfault when using gtk.glade.set_custom_handler() on windows

2006-05-17 Thread Abel Daniel
Hi! I'm trying to create a windows installer for a small app that uses python + pygtk + gtk with the 'py2exe + innosetup' method. For that I first have to get the app working with hand-installed python + pygtk + gtk, of course (so that I can run py2exe and copy the necessary dll-s). I installed

[pygtk] segfault on extension code on solaris

2005-11-09 Thread John Hunter
I have some extension code that uses a gtk.gdk.Pixmap object (GdkPixmap) passed from the python layer I'm using pycxx and args[0].ptr() is the PyObject pointer to the pixmap object. PyGObject *py_drawable = (PyGObject *)(args[0].ptr()); GdkDrawable *drawable =

[pygtk] segfault with pygtk 2.4.1 and icon_theme_get_default

2005-04-20 Thread Danny Milosavljevic
Hello, trying this program: #!/usr/bin/env python import gtk from xml.dom import minidom import exceptions gtk.icon_theme_get_default() try: doc = minidom.parse(doesntmatter) print doc except exceptions.IOError,s: pass with python 2.4 and pygtk 2.4.1 (and

Re: [pygtk] segfault with pygtk 2.4.1 and icon_theme_get_default

2005-04-20 Thread Jesse Pavel
Hmm, on my machine it doesn't segfault. I'm using libxml2 2.5.10, though. Danny Milosavljevic on April 20, 2005 wrote: Hello, trying this program: #!/usr/bin/env python import gtk from xml.dom import minidom import exceptions gtk.icon_theme_get_default() try:

Re: [pygtk] segfault with pygtk 2.4.1 and icon_theme_get_default

2005-04-20 Thread Danny Milosavljevic
Hi, Am Mittwoch, den 20.04.2005, 07:24 +0200 schrieb Danny Milosavljevic: Hello, trying this program: #!/usr/bin/env python import gtk from xml.dom import minidom import exceptions gtk.icon_theme_get_default() try: doc = minidom.parse(doesntmatter) print doc

[pygtk] Segfault when resizing TreeViewColumn

2004-08-26 Thread Jon Ellis
I am having trouble with gtk segfaulting when I resize a TreeViewColumn under certain conditions. Attached is a sample demonstrating this behavior. If you launch the sample, and try to resize the TreeViewColumns when nothing in the TreeView is selected, it segfaluts. However, if you first

Re: [pygtk] Segfault when resizing TreeViewColumn

2004-08-26 Thread Guilherme Salgado
On Thu, 2004-08-26 at 14:05, Jon Ellis wrote: I am having trouble with gtk segfaulting when I resize a TreeViewColumn under certain conditions. Attached is a sample demonstrating this behavior. Hi Jon, this looks like bug #147913 http://bugzilla.gnome.org/show_bug.cgi?id=147913. cheers,

Re: [pygtk] segfault when resizing TreeViewColumn

2004-07-19 Thread Christian Robottom Reis
On Sun, Jul 18, 2004 at 08:16:45PM -0300, Guilherme Salgado wrote: Everything seems to work fine, unless you try to resize a TreeViewColumn. It's officially a bug, because Johan immediately said he didn't know how to fix it wink. Can you file a report, CC: us and attach your testcase? It could

[pygtk] segfault when resizing TreeViewColumn

2004-07-18 Thread Guilherme Salgado
Hello! I'm writing an app wich have two TreeViews on the same window, and the content of the second TreeView is based on the selected row of the first one. There can be many (1000+) items on each TreeView, and as I'm fetching the data displayed from a postgres database, I'm using the

Re: [pygtk] Segfault on TreeView Empty

2004-07-03 Thread Thomas Mills Hinkle
Have you tried reproducing it on other Unstable boxes? I've now reproduced it on another unstable box (powerpc Do you have a minimal (20-line) testcase so others can run and verify if the problem exists? To reproduce the problem, I tried creating a version of the basictreeview example from

Re: [pygtk] Segfault on TreeView Empty

2004-07-03 Thread Gustavo J. A. M. Carneiro
Thanks. Fixed in CVS. A Sáb, 2004-07-03 às 23:36, Thomas Mills Hinkle escreveu: Have you tried reproducing it on other Unstable boxes? I've now reproduced it on another unstable box (powerpc Do you have a minimal (20-line) testcase so others can run and verify if the problem

Re: [pygtk] Segfault on TreeView Empty

2004-07-02 Thread Christian Robottom Reis
On Fri, Jul 02, 2004 at 12:31:53AM -0400, Thomas Mills Hinkle wrote: I have a funny feeling that this, like the other segfaults I experienced when rearranging treeViews, will not be reproducible on other machines -- but if it's standard on a debian unstable system, perhaps someone else has run

[pygtk] segfault in gtk.glade.XML

2003-07-24 Thread Don Allingham
I've been attempting to port pygtk-1.99.14 and gnome-python-1.99.14 to SuSE 8.2 because the packages SuSE shipped are rather broken (built without gnome.ui). I've been able to build the packages, but when I run my application, I get a segfault in the glade_xml_new call. At this point, I'm kind of

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread Christian Reis
On Thu, Jul 24, 2003 at 08:51:42PM -0600, Don Allingham wrote: I've been attempting to port pygtk-1.99.14 and gnome-python-1.99.14 to SuSE 8.2 because the packages SuSE shipped are rather broken (built without gnome.ui). I've been able to build the packages, but when I run my application, I

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread Don Allingham
Yes, gnome.ui is imported before glade is. The program works properly on most linux distributions. The program has been properly init'ed, and the glade file is a glade2 file. The program works properly under 1.99.14 under RedHat and other distributions. I can even duplicate with a very small

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread James Henstridge
Don Allingham wrote: I've been attempting to port pygtk-1.99.14 and gnome-python-1.99.14 to SuSE 8.2 because the packages SuSE shipped are rather broken (built without gnome.ui). I've been able to build the packages, but when I run my application, I get a segfault in the glade_xml_new call. At

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread James Henstridge
Don Allingham wrote: On Thu, 2003-07-24 at 21:52, James Henstridge wrote: If there is no gnome.ui module, then it is not possible to initialise the libgnomeui library. libglade is not guaranteed to function if you do not initialise the libraries you use. I built the missing pyorbit

[pygtk] Segfault with get_ancestor()

2002-09-20 Thread Graham Ashton
Hi. I was wondering if anybody could confirm that I'm using the correct technique to get a widget's parent container (and not necessarily it's direct container). My attempt (using get_ancestor()) segfaults if the widget isn't in a container of the correct type. See below. Admittedly, I'm

Re: [pygtk] Segfault with get_ancestor()

2002-09-20 Thread James Henstridge
Graham Ashton wrote: Hi. I was wondering if anybody could confirm that I'm using the correct technique to get a widget's parent container (and not necessarily it's direct container). My attempt (using get_ancestor()) segfaults if the widget isn't in a container of the correct type. See below.

Re: [pygtk] Segfault with popup menus

2001-11-25 Thread Colin Walters
Colin Walters [EMAIL PROTECTED] writes: Paul Brannan [EMAIL PROTECTED] writes: With this program: [...] I have no idea what's causing self=0x0, but I suspect that's why the program is segfaulting. Works fine for me using python-gnome 1.4.1. Oops, spoke too soon, it doesn't work for

[pygtk] Segfault with popup menus

2001-11-19 Thread Paul Brannan
With this program: from gtk import * def button_press(widget, event): if event.button == 3: menu = GtkMenu() menu.append(GtkMenuItem('foo')) menu.append(GtkMenuItem('bar')) menu.popup(widget, None, None, event.button, event.time) window =

Re: [pygtk] Segfault with popup menus

2001-11-19 Thread John Finlay
Paul, Pass in None instead of widget as the first arg to menu.popup. Also need to have the menu displayed. Changes below. John from gtk import * def button_press(widget, event): if event.button == 3: menu = GtkMenu() menu.append(GtkMenuItem('foo'))