[Opensim-dev] OpenSim on Mac G5

Charles Krinke cfk at pacbell.net
Tue Nov 25 02:41:50 UTC 2008


Dear Jhurliman:

Thank you for collaborating with me a little bit while I work through some Linux on PPC details.

First of all, a uname -a does say ppc64 on this Mac G5 with Fedora 9 installed, so I will assume it is 64bit. 

Next, I did download opensim-libs from the opensimulator.org svn and have a 'LibOMV_2362" directory and did build its contents and do have a openjpeg-dotnet.dll which I copied to the opensim/bin working directory. When I invoke "mono --debug OpenSim.exe", I can however see a System.DllNotFoundException on openjpeg-dotnet.dll, even though it came from the LibOMV_2362 compilation. The region does go through the normal startup and actually begins to start a logon, but we'll get to that in a minute.

I did try 'mono openjpeg-dotnet.dll' and mono tells me "Cannot open assumbly openjpeg-dotnet.dll". It is readable and executable. I can do a 'mono Ode.NET.dll' and mono tells me "Assembly Ode.NET.dll doesn't have an entry point", so I assume mono is setup up reasonably correctly.

Here is an attempt to logon to the region "Mac Land" which is connected to OSGrid with this Mac. Sorry about the long copy. This was done with "export MONO_LOG_LEVEL=debug" followed by "mono --debug OpenSim.exe" and the region was up to its normal console prompt with the associate openjpeg-dotnet.dll exception noted earlier.

Hopefully, this might trigger an idea that I can try next.

Thank you again for your support. Charles

18:38:30 - [CLIENT]: Told by user service to prepare for a connection from Charles Krinkeb b88323a6-d074-4900-9d60-356fc4cd25da, circuit 381494294
18:38:30 - [CLIENT]: Main agent detected
18:38:30 - [CONNECTION DEBUGGING]: Adding NewUserConnection for b88323a6-d074-4900-9d60-356fc4cd25da with CC of 381494294
18:38:30 - [CAPS]: Setting up CAPS handler for root agent b88323a6-d074-4900-9d60-356fc4cd25da in Mac Land
18:38:30 - [SEED]: /CAPS/4b6dac43-7f74-49e0-bf51-c3cf35660000/
18:38:30 - [EVENTQUEUE]: OnRegisterCaps: agentID b88323a6-d074-4900-9d60-356fc4cd25da caps OpenSim.Framework.Communications.Capabilities.Caps region Mac Land
18:38:30 - [EVENTQUEUE]: Using random UUID!
18:38:30 - [EVENTQUEUE]: CAPS URL: /CAPS/EQG/7f4aa4cb-6c80-4044-808e-8fa42271f892/
18:38:30 - [CAPS]: Registering handler for "EventQueueGet": path /CAPS/EQG/7f4aa4cb-6c80-4044-808e-8fa42271f892/
18:38:30 - [CAPS]: Registering handler for "RemoteParcelRequest": path /CAPS/4b6dac43-7f74-49e0-bf51-c3cf35660009/
18:38:30 - [VOICE]: OnRegisterCaps: agentID b88323a6-d074-4900-9d60-356fc4cd25da caps OpenSim.Framework.Communications.Capabilities.Caps
18:38:31 - [CAPS]: Registering handler for "MapLayer": path /CAPS/4b6dac43-7f74-49e0-bf51-c3cf35660001/
18:38:33 - [CAPS]: Seed Caps Request in region: Mac Land
18:38:35 - [EVENTQUEUE]: Adding new queue for agent b88323a6-d074-4900-9d60-356fc4cd25da in region Mac Land
18:38:35 - [CONNECTION DEBUGGING]: AddNewClient Called
18:38:35 - [CLIENT]: Got authenticated connection from 67.120.11.68:39736
18:38:35 - [CLIENT]: Adding new circuit for agent b88323a6-d074-4900-9d60-356fc4cd25da, circuit code 381494294
Mono-INFO: Assembly Ref addref OpenSim.Region.ClientStack.LindenUDP 0x1070dd78 -> System.Xml 0x1032fae8: 25

