Bug #245553 “Blender3D is crashed by pyGTK with GTK 2.0” : Bugs : pygtk package : Ubuntu

Blender3D is crashed by pyGTK with GTK 2.0

Bug #245553 reported by didu
4
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)
Incomplete
Medium
Ubuntu Desktop Bugs

Bug Description

Background information: I'm using pyGTK to do some additional programming through the Python API/interpreter of Blender 3D.

Here is the setup of my machine:

Ubuntu 8.04 AMD64
---Linux HOSTNAME 2.6.24-19-generic #1 SMP Wed Jun 4 15:10:52 UTC 2008 x86_64 GNU/Linux

Blender: latest build from SVN, version 2.46

GTK: version 2.0
libgtk2.0-0:
  Installed: 2.12.9-3ubuntu4
  Candidate: 2.12.9-3ubuntu4
  Version table:
 *** 2.12.9-3ubuntu4 0
        500 http://au.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     2.12.9-3ubuntu2 0
        500 http://au.archive.ubuntu.com hardy/main Packages

PyGTK version: python-gtk2:
  Installed: 2.12.1-0ubuntu1
  Candidate: 2.12.1-0ubuntu1
  Version table:
 *** 2.12.1-0ubuntu1 0

The following python code will cause Blender to commit an unmap_chunk error if run in the script window of Blender:

[code]
import gtk

textBuffer = gtk.TextBuffer()
textView = gtk.TextView(textBuffer)
textView.set_wrap_mode(gtk.WRAP_WORD)
scrollWindow = gtk.ScrolledWindow()
scrollWindow.add(textView)
[/code]

The back trace from the crash is:

[backtrace]
*** glibc detected *** /home/jingy/install/svn/blender/install/linux2/blender: m
unmap_chunk(): invalid pointer: 0x0000000001f9e6c0 ***
======= Backtrace: =========
/lib/libc.so.6(cfree+0x1b6)[0x2b754477bd46]
/usr/lib/libgobject-2.0.so.0(g_object_newv+0x23f)[0x2aaaabc2f54f]
/var/lib/python-support/python2.5/gtk-2.0/gobject/_gobject.so[0x2aaaab9dfcf1]
/var/lib/python-support/python2.5/gtk-2.0/gtk/_gtk.so[0x2aaaaccc5aba]
/usr/lib/libpython2.5.so.1.0[0x2b754234fdd8]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x13)[0x2b7542306f53]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x25b0)[0x2b75423849f0]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x796)[0x2b75423888c6]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x32)[0x2b75423889e2]
/home/jingy/install/svn/blender/install/linux2/blender(BPY_txt_do_python_Text+0x
1f9)[0x85d4e9]
/home/jingy/install/svn/blender/install/linux2/blender(run_python_script+0x22)[0
x6522b2]
/home/jingy/install/svn/blender/install/linux2/blender(winqreadtextspace+0x53a)[
0x65301a]
/home/jingy/install/svn/blender/install/linux2/blender(screenmain+0x43b)[0x6ab10
b]
/home/jingy/install/svn/blender/install/linux2/blender(main+0x5b1)[0x5815e1]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b75447221c4]
/home/jingy/install/svn/blender/install/linux2/blender(atan+0x321)[0x580a99]
[/backtrace]

The crash is triggered by the last line of the Python code.

The offending version of Blender3D can be checked out from its svn repository with the following command on linux/unix:

svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/blender

The interesting about this bug is that it seems to be compilation and platform dependent.

For example, the following combinations of Blender3D and linux are not affected by this bug:

statically compiled Blender3D 2.45 on Ubuntu 8.04 AMD64
dynamically compiled Blender3D 2.45 on Ubuntu 7.10 386
dynamically compiled Blender3D 2.46 on Ubuntu 7.10 386

In fact, the exact same build that causes the crash on Ubuntu 8.04 AMD64 does not cause any crash on Ubuntu 7.10 386.

Please let me know what you think.

Thanks a lot.

Patrick

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a valgrind log following the instructions at https://wiki.ubuntu.com/Valgrind and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in pygtk:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
didu (ye-patrick) wrote : Re: [Bug 245553] Re: Blender3D is crashed by pyGTK with GTK 2.0

Hi Sebastien,

Thanks for taking notice of my bug report, I followed the procedures
given in the wiki page, and it produced a single log file which I've
attached to this email. Unlike the previous crashes, this time, there
is some different error messages which I list below:

------------------ begin error messages ---------------------
**
** Gtk:ERROR:(/build/buildd/gtk+2.0-2.12.9/gtk/gtktextbtree.c:513):_gtk_text_btr
ee_unref: assertion failed: (g_hash_table_size (tree->mark_table) == 0)
Aborted
------------------ end error messages ---------------------

Please let me know if I can be of any further assistance in tracking
this bug down.

Thanks a lot.

Patrick

On Wed, Oct 1, 2008 at 9:58 PM, Sebastien Bacher <email address hidden> wrote:
[...]

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you have a testcase you could attach to the bug? the crash is in some libgettextlib call and could be a bug in the application rather than a gtk one, it's not likely to pygtk, the log also doesn't have debug informations, did you libgtk2.0-0-dbgsym installed when you got the log?

Revision history for this message
didu (ye-patrick) wrote :

Hi Sebastien,

On Thu, Oct 2, 2008 at 1:29 AM, Sebastien Bacher <email address hidden> wrote:
> do you have a testcase you could attach to the bug? the crash is in some
> libgettextlib call and could be a bug in the application rather than a
> gtk one, it's not likely to pygtk, the log also doesn't have debug
> informations, did you libgtk2.0-0-dbgsym installed when you got the log?

I do have a test case and it's described in the initial bug report. I
didn't have libgtk2.0-0-dbgsym installed when I got the log, I will
install it tonight and email you the results.

Thanks a lot.

Patrick

Revision history for this message
didu (ye-patrick) wrote :

Hi Sebastien,

I'm so sorry for not getting back to you earlier, I've been extremely
busy with interview preparations.

I've installed libgtk2.0-0-dbg (I cannot find a package named
libgtk2.0-0-dbgsym). Here is the new
valgrind.log.

Please let me know if I could be of further assistance.

Thanks a lot.

Patrick

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if that's still an issue in jaunty?

Revision history for this message
didu (ye-patrick) wrote :

I haven't got jaunty installed on my machines, I will try once I get
it installed.

Thanks a lot.

Patrick

On Wed, Apr 29, 2009 at 7:07 AM, Sebastien Bacher <email address hidden> wrote:
> could you try if that's still an issue in jaunty?
>
> --
> Blender3D is crashed by pyGTK with GTK 2.0
> https://bugs.launchpad.net/bugs/245553
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Sebastien Bacher (seb128) wrote :

did you install jaunty since?

Revision history for this message
didu (ye-patrick) wrote :

On Thu, Jun 11, 2009 at 6:56 PM, Sebastien Bacher<email address hidden> wrote:
> did you install jaunty since?

Sorry, not yet, I have a paper deadline on Tuesday next week, and I
cannot change my machine until then.

Patrick

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Loading subscribers...

Remote bug watches

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