Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006740opensim[REGION] Specific OpenSim Modulepublic2013-08-15 06:332013-09-23 03:22
Reporteraiaustin 
Assigned ToRobert Adams 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformPCOperating SystemWindowsOperating System VersionViata
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006740: [BULLETS SCENE]: on region shutdown gives ProcessTaints: BSPrim.ForceBodyShapeRebuild: Exception: System.AccessViola
DescriptionUsing latest OSGrid add on region distribution (osgrid-opensim-08092013.v0.7.6.23ca1f8.zip)... with Physics set to Bulletsim on Openvue grid OpenVCE region... seeing new red errors and a yellow warning on every shutdown.

2013-08-15 14:28:38,162 INFO - OpenSim.Region.Framework.Scenes.Scene [SCENE]: Closing down the single simulator: OpenVCE
2013-08-15 14:28:38,225 DEBUG - OpenSim.Framework.Monitoring.Watchdog [WATCHDOG]: Removing thread Heartbeat (OpenVCE), ID 64
2013-08-15 14:28:38,552 DEBUG - OpenSim.Framework.Monitoring.Watchdog [WATCHDOG]: Removing thread Maintenance (OpenVCE), ID 70
2013-08-15 14:28:38,677 DEBUG - OpenSim.Region.Framework.Scenes.Scene [SCENE]: Persisting changed objects
2013-08-15 14:28:38,677 DEBUG - OpenSim.Services.GridService.GridService [GRID SERVICE]: Deregistering region OpenVCE (2a2c51ed-7846-4536-8503-dc332c6c0804) at 6400-6399
2013-08-15 14:28:42,015 ERROR - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETS SCENE]: ProcessTaints: BSPrim.ForceBodyShapeRebuild: Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at OpenSim.Region.Physics.BulletSPlugin.BSAPIUnman.BSAPICPP.RemoveObjectFromWorld2(IntPtr world, IntPtr obj)
   at OpenSim.Region.Physics.BulletSPlugin.BSAPIUnman.RemoveObjectFromWorld(BulletWorld world, BulletBody obj) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSAPIUnman.cs:line 671
   at OpenSim.Region.Physics.BulletSPlugin.BSShapeCollection.DereferenceBody(BulletBody body, PhysicalDestructionCallback bodyCallback) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSShapeCollection.cs:line 330
   at OpenSim.Region.Physics.BulletSPlugin.BSShapeCollection.CreateBody(Boolean forceRebuild, BSPhysObject prim, BulletWorld sim, PhysicalDestructionCallback bodyCallback) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSShapeCollection.cs:line 367
   at OpenSim.Region.Physics.BulletSPlugin.BSShapeCollection.GetBodyAndShape(Boolean forceRebuild, BulletWorld sim, BSPhysObject prim, PhysicalDestructionCallback bodyCallback) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSShapeCollection.cs:line 92
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.CreateGeomAndObject(Boolean forceRebuild) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 1524
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.<ForceBodyShapeRebuild>b__3() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 163
   at OpenSim.Region.Physics.BulletSPlugin.BSScene.ProcessRegularTaints() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSScene.cs:line 960
2013-08-15 14:28:42,031 ERROR - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETS SCENE]: ProcessTaints: BSPrim.ForceBodyShapeRebuild: Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.CreateGeomAndObject(Boolean forceRebuild) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 1524
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.<ForceBodyShapeRebuild>b__3() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 163
   at OpenSim.Region.Physics.BulletSPlugin.BSScene.ProcessRegularTaints() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSScene.cs:line 960
2013-08-15 14:28:42,031 ERROR - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETS SCENE]: ProcessTaints: BSPrim.ForceBodyShapeRebuild: Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.CreateGeomAndObject(Boolean forceRebuild) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 1524
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.<ForceBodyShapeRebuild>b__3() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 163
   at OpenSim.Region.Physics.BulletSPlugin.BSScene.ProcessRegularTaints() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSScene.cs:line 960
