Skip to main content

0.4 doesn't start on MacOSX

23 replies [Last post]
klausb
Offline
Joined: 2004-02-05
Points: 0

a newbie question perhaps, but I'm a bit disappointed that I don't see an out-of-the-box experience. When I run bridge.command, then server.command, I get the messages below.
Looking at the output, it seems the directories for the ant command are not properly set in the script. I thought I maybe happened to download a .dmg with broken scripts and took the nightly build, but get the same results. Are there any additional steps on MacOSX I need to take? It doesn't matter, btw, whether I run the scripts directly in the terminal or double-click them in the Finder, the result is the same.

[HAL9000:/Applications/Wonderland.app] % ./bridge.command
Executing: ant -lib "./Contents/Resources/ant/lib" -Dwl.root.dir="./Contents/Resources" -f "./Contents/Resources/ant/run.xml" run-bridge
Buildfile: ./Contents/Resources/ant/run.xml

stop-bridge:

BUILD FAILED
/Applications/Wonderland.app/Contents/Resources/ant/run.xml:288: /Applications/Wonderland.app/Contents/Resources/ant/Contents/Resources is not a valid directory

Total time: 0 seconds
-----
server.command:
[HAL9000:/Applications/Wonderland.app] % ./server.command
Executing: ant -lib "./Contents/Resources/ant/lib" -Dwl.root.dir="./Contents/Resources" -f "./Contents/Resources/ant/run.xml" run-server
Buildfile: ./Contents/Resources/ant/run.xml

run-server:
[mkdir] Created dir: /Applications/Wonderland.app/Contents/Resources/ant/Contents/Resources/data/Wonderland/dsdb

BUILD FAILED
/Applications/Wonderland.app/Contents/Resources/ant/run.xml:236: /Applications/Wonderland.app/Contents/Resources/ant/Contents/Resources/modules not found.

Total time: 0 seconds
-----

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
matty_x
Offline
Joined: 2008-06-16
Points: 0

Interesting problem.

It appears that your initial problem did indeed have to do with a faulty path.

Your problem now appears to be different.

Your error is an indication that failonerror=true.

"Java returned: 139" means exit code. 139 means 128 + 11 where 11 is SIGSEGV. So it looks like a segfault...

(Vielleicht ist das ein Problem mit der gegenwärtigen Java-Installation? Wann wurde das zum letzten mal geupdatet bzw. neu-installiert?)

klausb
Offline
Joined: 2004-02-05
Points: 0

the java I have on the system is from Apple, unmodified, installed only through software update. Since I didn't remove anything by force, I have no idea what could be wrong here. But I'm setting up my new notebook now with OpenSolaris and Ubuntu, so I'll try Wonderland on these platforms then and won't spend more time on it on the Mac now.
regards and thanks,
Klaus

bernard_horan
Offline
Joined: 2007-06-04
Points: 0

Klaus

I think you need to remove the "exit" commands from your command line.

regards

Bernard

klausb
Offline
Joined: 2004-02-05
Points: 0

