Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005296opensim[REGION] Physics Enginespublic2011-01-03 08:062011-01-06 13:10
ReporterTokeiito 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0005296: Broken sculpties handling.
DescriptionUploading sculpty map without lossless compression produce error in console:

17:59:50 - [PHYSICS]: Caught exception processing byte arrays in SculptMap(): e:
 System.ArgumentOutOfRangeException: Parameter must be positive and < Width.
Parameter name: x
   at System.Drawing.Bitmap.GetPixel(Int32 x, Int32 y)
   at PrimMesher.SculptMap..ctor(Bitmap bm, Int32 lod) in d:\OSGRID\OSGRID 0.7 R
ELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMap.cs:line 109, Vo
id .ctor(System.Drawing.Bitmap, Int32), System.Exception: Caught exception proce
ssing byte arrays in SculptMap(): e: System.ArgumentOutOfRangeException: Paramet
er must be positive and < Width.
Parameter name: x
   at System.Drawing.Bitmap.GetPixel(Int32 x, Int32 y)
   at PrimMesher.SculptMap..ctor(Bitmap bm, Int32 lod) in d:\OSGRID\OSGRID 0.7 R
ELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMap.cs:line 109
   at PrimMesher.SculptMap..ctor(Bitmap bm, Int32 lod) in d:\OSGRID\OSGRID 0.7 R
ELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMap.cs:line 121
   at PrimMesher.SculptMesh._SculptMesh(Bitmap sculptBitmap, SculptType sculptTy
pe, Int32 lod, Boolean viewerMode, Boolean mirror, Boolean invert) in d:\OSGRID\
OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMesh.cs
:line 299
   at PrimMesher.SculptMesh..ctor(Bitmap sculptBitmap, SculptType sculptType, In
t32 lod, Boolean viewerMode, Boolean mirror, Boolean invert) in d:\OSGRID\OSGRID
 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMesh.cs:line
185
   at OpenSim.Region.Physics.Meshing.Meshmerizer.CreateMeshFromPrimMesher(String
 primName, PrimitiveBaseShape primShape, Vector3 size, Single lod) in d:\OSGRID\
OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\Meshmerizer.c
s:line 470
   at OpenSim.Region.Physics.Meshing.Meshmerizer.CreateMesh(String primName, Pri
mitiveBaseShape primShape, Vector3 size, Single lod, Boolean isPhysical) in d:\O
SGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\Meshmer
izer.cs:line 641
   at OpenSim.Region.Physics.OdePlugin.OdePrim.changeshape(Single timestamp) in
d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\OdePlugin\O
DEPrim.cs:line 2071
   at OpenSim.Region.Physics.OdePlugin.OdePrim.ProcessTaints(Single timestep) in
 d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\OdePlugin\
ODEPrim.cs:line 901
   at OpenSim.Region.Physics.OdePlugin.OdeScene.Simulate(Single timeStep) in d:\
OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\OdePlugin\OdeP
lugin.cs:line 2757
17:59:50 - [PHYSICS]: The scene reused a disposed PhysActor for Primitive/8f5569
d2-79dd-46df-93cf-802c06793d91! *waves finger*, Don't be evil. A couple of thin
gs can cause this. An improper prim breakdown(be sure to set prim_geom to zero
 after d.GeomDestroy! An improper buildup (creating the geom failed). Or, th
e Scene Reused a physics actor after disposing it.)
17:59:56 - [PHYSICS]: The scene reused a disposed PhysActor for Primitive/8f5569
d2-79dd-46df-93cf-802c06793d91! *waves finger*, Don't be evil. A couple of thin
gs can cause this. An improper prim breakdown(be sure to set prim_geom to zero
 after d.GeomDestroy! An improper buildup (creating the geom failed). Or, th
e Scene Reused a physics actor after disposing it.)

----------------------------------

When sculpty is uploaded with lossless compression, upon sim restart console is spamed with error messages:

----------------------------------

2011-01-03 23:18:36,472 ERROR - OpenSim.Region.Physics.OdePlugin.OdeScene.Dakotija [PHYSICS]: Caught exception processing byte arrays in SculptMap(): e: System.ArgumentOutOfRangeException: Parameter must be positive and < Width.
Parameter name: x
   at System.Drawing.Bitmap.GetPixel(Int32 x, Int32 y)
   at PrimMesher.SculptMap..ctor(Bitmap bm, Int32 lod) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMap.cs:line 109, Void .ctor(System.Drawing.Bitmap, Int32), System.Exception: Caught exception processing byte arrays in SculptMap(): e: System.ArgumentOutOfRangeException: Parameter must be positive and < Width.
