Bus error on Mac OS X

I've got a framework build of Python 2.3b1 on Mac OS X 10.2.6. I checked out the WX_2_4_BRANCH of the wxWindows CVS sources and built and installed wxMac and wxPython as per the instructions at http://www.wxpython.org/BUILD.osx.txt .

I try running "pythonw demo.py" (from wxPython/demo), but after only a couple of minutes I always get a bus error. I cannot figure out what the problem is.

Has anybody else has had this experience? Is it just my setup, or is wxPython effectively unusable on Aqua?

Thanks for any feedback.

Andrew.

Andrew Nesbit wrote:

I've got a framework build of Python 2.3b1 on Mac OS X 10.2.6. I checked out the WX_2_4_BRANCH of the wxWindows CVS sources and built and installed wxMac and wxPython as per the instructions at http://www.wxpython.org/BUILD.osx.txt .

I try running "pythonw demo.py" (from wxPython/demo), but after only a couple of minutes I always get a bus error. I cannot figure out what the problem is.

Does the demo start up? If so what sample are you using when it crashes? If not then does "pythonw simple.py" work?

Has anybody else has had this experience? Is it just my setup, or is wxPython effectively unusable on Aqua?

It works fairly well for me and lots of other folks.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Yes, the demo starts up fine. I've played around with it some more and discovered that clicking on NewNamespace always immediately crashes it with a bus error and once I got the following:

pure virtual method called

[1]+ Abort trap pythonw demo.py

SingleChoiceDialog locks the whole thing up and the frame must be closed by clicking on the red "close" button or by some other means; this also causes a bus error.

So far, those are the only two things I've found that actually /crash/ the demo.

But, there are other problems too. For example, scrolling sometimes works, but often the scroll bar doesn't move to the new position. wxCheckListBox doesn't scroll at all. wxComboBox pops up the following traceback:

Traceback (most recent call last):
   File "/Users/andrew/src/wxWindows-CVS/wxWindows/wxPython/demo/wxComboBox.py", line 44, in EvtComboBox
     data = cb.GetClientData(cb.GetSelection())
   File "/usr/local/apps/wxPython-2_4_BRANCH-20030528/lib/python/wxPython/controls.py", line 81, in GetClientData
     val = controlsc.wxControlWithItems_GetClientData(self, *_args, **_kwargs)
wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/mac/choice.cpp(199): invalid index in wxChoice::GetClientData

I find many such issues and tracebacks when playing with the demo. I'm not sure if you already know of this stuff, or if it's just my setup. I'm aware of the Mac issues listed at

http://wiki.wxpython.org/index.cgi/wxPythonOSX_20Issues

but the ones that I'm having seem worse. I would be happy to make a more detailed list of these things if it helps you. But, I am aware of the possibility that it is just my installation. I'm just trying to assess what I can reasonably expect at this current point in time.

BTW, I posted a message yesterday about a build error related to the /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h header file. As was suggested to me in a reply, I used a temporary hack on this file to get it to compile. When making the binary package of wxPython did you also experience this error? (Hmm, I wonder if this may provide a clue for the cause of the flaky behaviour on my system?)

Andrew.

···

On Thursday, May 29, 2003, at 03:08 AM, Robin Dunn wrote:

Andrew Nesbit wrote:

I've got a framework build of Python 2.3b1 on Mac OS X 10.2.6. I checked out the WX_2_4_BRANCH of the wxWindows CVS sources and built and installed wxMac and wxPython as per the instructions at http://www.wxpython.org/BUILD.osx.txt .
I try running "pythonw demo.py" (from wxPython/demo), but after only a couple of minutes I always get a bus error. I cannot figure out what the problem is.

Does the demo start up? If so what sample are you using when it crashes? If not then does "pythonw simple.py" work?

Andrew Nesbit wrote:

Yes, the demo starts up fine. I've played around with it some more and discovered that clicking on NewNamespace always immediately crashes it with a bus error and once I got the following:

pure virtual method called

[1]+ Abort trap pythonw demo.py

This sample isn't finished yet, but I wouldn't expect it to crash in its current state. Hmmm, and it doesn't crash for me...

SingleChoiceDialog locks the whole thing up and the frame must be closed by clicking on the red "close" button or by some other means; this also causes a bus error.

Looks like the dialog is actually being created with a very small size for some reason, and since it's modal it is blocking the rest of the app... I'll check into this.

So far, those are the only two things I've found that actually /crash/ the demo.

But, there are other problems too. For example, scrolling sometimes works, but often the scroll bar doesn't move to the new position. wxCheckListBox doesn't scroll at all. wxComboBox pops up the following traceback:

There were some recent changes to try and fix some scrolling problems, looks like for the Mac it caused more than it fixed. I'll raise this issue on wx-dev.

Traceback (most recent call last):
  File "/Users/andrew/src/wxWindows-CVS/wxWindows/wxPython/demo/ wxComboBox.py", line 44, in EvtComboBox
    data = cb.GetClientData(cb.GetSelection())
  File "/usr/local/apps/wxPython-2_4_BRANCH-20030528/lib/python/wxPython/ controls.py", line 81, in GetClientData
    val = controlsc.wxControlWithItems_GetClientData(self, *_args, **_kwargs)
wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/mac/choice.cpp(199): invalid index in wxChoice::GetClientData

Yes, I've seen this one before but thanks for the reminder. I'll see what I can do.

I find many such issues and tracebacks when playing with the demo. I'm not sure if you already know of this stuff, or if it's just my setup.

I'm aware of some things, but it doesn't hurt to get reminders.

I'm aware of the Mac issues listed at

http://wiki.wxpython.org/index.cgi/wxPythonOSX_20Issues

but the ones that I'm having seem worse. I would be happy to make a more detailed list of these things if it helps you. But, I am aware of the possibility that it is just my installation.

Please do make the list.

I'm just trying to assess what I can reasonably expect at this current point in time.

Not everything is polished, but all of the core stuff is supposed to work.

BTW, I posted a message yesterday about a build error related to the /System/Library/Frameworks/CoreServices.framework/Frameworks/ CarbonCore.framework/Headers/fp.h header file. As was suggested to me in a reply, I used a temporary hack on this file to get it to compile. When making the binary package of wxPython did you also experience this error?

Yes, I think I had to do the same thing.

(Hmm, I wonder if this may provide a clue for the cause of the flaky behaviour on my system?)

It should have only affected the wxGLCanvas build...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!