[squeak-dev] Re: OSProcess on Mac?

David T. Lewis lewis at mail.msen.com
Sun Dec 12 16:46:52 UTC 2010


On Sat, Dec 11, 2010 at 11:00:14PM +0100, Bernhard Pieber wrote:
> Dear Squeakers,
>
> Does OSProcess work with the latest trunk image on a Mac? If yes, what VM do I need?
>
> I loaded the latest OSProcess-dtl.59 and OSProcess-Tests-dtl.4 from
> SqueakSource in a fully updated trunk image (10762). I tried to run
> the tests with the 5.8b12 VM and got the warning "process accessor
> module not available". I looked into the VM package and it does not
> seem to include the plugin.

Some of the Mac VMs have been built without the OSProcessPlugin that
is required for OSProcess. Apparently this is one of them.

> I then tried the same with the 4.2.5beta1U VM which includes
> UnixOSProcessPlugin.bundle. I get the warning "forkSqueak requires
> XDisplayControlPlugin". This plugin is not included in the VM. When
> I proceed the image freezes for some time and the warning appears again.

This is a warning that I added to the latest version of OSProcess.
The issue is that for a Unix (Linux) VM running with X window, the
#forkSqueak methods can crash the VM if the XDisplayControlPlugin
is not installed (because if the forked Squeak cannot disconnect
from the X display, it will keep trying to communicate to X11 on
the same socket as the original squeak, which leads to an error
somewhere in the depths of the X11 libraries). I'm not sure if this
is the best way to handle the issue on a Mac. I'll try to have a
look at it the next time I get access to a Mac, meantime if anyone
can give me some tips here I'll appreciate it.

On Sat, Dec 11, 2010 at 03:49:13PM -0800, Sean P. DeNigris wrote:
> 
> bpi wrote:
> > 
> > Does OSProcess work with the latest trunk image on a Mac? If yes, what VM
> > do I need?
> > 
> 
> I've been using that version of OSProcess on 4.1 (4.2.5 VM) but never ran
> the tests.  When I did they blew up as well, but the basic functionality
> (e.g. "OSProcess command: 'open "http://google.com"'") is working in 4.1 and
> trunk 10762.

Some of the recent Mac VMs were built with a very out of date version
of OSProcess that causes problems on Mac, including crashes when
performing #forkSqueak. I'm not sure if the 4.2.5 VM has this issue,
but you check by evaluating "OSProcess accessor osppModuleVersionString".
If the result is '4.0.1' then you have the outdated plugin. You need
at least version 4.0.2 to run safely on a Mac (the current version of
OSPP is 4.4.0).

Dave




More information about the Squeak-dev mailing list