bugBKChem - Bugs: bug #24769, bkchem crashes in ubuntu 8.10 when...


bug #24769: bkchem crashes in ubuntu 8.10 when accessing the menu

Submitter:  None
Submitted:  Thu 06 Nov 2008 10:20:44 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  general Status:  Fixed
Privacy:  Public Assigned to:  beda
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup

Wed 19 Nov 2008 10:13:58 AM UTC, comment #5: 


The patch fixed the problem.

Nice work and thanks again!


Tanguy <couette>
Tue 18 Nov 2008 08:32:48 AM UTC, comment #4: 


I had to get an Ubuntu virtual machine to find where the problem is, so it took me some time.
The problem is in the libBLT library which causes the segmentation fault. Because it is not possible for me to fix the problem with the BLT library, I have found a way to circumvent its use.
I am attaching a patch that has to be applied to the file Pmw.py in the distribution directory using the following command:

patch -p0 Pmw.py < Pmw.py.patch

After applying this patch, bkchem should work ok.
Please let me know if it works for you.

p.s.- I will try to find a simple example of where this crash comes from and submit a bug to ubuntu database.

(file #16875)

Beda Kosata <beda>
Group administrator
Fri 14 Nov 2008 05:02:26 PM UTC, comment #3: 

Well, hi again

I also have the png export problem, which also comes from a segmentation fault. The test program for this issue also works fine, I get a nice triangle.png file.

pdf export works fine though...

Hope it can help to understand the problem


PS : is there a way to edit our own post, rather than making 2 in a row?

Tanguy <couette>
Fri 14 Nov 2008 04:51:36 PM UTC, comment #2: 


I have the same problem when running BKChem 0.12.4 in Ubuntu 8.10

Tested your test program and it works fine.

In fact, drawing, opening and saving files is still possible, but when I try to access menu items like File Properties or Options for example, BKChem crashes, and it says "segmentation fault".
Oh, and I use the french translated version, my english translation of the menu items may be wrong.



Tanguy <couette>
Fri 07 Nov 2008 01:10:01 PM UTC, comment #1: 

Hi Robert,
thanks for letting me know. To me it sounds like some problem of incompatible libraries inside Ubuntu, rather than a problem of BKChem. It is very rarely that a Python program causes segmentation fault and it is usually a sign that there is something wrong with the underlying libraries.
I have attached a very basic test program to test if this really is a general Tkinter (the widget library) problem.
Could you please try to run it and let me know what the result is?


(file #16800)

Beda Kosata <beda>
Group administrator
Thu 06 Nov 2008 10:20:44 PM UTC, original submission:  


after installation of bkchem in Ubuntu 8.10 (version BKChem 0.12.2), drawing is possible.

But as soon as menu-items like Help:About are accessed, the application crashes with a segmentation fault.

Remark: BK is running fine in 8.04 (0.12.0)

Greetings, Robert

My email: -email is unavailable-



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #16875:  Pmw.py.patch added by beda (23B - application/octet-stream - this is a patch against Pmw.py that should take care of the problem)
file #16800:  test.py added by beda (1KiB - text/x-python - simple test script (taken from http://www.learningpython.com/2006/03/27/using-menus-in-tkinter/))


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by couette (Posted a comment)
  • -email is unavailable- added by beda (Updated the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-11-19 beda Open/ClosedOpen Closed
    2008-11-19 beda StatusReady For Test Fixed
    2008-11-18 beda Attached File- Added Pmw.py.patch, #16875
        StatusNeed Info Ready For Test
    2008-11-07 beda StatusNone Need Info
        Assigned toNone beda
    2008-11-07 beda Attached File- Added test.py, #16800

    Back to the top

    Powered by Savane 3.13-e652.
    Corresponding source code