Parameter name: x
   at System.Drawing.Bitmap.GetPixel(Int32 x, Int32 y)
   at PrimMesher.SculptMap..ctor(Bitmap bm, Int32 lod) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMap.cs:line 109
   at PrimMesher.SculptMap..ctor(Bitmap bm, Int32 lod) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMap.cs:line 121
   at PrimMesher.SculptMesh._SculptMesh(Bitmap sculptBitmap, SculptType sculptType, Int32 lod, Boolean viewerMode, Boolean mirror, Boolean invert) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMesh.cs:line 299
   at PrimMesher.SculptMesh..ctor(Bitmap sculptBitmap, SculptType sculptType, Int32 lod, Boolean viewerMode, Boolean mirror, Boolean invert) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\SculptMesh.cs:line 185
   at OpenSim.Region.Physics.Meshing.Meshmerizer.CreateMeshFromPrimMesher(String primName, PrimitiveBaseShape primShape, Vector3 size, Single lod) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\Meshmerizer.cs:line 470
   at OpenSim.Region.Physics.Meshing.Meshmerizer.CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, Single lod, Boolean isPhysical) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\Meshing\Meshmerizer.cs:line 641
   at OpenSim.Region.Physics.OdePlugin.OdePrim.changeadd(Single timestep) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\OdePlugin\ODEPrim.cs:line 1435
   at OpenSim.Region.Physics.OdePlugin.OdePrim.ProcessTaints(Single timestep) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\OdePlugin\ODEPrim.cs:line 866
   at OpenSim.Region.Physics.OdePlugin.OdeScene.Simulate(Single timeStep) in d:\OSGRID\OSGRID 0.7 RELEASES\opensim-25ecd62\OpenSim\Region\Physics\OdePlugin\OdePlugin.cs:line 2757

---------------------------------------

Couse that its impossible to load simulator. The only way to fix that is to clear assetcache, but upon that all sculpty maps will be damaged and will require reupload..
Additional InformationSculpt map used is:

32x32, tga, does not contains resolution (DPI) information, Compression: Run Length Encoding.

Basically its sculpt map you get from Blender Jass.
TagsNo tags attached.
Git Revision or version number 25ecd62
Run Mode Grid (1 Region per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows32
Mono VersionNone
ViewerImprudence 1.3.0
Attached Files? file icon Rankena_Lauko.tga [^] (2,944 bytes) 2011-01-03 13:30

- Relationships
duplicate of 0005093closedkenvc 0.7.1 Continual spewing of exception processing byte arrays in SculptMap() System.ArgumentOutOfRangeException 

-  Notes
(0017750)
Tokeiito (reporter)
2011-01-03 08:16

It seems that problem is with image uploading. It uploads or shows later incorrect image at all.
(0017751)
Tokeiito (reporter)
2011-01-03 08:19

Problem is solved only after i selected use lossless compression.
(0017779)
rajid (reporter)
2011-01-06 13:10
edited on: 2011-01-06 13:18

Setting "mesh_scuplted_prim=false" seems to stop it for me.


- Issue History
Date Modified Username Field Change
2011-01-03 08:06 Tokeiito New Issue
2011-01-03 08:06 Tokeiito Git Revision => 25ecd62
2011-01-03 08:06 Tokeiito SVN Revision => 0
2011-01-03 08:06 Tokeiito Run Mode => Grid (Multiple Regions per Sim)
2011-01-03 08:06 Tokeiito Physics Engine => ODE
2011-01-03 08:06 Tokeiito Environment => .NET / Windows32
2011-01-03 08:06 Tokeiito Mono Version => None
2011-01-03 08:06 Tokeiito Viewer => Imprudence 1.3.0
2011-01-03 08:16 Tokeiito Note Added: 0017750
2011-01-03 08:19 Tokeiito Note Added: 0017751
2011-01-03 13:29 Tokeiito Run Mode Grid (Multiple Regions per Sim) => Grid (1 Region per Sim)
2011-01-03 13:29 Tokeiito Priority normal => high
2011-01-03 13:29 Tokeiito Summary Uploading and applying sculpt map, produces exception in console. => Broken sculpties handling.
2011-01-03 13:29 Tokeiito Description Updated
2011-01-03 13:29 Tokeiito Additional Information Updated
2011-01-03 13:30 Tokeiito File Added: Rankena_Lauko.tga
2011-01-03 14:07 Tokeiito Relationship added parent of 0005093
2011-01-03 14:11 Tokeiito Relationship deleted parent of 0005093
2011-01-03 14:12 Tokeiito Relationship added duplicate of 0005093
2011-01-06 13:10 rajid Note Added: 0017779
2011-01-06 13:18 rajid Note Edited: 0017779


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker