MantisBT - opensim
View Issue Details
0005296opensim[REGION] Physics Enginespublic2011-01-03 08:062021-10-08 00:38
Tokeiito 
tampa 
highmajoralways
resolvedfixed 
master (dev code) 
 
 25ecd62
Grid (1 Region per Sim)
ODE
.NET / Windows32
None
Imprudence 1.3.0
0005296: Broken sculpties handling.
Uploading 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..
Sculpt map used is:

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

Basically its sculpt map you get from Blender Jass.
No tags attached.
duplicate of 0005093closed kenvc 0.7.1 Continual spewing of exception processing byte arrays in SculptMap() System.ArgumentOutOfRangeException 
? Rankena_Lauko.tga (2,944) 2011-01-03 13:30
http://opensimulator.org/mantis/file_download.php?file_id=2552&type=bug
Issue History
2011-01-03 08:06TokeiitoNew Issue
2011-01-03 08:06TokeiitoGit Revision => 25ecd62
2011-01-03 08:06TokeiitoSVN Revision => 0
2011-01-03 08:06TokeiitoRun Mode => Grid (Multiple Regions per Sim)
2011-01-03 08:06TokeiitoPhysics Engine => ODE
2011-01-03 08:06TokeiitoEnvironment => .NET / Windows32
2011-01-03 08:06TokeiitoMono Version => None
2011-01-03 08:06TokeiitoViewer => Imprudence 1.3.0
2011-01-03 08:16TokeiitoNote Added: 0017750
2011-01-03 08:19TokeiitoNote Added: 0017751
2011-01-03 13:29TokeiitoRun Mode Grid (Multiple Regions per Sim) => Grid (1 Region per Sim)
2011-01-03 13:29TokeiitoPrioritynormal => high
2011-01-03 13:29TokeiitoSummaryUploading and applying sculpt map, produces exception in console. => Broken sculpties handling.
2011-01-03 13:29TokeiitoDescription Updated
2011-01-03 13:29TokeiitoAdditional Information Updated
2011-01-03 13:30TokeiitoFile Added: Rankena_Lauko.tga
2011-01-03 14:07TokeiitoRelationship addedparent of 0005093
2011-01-03 14:11TokeiitoRelationship deletedparent of 0005093
2011-01-03 14:12TokeiitoRelationship addedduplicate of 0005093
2011-01-06 13:10rajidNote Added: 0017779
2011-01-06 13:18rajidNote Edited: 0017779
2021-10-08 00:38tampaStatusnew => resolved
2021-10-08 00:38tampaResolutionopen => fixed
2021-10-08 00:38tampaAssigned To => tampa

Notes
(0017750)
Tokeiito   
2011-01-03 08:16   
It seems that problem is with image uploading. It uploads or shows later incorrect image at all.
(0017751)
Tokeiito   
2011-01-03 08:19   
Problem is solved only after i selected use lossless compression.
(0017779)
rajid   
2011-01-06 13:10   
(edited on: 2011-01-06 13:18)
Setting "mesh_scuplted_prim=false" seems to stop it for me.