This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: AESend on Jaguar
Type: Stage:
Components: macOS Versions: Python 2.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: akuchling, aubonbeurre, jackjansen
Priority: normal Keywords:

Created on 2002-08-14 16:02 by aubonbeurre, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (6)
msg11966 - (view) Author: Alexandre Parenteau (aubonbeurre) Date: 2002-08-14 16:02
I wonder how many of you guys played with Jaguar 
(OSX 10.2). It is also my
first glance at gcc 3.1 that comes with 10.2. Everything 
was fine for
building Python, except for waste which has an 
obsolete libWaste.a (even in
August 1st Waste 2.1b1) which won't compile with 
gcc3.1. After I recompiled
waste with CodeWarrior 8.2 (MPTP: early access), it 
came OK.

I then run into some problems of checked out files 
because I'm using MacCvs
(see earlier message). I used the 'make 
frameworkinstall' scheme.

Now I'm experiencing the nice new architecture. I 
mostly use python from the
command line to invoke CodeWarrior thru AppleScripts, 
so I almost immeditly
run into a hanging problems of python :

        _err = AESend(&_self->ob_itself,
                      &reply,
                      sendMode,
                      sendPriority,
                      timeOutInTicks,
                      0L/*upp_AEIdleProc*/,
                      (AEFilterUPP)0);

I had to comment out upp_AEIdleProc (I tried several 
things, but that is the
only thing which helped). Jack, you might want to 
remember this one if the
problem is still in Jaguar. It hangs and finally times out. 
I've looked
inside this function and I can see the signal handling, 
but I'm not sure
what it is for.
msg11967 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-08-19 14:45
Logged In: YES 
user_id=45365

Alexandre,
I tried a few simple things with the AE module (talking to CodeWarrior) 
on Jaguar, but I can't get it to hang.

Could you give me an example script that shows the problem?

Also: I've been using MachoPython from the CVS HEAD, I assume 
you're using the same, right?
msg11968 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-08-30 11:47
Logged In: YES 
user_id=45365

The problem turns out to be that under Jaguar you must *not* pass an 
idle routine if you haven't done all the correct toolbox initializations yet.

To verify this, do something like "import EasyDialogs; 
EasyDialogs.Message("There we go")" at the start of your script. 
Everything now works fine.

Somehow, if you haven't initialized, the idle routine will be called with 
random garbage, and it will be called continuously.

The question is: what's the best way to fix this? I noticed that even a 
simple Carbon.Evt.WaitNextEvent(0,0) in your test script is enough to 
make it work. Should we call this in the init_AE() routine? in AESend()?
msg11969 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-11-27 21:23
Logged In: YES 
user_id=45365

Apple are aware of the bug and looking at it. Their bug ID is 3097709.
msg11970 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-06-05 21:58
Logged In: YES 
user_id=11375

Jack, any movement on this bug?  Should it simply be closed?
msg11971 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2006-02-21 10:39
Logged In: YES 
user_id=45365

I don't fully remember the bug (it's been a while:-) but the Apple bug report has 
been closed, so let's assume this has been fixed for Python too.
History
Date User Action Args
2022-04-10 16:05:35adminsetgithub: 37031
2002-08-14 16:02:39aubonbeurrecreate