* 9vx native OS X gui
@ 2008-06-28 19:47 Russ Cox
2008-06-28 20:08 ` [9fans] " Pietro Gagliardi
2008-06-28 20:08 ` Russ Cox
0 siblings, 2 replies; 6+ messages in thread
From: Russ Cox @ 2008-06-28 19:47 UTC (permalink / raw)
To: 9fans
The 9vx 0.11 source code includes OS X gui code,
a severely cleaned-up version of the drawterm code.
It is not built by default, but you can build it by using
make 9vx/9vx PLAN9GUI=osx
Unfortunately, it seems to have one problem: the
Carbon app event loop appears to install its own
handler for EXC_BAD_ACCESS, the Mach equivalent
of SIGBUS/SIGSEGV. When it gets that exception,
it passes it along, but first it pops up an annoying
"The application 9vx quit unexpectedly" dialog.
Even if you turn the popup off (with TinkerTool),
the handler must record that things are broken,
and the cursor turns into a pinwheel forever:
Carbon/Quartz/whatever-it's-called-today can't
fathom the idea that an EXC_BAD_ACCESS came in
and the app actually survived it.
I assume the fix would be to install an EXC_BAD_ACCESS
handler after kicking off the app event loop. That would
make sure that Carbon never saw it.
But I don't know how to do that.
Russ
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] 9vx native OS X gui
2008-06-28 19:47 9vx native OS X gui Russ Cox
@ 2008-06-28 20:08 ` Pietro Gagliardi
2008-06-28 20:08 ` Russ Cox
1 sibling, 0 replies; 6+ messages in thread
From: Pietro Gagliardi @ 2008-06-28 20:08 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Running the new native 9vx (which I was almost done doing myself, had
it not been for that missing file):
The process has forked and you cannot use this CoreFoundation
functionality safely. You MUST exec().
Break on
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
() to debug.
repeated 158 (!) times, followed by the first line and then an abort
before the second line is printed. :-(
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] 9vx native OS X gui
2008-06-28 19:47 9vx native OS X gui Russ Cox
2008-06-28 20:08 ` [9fans] " Pietro Gagliardi
@ 2008-06-28 20:08 ` Russ Cox
2008-06-28 20:40 ` underspecified
1 sibling, 1 reply; 6+ messages in thread
From: Russ Cox @ 2008-06-28 20:08 UTC (permalink / raw)
To: 9fans
> Unfortunately, it seems to have one problem: the
> Carbon app event loop appears to install its own
> handler for EXC_BAD_ACCESS, the Mach equivalent
It looks like this might be fixed in 10.5, according to
http://developer.apple.com/technotes/tn2004/tn2123.html#SECLIMITATIONS
Of course, if you get past that, you'll have to debug my
cleanup of the gui code.
Russ
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] 9vx native OS X gui
2008-06-28 20:08 ` Russ Cox
@ 2008-06-28 20:40 ` underspecified
2008-06-28 22:17 ` Anant Narayanan
0 siblings, 1 reply; 6+ messages in thread
From: underspecified @ 2008-06-28 20:40 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Russ,
Great work with 9vx. I haven't played around with it too much, but I
did successfully build your native gui code cleanup.
When I start 9vx, I get the following messages dumped to terminal
repeatedly and the app hangs:
cpu10: runproc spurious wakeup
idlehands spurious wakeup
Perhaps this has something to do with the OS-X cpu bug mentioned
earlier in the thread?
--underspecified
On Sun, Jun 29, 2008 at 5:08 AM, Russ Cox <rsc@swtch.com> wrote:
>> Unfortunately, it seems to have one problem: the
>> Carbon app event loop appears to install its own
>> handler for EXC_BAD_ACCESS, the Mach equivalent
>
> It looks like this might be fixed in 10.5, according to
>
> http://developer.apple.com/technotes/tn2004/tn2123.html#SECLIMITATIONS
>
> Of course, if you get past that, you'll have to debug my
> cleanup of the gui code.
>
> Russ
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] 9vx native OS X gui
2008-06-28 20:40 ` underspecified
@ 2008-06-28 22:17 ` Anant Narayanan
2008-06-28 22:28 ` Pietro Gagliardi
0 siblings, 1 reply; 6+ messages in thread
From: Anant Narayanan @ 2008-06-28 22:17 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hi,
First off, 9vx is incredible! Thanks Russ and Bryan :)
> When I start 9vx, I get the following messages dumped to terminal
> repeatedly and the app hangs:
>
> cpu10: runproc spurious wakeup
> idlehands spurious wakeup
I got the new 0.11 source to build, but run into a similar error:
cpu3: runproc spurious wakeup
On 28-Jun-08, at 1:08 PM, Pietro Gagliardi wrote:
> Running the new native 9vx (which I was almost done doing myself,
> had it not been for that missing file):
>
> The process has forked and you cannot use this CoreFoundation
> functionality safely. You MUST exec().
> Break on
> __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
> () to debug.
Running 9vx with the -F flag makes that error go away (tried on 10.5.3)
Regards,
Anant
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-06-28 22:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-28 19:47 9vx native OS X gui Russ Cox
2008-06-28 20:08 ` [9fans] " Pietro Gagliardi
2008-06-28 20:08 ` Russ Cox
2008-06-28 20:40 ` underspecified
2008-06-28 22:17 ` Anant Narayanan
2008-06-28 22:28 ` Pietro Gagliardi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).