18:38:35 - [CLIENT]: Dropped Malformed Packet due to MalformedDataException:   at OpenMetaverse.Packets.RequestImagePacket+RequestImageBlock.FromBytes (System.Byte[] bytes, System.Int32& i) [0x00000] 
  at OpenMetaverse.Packets.RequestImagePacket.FromBytes (System.Byte[] bytes, System.Int32& i, System.Int32& packetEnd, System.Byte[] zeroBuffer) [0x00000] 
  at OpenSim.Framework.PacketPool.GetPacket (System.Byte[] bytes, System.Int32& packetEnd, System.Byte[] zeroBuffer) [0x00029] in /home/ckrinke/svn/opensim/OpenSim/Framework/PacketPool.cs:124 
  at OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.OnReceivedData (IAsyncResult result) [0x00058] in /home/ckrinke/svn/opensim/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs:207 
18:38:35 - [CLIENT]: Dropped Malformed Packet due to MalformedDataException:   at OpenMetaverse.Packets.ViewerEffectPacket+EffectBlock.FromBytes (System.Byte[] bytes, System.Int32& i) [0x00000] 
  at OpenMetaverse.Packets.ViewerEffectPacket.FromBytes (System.Byte[] bytes, System.Int32& i, System.Int32& packetEnd, System.Byte[] zeroBuffer) [0x00000] 
  at OpenSim.Framework.PacketPool.GetPacket (System.Byte[] bytes, System.Int32& packetEnd, System.Byte[] zeroBuffer) [0x00029] in /home/ckrinke/svn/opensim/OpenSim/Framework/PacketPool.cs:124 
  at OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.OnReceivedData (IAsyncResult result) [0x00058] in /home/ckrinke/svn/opensim/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs:207 
18:38:35 - [SCENE]: Adding new child agent Charles Krinkeb b88323a6-d074-4900-9d60-356fc4cd25da in Mac Land
18:38:35 - [USER CACHE]: Adding user profile for b88323a6-d074-4900-9d60-356fc4cd25da
18:38:36 - [APPEARANCE]: Problem fetching appearance for avatar Charles Krinkeb, System.ArgumentException: Value does not fall within the expected range.
  at System.Array.Reverse (System.Array array, Int32 index, Int32 length) [0x00127] in /builddir/build/BUILD/mono-1.9.1/mcs/class/corlib/System/Array.cs:1235 
  at OpenMetaverse.Utils.BytesToFloat (System.Byte[] bytes, Int32 pos) [0x00000] 
  at OpenMetaverse.Primitive+TextureEntry.FromBytes (System.Byte[] data, Int32 pos, Int32 length) [0x00000] 
  at OpenMetaverse.Primitive+TextureEntry..ctor (System.Byte[] data, Int32 pos, Int32 length) [0x00000] 
  at OpenSim.Framework.AvatarAppearance..ctor (System.Collections.Hashtable h) [0x00067] in /home/ckrinke/svn/opensim/OpenSim/Framework/AvatarAppearance.cs:390 
  at OpenSim.Region.Communications.OGS1.OGS1UserServices.ConvertXMLRPCDataToAvatarAppearance (System.Collections.Hashtable data) [0x00059] in /home/ckrinke/svn/opensim/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs:176 
  at OpenSim.Region.Communications.OGS1.OGS1UserServices.GetUserAppearance (UUID user) [0x0005f] in /home/ckrinke/svn/opensim/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs:812 
  at OpenSim.Region.Environment.Modules.Avatar.AvatarFactory.AvatarFactoryModule.TryGetAvatarAppearance (UUID avatarId, OpenSim.Framework.AvatarAppearance& appearance) [0x0001d] in /home/ckrinke/svn/opensim/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs:56 
  at OpenSim.Region.Environment.Scenes.Scene.GetAvatarAppearance (IClientAPI client, OpenSim.Framework.AvatarAppearance& appearance) [0x00012] in /home/ckrinke/svn/opensim/OpenSim/Region/Environment/Scenes/Scene.cs:2575 
18:38:36 - [APPEARANCE]: Appearance not found, returning default
18:38:36 - [EVENTQUEUE]: New client b88323a6-d074-4900-9d60-356fc4cd25da detected in region Mac Land
18:38:36 - [GROUP]: Adding Charles Krinkeb to OpenSimulator Testing 
18:38:36 - [CLIENT]: Entered main packet processing loop for Charles Krinkeb
Mono-INFO: Assembly Ref addref OpenSim.Framework.Communications 0x104b0d90 -> OpenMetaverse 0x10702080: 8

18:38:36 - [SCENE]: Upgrading child to root agent for Charles Krinkeb in Mac Land
18:38:36 - [EVENTQUEUE]: Avatar b88323a6-d074-4900-9d60-356fc4cd25da entering parcel 1 in region Mac Land.
18:38:36 - [SUN]: Initial update for new client
18:38:36 - [WIND]: Initial update for new client
18:38:36 - [FRIEND]: Claiming Charles Krinkeb in region:8046226093938176.
18:38:37 - [APPEARANCE]: Problem fetching appearance for avatar Charles Krinkeb, System.ArgumentException: Value does not fall within the expected range.
  at System.Array.Reverse (System.Array array, Int32 index, Int32 length) [0x00127] in /builddir/build/BUILD/mono-1.9.1/mcs/class/corlib/System/Array.cs:1235 
  at OpenMetaverse.Utils.BytesToFloat (System.Byte[] bytes, Int32 pos) [0x00000] 
  at OpenMetaverse.Primitive+TextureEntry.FromBytes (System.Byte[] data, Int32 pos, Int32 length) [0x00000] 
  at OpenMetaverse.Primitive+TextureEntry..ctor (System.Byte[] data, Int32 pos, Int32 length) [0x00000] 
  at OpenSim.Framework.AvatarAppearance..ctor (System.Collections.Hashtable h) [0x00067] in /home/ckrinke/svn/opensim/OpenSim/Framework/AvatarAppearance.cs:390 
  at OpenSim.Region.Communications.OGS1.OGS1UserServices.ConvertXMLRPCDataToAvatarAppearance (System.Collections.Hashtable data) [0x00059] in /home/ckrinke/svn/opensim/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs:176 
  at OpenSim.Region.Communications.OGS1.OGS1UserServices.GetUserAppearance (UUID user) [0x0005f] in /home/ckrinke/svn/opensim/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs:812 
  at OpenSim.Region.Environment.Modules.Avatar.AvatarFactory.AvatarFactoryModule.TryGetAvatarAppearance (UUID avatarId, OpenSim.Framework.AvatarAppearance& appearance) [0x0001d] in /home/ckrinke/svn/opensim/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs:56 
  at OpenSim.Region.Environment.Scenes.Scene.GetAvatarAppearance (IClientAPI client, OpenSim.Framework.AvatarAppearance& appearance) [0x00012] in /home/ckrinke/svn/opensim/OpenSim/Region/Environment/Scenes/Scene.cs:2575 
18:38:37 - [APPEARANCE]: Appearance not found, returning default
Mono-INFO: Assembly Ref addref OpenSim.Region.Communications.OGS1 0x10860f38 -> OpenSim.Framework.Statistics 0x104ab200: 6

18:38:37 - [OGS1 INVENTORY SERVICE]: Requesting inventory from http://osgrid.org:8004/GetInventory/ for user b88323a6-d074-4900-9d60-356fc4cd25da
18:38:37 - [CAPS]: Setting up CAPS handler for root agent b88323a6-d074-4900-9d60-356fc4cd25da in Mac Land
18:38:37 - [SEED]: /CAPS/4b6dac43-7f74-49e0-bf51-c3cf35660000/
18:38:37 - [EVENTQUEUE]: OnRegisterCaps: agentID b88323a6-d074-4900-9d60-356fc4cd25da caps OpenSim.Framework.Communications.Capabilities.Caps region Mac Land
18:38:37 - [EVENTQUEUE]: Found Existing UUID!
18:38:37 - [EVENTQUEUE]: CAPS URL: /CAPS/EQG/7f4aa4cb-6c80-4044-808e-8fa42271f892/
18:38:37 - [CAPS]: Registering handler for "EventQueueGet": path /CAPS/EQG/7f4aa4cb-6c80-4044-808e-8fa42271f892/
18:38:37 - [CAPS]: Registering handler for "RemoteParcelRequest": path /CAPS/4b6dac43-7f74-49e0-bf51-c3cf35660009/
18:38:37 - [VOICE]: OnRegisterCaps: agentID b88323a6-d074-4900-9d60-356fc4cd25da caps OpenSim.Framework.Communications.Capabilities.Caps
18:38:37 - [CAPS]: Registering handler for "MapLayer": path /CAPS/4b6dac43-7f74-49e0-bf51-c3cf35660001/
18:38:37 - [WORLDMAP]: MakeRootAgent Works!
18:38:37 - [WorldMap]: Starting remote MapItem request thread
18:38:38 - [APPEARANCE]: Sending appearance to all other agents for Charles Krinkeb
Stacktrace:


Native stacktrace:

    mono [0x1014224c]
    mono [0x10148a3c]
    [0x100370]
    [0xf6764120]
    mono(mono_compile_method+0x24) [0x10045b54]
    mono [0x10167ab4]
    [0xf7ce6114]
    [0xf28bb594]
    [0xf28bb484]
    [0xf2c28044]
    [0xf2c335e8]
    [0xf2c32c10]
    [0xf3078be0]
    [0xf672a690]
    mono [0x1012c548]
    mono(mono_runtime_delegate_invoke+0x54) [0x10045214]
    mono [0x10086d4c]
    mono [0x100e6ff0]
    mono [0x10105b98]
    /lib/libpthread.so.0 [0xf1b6e3c]
    /lib/libc.so.6(clone+0x84) [0xf40b710]
18:38:39 - [CLIENT]: Dropped Malformed Packet due to MalformedDataException:   at OpenMetaverse.Packets.RequestImagePacket+RequestImageBlock.FromBytes (System.Byte[] bytes, System.Int32& i) [0x00000] 
  at OpenMetaverse.Packets.RequestImagePacket.FromBytes (System.Byte[] bytes, System.Int32& i, System.Int32& packetEnd, System.Byte[] zeroBuffer) [0x00000] 
  at OpenSim.Framework.PacketPool.GetPacket (System.Byte[] bytes, System.Int32& packetEnd, System.Byte[] zeroBuffer) [0x00029] in /home/ckrinke/svn/opensim/OpenSim/Framework/PacketPool.cs:124 
  at OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.OnReceivedData (IAsyncResult result) [0x00058] in /home/ckrinke/svn/opensim/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs:207 

Debug info from gdb:

(no debugging symbols found)
(






________________________________
From: "Hurliman, John" <john.hurliman at intel.com>
To: "opensim-dev at lists.berlios.de" <opensim-dev at lists.berlios.de>
Sent: Sunday, November 23, 2008 11:55:11 PM
Subject: Re: [Opensim-dev] OpenSim on Mac G5

 
Somewhere in the output of “uname -a" you should be
able to tell if it’s a 32-bit or 64-bit Linux OS. If you paste the thread
spew into e-mail I can take a peek to see if it is something with
libopenjpeg-dotnet.dll or not. I recently found out that using OpenJPEG is *not*
threadsafe, and locking needs to happen in OpenJpeg.cs inside libomv. Watch for
an updated release soon.
 
John
 
From:opensim-dev-bounces at lists.berlios.de
[mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Charles
Krinke
Sent: Sunday, November 23, 2008 4:52 PM
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] OpenSim on Mac G5
 
Sorry,
JHurliman, that didnt quite come out the way I had intended.

I loaded Linux on a seperate partition of this Mac as that seemed the most
straightforward way to get it functioning as an OpenSim server. After this is
figured out, I can then extend the notions to the OS X partition by rebooting
the server.

So, this is an experiment to see how far our OpenSim notions can be extended.
It is certainly not a complaint of any sort. It just seemed this was a good
weekend to attempt to get some progress in the Mac and 64bit notions.

Charles
 

________________________________
 
From:Charles Krinke <cfk at pacbell.net>
To: opensim-dev at lists.berlios.de
Sent: Sunday, November 23, 2008 4:42:32 PM
Subject: Re: [Opensim-dev] OpenSim on Mac G5
Well, this
Mac G5 has had Fedora 9 Linux installed by me, so I dont think the dylib's
affect the situation.

I have been able to compile openjpeg-dotnet.dll from our svn and can get the
"Mac Land" region up and running on OSGrid. The issue currently is
that the region crashes with a mono thread spew when a login occurs. It looks
like mono threads are getting wrapped all around each other as the crash occurs
at different times in the login process.

For today, I am calling success at getting Linux installed, the source compiled
with mono/nant and the region inserting itself into the grid. Fedora 9 comes
with mono-1.9.1, which is just about the latest. 

I am a little puzzled as to whether the system is running as 32bit or 64bit in
Linux. Is there any way to tell? Although the install DVD iso image comes only
one way, I assume it is 64bit. 

So, some puzzles are solved and a few others are surfacing.

Charles
 

________________________________
 
From:"Hurliman, John"
<john.hurliman at intel.com>
To: "opensim-dev at lists.berlios.de"
<opensim-dev at lists.berlios.de>
Sent: Sunday, November 23, 2008 1:13:39 PM
Subject: Re: [Opensim-dev] OpenSim on Mac G5
OSX uses .dylib
files for unmanaged (non-.NET)
code, not .dll or .so. I would say make sure you have
libopenjpeg-2.1.3.0-dotnet-1.dylib (or something like that) but the fact that
Mono is trying to access openjpeg-dotnet.dll means the DllMap seems to have
failed. Make sure you have OpenMetaverse.dll.config in that directory, and that
it contains a DllMap entry from openjpeg-dotnet.dll to the actual .dylib binary
in your bin/ directory.
 
On a side note,
I’ve been looking into a fully managed JPEG2000 codec. It’s quite a ways from
complete right now (and certainly slower than unmanaged code), but might prove
useful for certain specific tasks.
 
John
 
From:opensim-dev-bounces at lists.berlios.de
[mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Charles
Krinke
Sent: Sunday, November 23, 2008 11:34 AM
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] OpenSim on Mac G5
 
To amplify a tiny bit, the exception says basically:

System.DllNotFoundException: openjpeg-dotnet.dll.

The issue right now seems to be that an "ls open* -la" shows this
file exists and is marked executable. So, I think there may be an underlying
.so that is non existent at this point.

$ ls open*.dll -la
-rwxrwxr-x 1 ckrinke ckrinke 196608 2008-11-23 11:03 openjpeg-dotnet.dll
[

On a functioning x86 server, I can see libopenjpeg-1.0.0.so and other files that are not on this
Mac G5 in our opensim/bin/ directory. I did try copying the the files from
/usr/lib that appear to be concerned with jpeg to our opensim/bin directory
like this:

$ cp /usr/lib/libjp*.so* .

And the region still has the same System.DllNotFoundException.

So, anyone that can shed a little light on this puzzle would help me get some
additional testing setup.

Charles



________________________________
 
From:Charles Krinke <cfk at pacbell.net>
To: opensim-dev at lists.berlios.de
Sent: Sunday, November 23, 2008 11:26:18 AM
Subject: [Opensim-dev] OpenSim on Mac G5
I have a Mac G5 available for testing
for a little while and have installed Fedora 9 on it.

I can get OpenSim.exe compiled and the region up on OSGrid. There are a couple
of issues. One solved, one not solved.

ODE: Using our wiki, I was able to make ODE. I observe that we seem to need to
initialize ODE even when ODE is not specified in the OpenSim.ini file. We might
want to eliminate that dependency.

The region does come up, but has a jpeg exception which is at the end of this
email. At this point, I am a little puzzled with our various jpeg .so, .dll and
such that are in svn. Looks like we are supplying an x86 version binary from
svn.

In any case, a little help in getting past this jpeg exception would let me get
to where we can test a bit more on a 64bit Mac G5.

10:47:04 - [MAPTILE]: Generating Maptile Step 1: Terrain
10:47:04 - [MAPTILE]: Generating Maptile Step 1: Done in 82 ms
10:47:04 - [MAPTILE]: Generating Maptile Step 2: Object Volume Profile
10:47:04 - [MAPTILE]: Generating Maptile Step 2: Done in 21 ms
Failed generating terrain map: System.DllNotFoundException: openjpeg-dotnet.dll
  at (wrapper managed-to-native)
OpenMetaverse.Imaging.OpenJPEG:DotNetAllocDecoded
(OpenMetaverse.Imaging.OpenJPEG/MarshalledImage&)
  at OpenMetaverse.Imaging.OpenJPEG.Encode (OpenMetaverse.Imaging.ManagedImage
image, Boolean lossless) [0x00000] 
  at OpenMetaverse.Imaging.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap
bitmap, Boolean lossless) [0x00000] 
  at
OpenSim.Region.Environment.Modules.World.WorldMap.MapImageModule.WriteJpeg2000Image
(System.String gradientmap) [0x000bb] in
/home/ckrinke/svn/opensim/OpenSim/Region/Environment/Modules/World/WorldMap/MapImageModule.cs:119 
10:47:04 - [OGS1 GRID SERVICES]: Attempting to register region Mac Land with
grid at http://osgrid.org:8001
10:47:05 - [OGS1 GRID SERVICES]: Region Mac Land successfully registered with
grid at http://osgrid.org:8001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20081124/1e2199ee/attachment-0001.html>


More information about the Opensim-dev mailing list