Hi Bernard,
it's not my commandline, it's the script in the Wonderland.app I'm double-clicking. The exit must be from the scripts the bridge- and server- command files are pulling. I don't understand why it doesn't work on my Mac, but obviously on others. I'm guessing: can it perhaps come from using either the built-in ant command in MacOS X vs. the ant in the Apple developers software (I don't have it installed).

-Klaus

klausb
Offline
Joined: 2004-02-05
Points: 0

I re-downloaded the 0.4 binary .dmg, and it's almost entirely, though not completely the same: the bridge startup returns an error:
Last login: Thu Oct 23 13:17:13 on ttys000
[dhcp-emuc07-131-118:~] klaus% /Applications/Wonderland.app/bridge.command ; exit;
Executing: ant -lib "/Applications/Wonderland.app/Contents/Resources/ant/lib" -Dwl.root.dir="/Applications/Wonderland.app/Contents/Resources" -f "/Applications/Wonderland.app/Contents/Resources/ant/run.xml" run-bridge
Buildfile: /Applications/Wonderland.app/Contents/Resources/ant/run.xml
stop-bridge:
[java] Oct 23 13:19:55.211 Connecting to dhcp-emuc07-131-118.Germany.Sun.COM:6666
run-bridge:
BUILD FAILED
/Applications/Wonderland.app/Contents/Resources/ant/run.xml:301: Java returned: 139
Total time: 1 second
logout

-----
The server startup looks like this. When I start Wonderland then, I'm stuck at the login prompt, with all logins invalid. I will try this with a Linux system at home, but not invest more time in it now on the Mac...

Last login: Thu Oct 23 13:19:54 on ttys000
/Applications/Wonderland.app/server.command ; exit;
[dhcp-emuc07-131-118:~] klaus% /Applications/Wonderland.app/server.command ; exit;
Executing: ant -lib "/Applications/Wonderland.app/Contents/Resources/ant/lib" -Dwl.root.dir="/Applications/Wonderland.app/Contents/Resources" -f "/Applications/Wonderland.app/Contents/Resources/ant/run.xml" run-server
Buildfile: /Applications/Wonderland.app/Contents/Resources/ant/run.xml
run-server:
[delete] Deleting directory /Applications/Wonderland.app/Contents/Resources/data/Wonderland/dsdb
[mkdir] Created dir: /Applications/Wonderland.app/Contents/Resources/data/Wonderland/dsdb
[copy] Copying 1 file to /Applications/Wonderland.app/Contents/Resources/ext/darkstar
[java] Java Result: 139
BUILD SUCCESSFUL
Total time: 0 seconds
logout

technobuddhist
Offline
Joined: 2008-08-13
Points: 0

sorry I couldn't be more help.

Good luck with your Linux install.

klausb
Offline
Joined: 2004-02-05
Points: 0

thank you very much for your effort. When I have more time, I will try again, if I find out the reason, I will post it.

jslott
Offline
Joined: 2006-01-05
Points: 0

When I run from the command-line I see the same errors as you. I believe they are meant to be started from Finder. (see https://lg3d-wonderland.dev.java.net/binary-builds.html). When I follow these instructions everything starts up fine.

klausb
Offline
Joined: 2004-02-05
Points: 0

hmm... I get the messages both from the commandline and when double-clicking the .command files in the finder.

jslott
Offline
Joined: 2006-01-05
Points: 0

Hmmmm...

Apache Ant version 1.7.0 compiled on August 25 2008

what's yours?

klausb
Offline
Joined: 2004-02-05
Points: 0

same: Apache Ant version 1.7.0 compiled on August 25 2008

jslott
Offline
Joined: 2006-01-05
Points: 0

It should work. I know that doesn't help you much... :)

Is there anyway to get the output from when you launch via Finder? (It should pop up a window, don't know if you can grab its output).

klausb
Offline
Joined: 2004-02-05
Points: 0

sure, 1st the bridge.command output, then the server.command output, separated by -----
-----
Last login: Tue Oct 28 15:29:18 on ttys000
/Applications/Wonderland.app/bridge.command ; exit;
[dhcp-emuc07-131-118:~] klaus% /Applications/Wonderland.app/bridge.command ; exit;
Executing: ant -lib "/Applications/Wonderland.app/Contents/Resources/ant/lib" -Dwl.root.dir="/Applications/Wonderland.app/Contents/Resources" -f "/Applications/Wonderland.app/Contents/Resources/ant/run.xml" run-bridge
Buildfile: /Applications/Wonderland.app/Contents/Resources/ant/run.xml

stop-bridge:
[java] Oct 28 16:20:41.728 Connecting to dhcp-emuc07-131-118.Germany.Sun.COM:6666

run-bridge:

BUILD FAILED
/Applications/Wonderland.app/Contents/Resources/ant/run.xml:301: Java returned: 139

Total time: 1 second
logout

[Prozess beendet]

-----
Last login: Tue Oct 28 16:20:39 on ttys000
[dhcp-emuc07-131-118:~] klaus% /Applications/Wonderland.app/server.command ; exit;
Executing: ant -lib "/Applications/Wonderland.app/Contents/Resources/ant/lib" -Dwl.root.dir="/Applications/Wonderland.app/Contents/Resources" -f "/Applications/Wonderland.app/Contents/Resources/ant/run.xml" run-server
Buildfile: /Applications/Wonderland.app/Contents/Resources/ant/run.xml

run-server:
[mkdir] Created dir: /Applications/Wonderland.app/Contents/Resources/data/Wonderland/dsdb
[copy] Copying 1 file to /Applications/Wonderland.app/Contents/Resources/ext/darkstar
[java] Java Result: 139

BUILD SUCCESSFUL
Total time: 0 seconds
logout

[Prozess beendet]
-----

jslott
Offline
Joined: 2006-01-05
Points: 0

Hmm, I think "Java returned: 139" means the JVM is crashing. What do you get when you run "uname -a"? (Are you PowerPC or x86?)

klausb
Offline
Joined: 2004-02-05
Points: 0

it's a Intel Macbook Pro:

% uname -a
Darwin hal9000 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386

% java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode)

technobuddhist
Offline
Joined: 2008-08-13
Points: 0

I assume you did this? http://wiki.java.net/bin/view/Javadesktop/MacJava3DRemoval

and what version of Java are you using? 1.5 or 1.6? I 'think' there's problems with 1.6 on Mac at least with WL anyway.

klausb
Offline
Joined: 2004-02-05
Points: 0

yes, I did the 3D removal. My Java is 1.5.0_16

technobuddhist
Offline
Joined: 2008-08-13
Points: 0

I'll d/l the dmg and see what happens for me.

technobuddhist
Offline
Joined: 2008-08-13
Points: 0

I reckon you must have a corrupt file. I double clicked the commands from finder and they are fine.

I suggest you re-download.

output from bridge.command
-------------------
Executing: ant -lib "/Users/Techno/Downloads/Wonderland.app/Contents/Resources/ant/lib" -Dwl.root.dir="/Users/Techno/Downloads/Wonderland.app/Contents/Resources" -f "/Users/Techno/Downloads/Wonderland.app/Contents/Resources/ant/run.xml" run-bridge
Buildfile: /Users/Techno/Downloads/Wonderland.app/Contents/Resources/ant/run.xml

stop-bridge:
[java] Oct 23 9:54:11.637 Connecting to MacBookPro:6666

run-bridge:
[java] Oct 23 9:54:12.655 Oct 23 9:54:12.654 could not open log file: ./log/bridge.log
[java] Oct 23 9:54:12.688 Built on Thu Aug 7 2008 12:35 PM
[java] Oct 23 9:54:12.688 Running java version 1.5.0_16
[java] Oct 23 9:54:12.688 OS Name = Mac OS X, OS Arch = i386, OS Version = 10.5.5
[java] Oct 23 9:54:12.688 user.dir = /Users/Techno/Downloads/Wonderland.app/Contents/Resources
[java] Oct 23 9:54:12.696 Using local host from InetAddress.getLocalHost(): n.n.n.n
[java] Oct 23 9:54:12.727 Bridge started in location 'LOC'
[java] Oct 23 9:54:12.727 Bridge server private control port: 6666
[java] Oct 23 9:54:12.908 There are no VoIP gateways. You cannot make calls to the phone system.
[java] Oct 23 9:54:12.908 If you want to use the phone system you can specify VoIP gateways with -Dcom.sun.voip.server.VoIPGateways.
[java] Oct 23 9:54:14.37
[java] Oct 23 9:54:14.37 Bridge private address: n.n.n.n
[java] Oct 23 9:54:14.37 Bridge private SIP port: 5060
[java] Oct 23 9:54:14.49 Bridge public address: n.n.n.n
[java] Oct 23 9:54:14.49 Bridge public SIP port: 5060
[java] Oct 23 9:54:14.53 Default SIP Proxy:
[java] Oct 23 9:54:14.53
[java] Oct 23 9:54:14.57 Initializing FreeTTSClient...
[java] System property "mbrola.base" is undefined. Will not use MBROLA voices.
[java] Oct 23 9:54:15.871 FreeTTSClient Initialization done...
[java] Oct 23 9:54:15.878 Searching for modules in /Users/Techno/Downloads/Wonderland.app/Contents/Resources/bridgeModules/
[java] Oct 23 9:54:15.878 module path '/Users/Techno/Downloads/Wonderland.app/Contents/Resources/bridgeModules/' is not a directory. Ignoring.
[java] Oct 23 9:54:15.880 Log file is ./log/bridge.log
[java] Oct 23 9:54:15.881
[java] Oct 23 9:54:15.881 The Bridge is initialized and Ready
[java] Oct 23 9:54:15.881
[java] Oct 23 9:54:15.904 Unable to notify localhost/127.0.0.1:6668 that a bridge is online: Connection refused
[java] Oct 23 9:54:15.904 Retrying once a second...

technobuddhist
Offline
Joined: 2008-08-13
Points: 0

You have to remember that this isn't production code, so an out of the box experience is not to be expected. That said, I did have a perfect ootbox experience on Windows.

I've never used WL from a standalone package so can't help.

I use Netbeans, imported WL from CVS(instructions here http://wiki.java.net/bin/view/Javadesktop/DownloadAndBuildSource).

Once downloaded, just right click the project and 'clean and build'.

From then one, just right click the project and choose 'Run Bridge' and 'Run SGS' to run the bridge and server.

Then right click and 'Run' to get your client and wonderful new world!

Message was edited by: technobuddhist

klausb
Offline
Joined: 2004-02-05
Points: 0

thanks for the comment, but I'm not building anything here but using the binary package for MacOSX, so I do not expect any build work to happen before I can start the server and client. The FAQ and existing posts do not suggest there would or could be a problem at this stage. Am I expecting too much when I expect a binary to start with a few clicks? Since so many developer are using a Mac also, it surprises me to stumble over such an obvious "feature".
That said, I would like to express also that I really love the videos and the creative ideas they trigger when watching them. I had not looked at Wonderland before and was really positively surprised what is possible with it.

technobuddhist
Offline
Joined: 2008-08-13
Points: 0

is it possibly a permissions issue?

try doing;

sudo ./bridge.command
sudo ./server.command

klausb
Offline
Joined: 2004-02-05
Points: 0

that was a good idea, but no: same result as before