Benjamin L. Russell wrote:
On Wed, 22 Apr 2009 14:43:18 +0100, Torsten Anders
<[email protected]> wrote:
On 22 Apr 2009, at 13:47, David Bremner wrote:
Benjamin L. Russell wrote:
That sounds great; until then, however, because of my previously
posted Mozart/Oz startup bug, "Process Oz Emulator exited abnormally
with code 5," regarding which nobody has posted a follow-up yet, I'm
pretty much dead in the water, with no way of even starting up
Mozart/Oz 1.4.0.
It is a rather radical solution, but you could install some flavour of
Linux on a spare partition/virtual machine.
Actually, Benjamin reported that his installation did work before. It
now stopped working and he would like to understand why. I don't know
either, though. Anyway, I had a second look at your error message
(see below, reported at http://gforge.info.ucl.ac.be/tracker/
index.php?func=detail&aid=203&group_id=17&atid=149). Are you trying
to start the Mozart with ozengine.exe? Try oz.exe instead (ozengine
is used for running existing Oz applications).
$ oz.exe
Oz tries to open in a new Emacs window, but then an error dialog box
prompting to send an error report to Microsoft appears, and in Emacs,
the following error message appears:
Process Oz Emulator exited abnormally with code 5
BTW: no wonder the
following results in an error if there is no functor foo defined
ozengine.exe foo
That's what I thought, too; strangely, this was exactly what Mozart
developer Yves Jaradin suggested in his followup to an earlier bug
report on an identical problem by another user, Karsten Martin (see
http://gforge.info.ucl.ac.be/tracker/?func=detail&aid=193&group_id=17&atid=149):
The idea is to see where the problem is.
The first line ("ozengine.exe") results in an error ("usage: ...") at a
very early stage. Not observing this error means that something is very
wrong with your installation as the system is unable to launch the
executable file. This could be a problem of permission, trying to use a
version compiled for another platform, etc.
The second line ("ozengine.exe foo") results in an error ("%***...
Error: module manager ...") at a much later stage.
Observing this error means that the emulator itself launched properly,
loaded the initialization module (which is written in Oz) and
interpreted it correctly. It essentially means that the emulator is
working correctly.
As a further test, you can try the following:
write a file test.oz containing the two lines "{Browse hello}" and
"{Delay 5000}"
run the command "ozc --include path/to/BaseEnv.oz test.oz" where
BaseEnv.oz is the file attached to this message.
This should open the Browser, displaying 'hello' for about 5 seconds.
This can even be used as a temporary workaround (but is not really a REPL).
From what I found on Google, error code 5 has to do with "access
denied". For the OPI to work, emacs launch oz redirecting stdin and
friends, then oz start a TCP server, communicates the port to emacs on
stdout, then emacs connects to this port and further communication
happens on this TCP channel (a part from input/output by the user in the
Emulator buffer). You can maybe check with your sysadmin that the
emulator is allowed to open TCP sockets for listening (server-like).
You can also try the following test (using the above method):
file1.oz:
local S P in
S={Open server(port:P)}
{Show P}
{S accept()}
{Show ok}
{Delay 5000}
file2.oz:
local S P in
P=1243 %Replace with port number given by running file1.oz
S={Open client(port:P)}
{S write(vs:"\n")}
{S close()}
{Show ok}
{Delay 5000}
If you have a crash, then it is definitely a problem of networking
permissions. If not, then it is probably an Emacs problem.
I hope this helps.
Yves
Date: 2008-08-11 13:10
Sender: Yves Jaradin
Could you try to run the following command in a command windows
(aka DOS shell):
cd "c:\Program Files\Mozart\bin" (or wherever
you installed Mozart)
ozengine.exe
ozengine.exe foo
The last two commands are supposed to output some error messages
that could help diagnose the problem.
Yves Jaradin
-- Benjamin L. Russell
declare
local AllMods in
[Application Search FD Schedule FS Combinator RecordC Error ErrorRegistry
Finalize Service Fault Connection Remote VirtualSite URL DPStatistics DP Site
Discovery Open Tk TkTools Tix Compiler Macro Type Narrator Listener
ErrorListener DefaultURL ObjectSupport
Space OsTime
Module Resolve OS Property Pickle System
OPI OPIEnv Panel Browser Explorer CompilerPanel EvalDialog Emacs Ozcar
OzcarClient Profiler Gump GumpScanner GumpParser ProductionTemplates Inspector
OPIServer DistributionPanel]=AllMods
functor _
require
Application Search FD Schedule FS Combinator RecordC Error ErrorRegistry
Finalize Service Fault Connection Remote VirtualSite URL DPStatistics DP
Site
Discovery Open Tk TkTools Tix Compiler Macro Type Narrator Listener
ErrorListener DefaultURL ObjectSupport
Space OsTime
Module Resolve OS Property Pickle System
OPI OPIEnv Panel Browser Explorer CompilerPanel EvalDialog Emacs Ozcar
OzcarClient Profiler Gump GumpScanner GumpParser ProductionTemplates
Inspector
OPIServer DistributionPanel
prepare
[Application Search FD Schedule FS Combinator RecordC Error ErrorRegistry
Finalize Service Fault Connection Remote VirtualSite URL DPStatistics DP
Site
Discovery Open Tk TkTools Tix Compiler Macro Type Narrator Listener
ErrorListener DefaultURL ObjectSupport
Space OsTime
Module Resolve OS Property Pickle System
OPI OPIEnv Panel Browser Explorer CompilerPanel EvalDialog Emacs Ozcar
OzcarClient Profiler Gump GumpScanner GumpParser ProductionTemplates
Inspector
OPIServer DistributionPanel]=AllMods
end
end
Load=Pickle.load
Save=Pickle.save
SearchOne=Search.base.one
SearchAll=Search.base.all
SearchBest=Search.base.best
Show=System.show
Print=System.print
Link=Module.link
Apply=Module.apply
Browse=Browser.browse
ExploreOne=Explorer.one
ExploreAll=Explorer.all
ExploreBest=Explorer.best
Inspect=Inspector.inspect
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users