2013-08-15 14:28:42,031 ERROR - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETS SCENE]: ProcessTaints: BSPrim.ForceBodyShapeRebuild: Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.CreateGeomAndObject(Boolean forceRebuild) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 1524
   at OpenSim.Region.Physics.BulletSPlugin.BSPrim.<ForceBodyShapeRebuild>b__3() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSPrim.cs:line 163
   at OpenSim.Region.Physics.BulletSPlugin.BSScene.ProcessRegularTaints() in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSScene.cs:line 960
2013-08-15 14:28:42,031 WARN - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETS SCENE],PhysicsStep Exception: nTaints=248, substeps=0, updates=0, colliders=0, e=System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at OpenSim.Region.Physics.BulletSPlugin.BSAPIUnman.BSAPICPP.PhysicsStep2(IntPtr world, Single timeStep, Int32 maxSubSteps, Single fixedTimeStep, Int32& updatedEntityCount, Int32& collidersCount)
   at OpenSim.Region.Physics.BulletSPlugin.BSAPIUnman.PhysicsStep(BulletWorld world, Single timeStep, Int32 maxSubSteps, Single fixedTimeStep, Int32& updatedEntityCount, Int32& collidersCount) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSAPIUnman.cs:line 208
   at OpenSim.Region.Physics.BulletSPlugin.BSScene.DoPhysicsStep(Single timeStep) in k:\OSGRID\opensim-23ca1f8\OpenSim\Region\Physics\BulletSPlugin\BSScene.cs:line 590
2013-08-15 14:28:48,318 DEBUG - OpenSim.OpenSimBase [SHUTDOWN]: Shutting down region OpenVCE
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
Environment.NET / Windows32
Mono VersionNone
ViewerN/A
Attached Files

- Relationships

-  Notes
(0024292)
Robert Adams (administrator)
2013-08-27 10:47

Looks like there are some race conditions on shutdown. I updated 'master' with some checks to prevent the delayed 'taint' operations happening when the physics engine is being shutdown.

Why you have the errors while others do not is unclear from the above exceptions. There might be active objects that are creating and destroying often or possibly something odd with remote shutdown (I notice the log message from [GRID SERVICE]). In either case, try out the fixes.
(0024293)
aiaustin (developer)
2013-08-27 11:38
edited on: 2013-08-27 11:40

Thanks Robert... leave this Mantis open for now if you will and I will report here if I see any further message, and try to establish the context.

(0024385)
aiaustin (developer)
2013-09-23 01:09
edited on: 2013-09-30 05:52

A note that I am now seeing this type of error on STARTUP of an OSGrid add on region with the latest OSGrid distribution which I just installed... 53de6d94ea5e80b873864be32f1781bc2f7017c9 : [r/23651]

09:00:33 - [USER MANAGEMENT MODULE]: Caching creators' data from Vue-3200 (26 objects)...

-------- Summary error in OpenSim.exe console --------------

09:00:33 - [USER MANAGEMENT MODULE]: Caching creators' data from Vue-3200 (26 objects)...
09:00:33 - [BULLETS SCENE]: ProcessPostTaintTaints: BSLinksetCompound.ScheduleRebuild-2741399125: Exception: System.NullReferenceException: Object reference not set to an instance of an object.


-------- Full errror in OpenSim.log -----------------

