Looking at PyEval_CallFunction, it appears that it expects the arguments
to be referenced before they are passed in, as it dereferences them upon
returning. By removing the Py_DECREF(pypath) at line 671 of
gtktreeview.override, this bug no longer occurs.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygtk in Ubuntu.
https://bugs.launchpad.net/bugs/1048105

Title:
  negative ref count in treeview selection function using python-dbg

Status in “pygtk” package in Ubuntu:
  New

Bug description:
  When you run python-dbg with the debug packages, if you call
  set_select_function on a treeview, whenever the function is called
  python-dbg will assert with the following error:

  Fatal Python error: gtktreeview.override:671 object at 0xb83fb0 has
  negative ref count -1

  Attached is a test program that reproduces this each time you select
  the item in the treeview.

  Kubuntu 12.04.1
  Python 2.7.3
  PyGTK 2.24.0-3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/1048105/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to