Blender3D is crashed by pyGTK with GTK 2.0
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://
100 /var/lib/
2.
500 http://
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(
textView.
scrollWindow = gtk.ScrolledWin
scrollWindow.
[/code]
The back trace from the crash is:
[backtrace]
*** glibc detected *** /home/jingy/
unmap_chunk(): invalid pointer: 0x0000000001f9e6c0 ***
======= Backtrace: =========
/lib/libc.
/usr/lib/
/var/lib/
/var/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/home/jingy/
1f9)[0x85d4e9]
/home/jingy/
x6522b2]
/home/jingy/
0x65301a]
/home/jingy/
b]
/home/jingy/
/lib/libc.
/home/jingy/
[/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:/
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
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.