2013-09-23 09:00:32,572 INFO - OpenSim.Region.Framework.Scenes.Scene [SCENE]: Loading objects from datastore
2013-09-23 09:00:33,384 DEBUG - OpenSim.Data.MySQL.MySQLSimulationData [REGION DB]: Loaded 26 objects using 494 prims
2013-09-23 09:00:33,415 DEBUG - OpenSim.Data.MySQL.MySQLSimulationData [REGION DB]: Loaded inventory from 32 objects
2013-09-23 09:00:33,415 INFO - OpenSim.Region.Framework.Scenes.Scene [SCENE]: Loaded 26 objects from the datastore
2013-09-23 09:00:33,477 DEBUG - OpenSim.Region.CoreModules.Framework.UserManagement.UserManagementModule [USER MANAGEMENT MODULE]: Caching creators' data from Vue-3200 (26 objects)...
2013-09-23 09:00:33,540 ERROR - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETS SCENE]: ProcessPostTaintTaints: BSLinksetCompound.ScheduleRebuild-2741399125: Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenSim.Region.Physics.BulletSPlugin.BSAPIUnman.AddChildShapeToCompoundShape(BulletShape shape, BulletShape addShape, Vector3 pos, Quaternion rot) in k:\OSGRID\opensim-53de6d9\OpenSim\Region\Physics\BulletSPlugin\BSAPIUnman.cs:line 350
   at OpenSim.Region.Physics.BulletSPlugin.BSLinksetCompound.<>c__DisplayClass3.<RecomputeLinksetCompound>b__2(BSPrimLinkable cPrim) in k:\OSGRID\opensim-53de6d9\OpenSim\Region\Physics\BulletSPlugin\BSLinksetCompound.cs:line 377
   at OpenSim.Region.Physics.BulletSPlugin.BSLinkset.ForEachMember(ForEachMemberAction action) in k:\OSGRID\opensim-53de6d9\OpenSim\Region\Physics\BulletSPlugin\BSLinkset.cs:line 205
   at OpenSim.Region.Physics.BulletSPlugin.BSLinksetCompound.RecomputeLinksetCompound() in k:\OSGRID\opensim-53de6d9\OpenSim\Region\Physics\BulletSPlugin\BSLinksetCompound.cs:line 356
   at OpenSim.Region.Physics.BulletSPlugin.BSLinksetCompound.<ScheduleRebuild>b__0() in k:\OSGRID\opensim-53de6d9\OpenSim\Region\Physics\BulletSPlugin\BSLinksetCompound.cs:line 112
   at OpenSim.Region.Physics.BulletSPlugin.BSScene.ProcessPostTaintTaints() in k:\OSGRID\opensim-53de6d9\OpenSim\Region\Physics\BulletSPlugin\BSScene.cs:line 1017

(0024389)
aiaustin (developer)
2013-09-23 03:22

And on a second openSim,.exe instance on startup with r/23682 I get these red error messages...

11:24:56 - [BULLETS SCENE]: ProcessPostTaintTaints: TerrainManager.SetTerrain-<0
, 0, 0>-0: Exception: System.AccessViolationException: Attempted to read or writ
e protected memory. This is often an indication that other memory is corrupt.
11:24:56 - [BULLETS SCENE]: ProcessPostTaintTaints: TerrainManager.SetTerrain-<0
, 0, 0>-0: Exception: System.AccessViolationException: Attempted to read or writ
e protected memory. This is often an indication that other memory is corrupt.
11:24:56 - [BULLETS SCENE]: ProcessPostTaintTaints: TerrainManager.SetTerrain-<0
, 0, 0>-0: Exception: System.AccessViolationException: Attempted to read or writ
e protected memory. This is often an indication that other memory is corrupt.

- Issue History
Date Modified Username Field Change
2013-08-15 06:33 aiaustin New Issue
2013-08-15 06:35 aiaustin Description Updated View Revisions
2013-08-15 06:35 aiaustin Description Updated View Revisions
2013-08-15 06:36 aiaustin Description Updated View Revisions
2013-08-15 13:44 aiaustin Description Updated View Revisions
2013-08-27 10:43 Robert Adams Assigned To => Robert Adams
2013-08-27 10:43 Robert Adams Status new => assigned
2013-08-27 10:47 Robert Adams Note Added: 0024292
2013-08-27 11:38 aiaustin Note Added: 0024293
2013-08-27 11:40 aiaustin Note Edited: 0024293 View Revisions
2013-08-27 11:40 aiaustin Note Edited: 0024293 View Revisions
2013-09-23 01:09 aiaustin Note Added: 0024385
2013-09-23 01:09 aiaustin Note Edited: 0024385 View Revisions
2013-09-23 01:10 aiaustin Note Edited: 0024385 View Revisions
2013-09-23 03:22 aiaustin Note Added: 0024389
2013-09-30 05:52 aiaustin Note Edited: 0024385 View Revisions


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker