Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007056opensim[REGION] OpenSim Corepublic2014-03-13 09:582014-03-22 13:07
Reportermaurizio55 
Assigned To 
PrioritynormalSeveritycrashReproducibilitysometimes
StatusnewResolutionopen 
PlatformMono version 2-10.8.1OSUbuntuOS Version12.04.4 LTS
Product Version 
Target VersionFixed in Version 
Summary0007056: crash while editing terrain
DescriptionOS sometimes crashes while editing terrain - no matter what viewer is used.
These crashes were frequent with lower ram (box had just 500 MB).
I was able just to capture this error. I may check if there is more info in the crash log.

...
  at Amib.Threading.Internal.WorkItem.Execute () <0x0003f>
  at Amib.Threading.SmartThreadPool.ExecuteWorkItem (Amib.Threading.Internal.WorkItem) <0x0009f>
  at Amib.Threading.SmartThreadPool.ProcessQueuedItems () <0x00537>
  at System.Threading.Thread.StartInternal () <0x00057>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono() [0x80e16fc]
        [0xaff8840c]
        [0xaff88416]
        /lib/i386-linux-gnu/libc.so.6(gsignal+0x4f) [0xafdad1df]
        /lib/i386-linux-gnu/libc.so.6(abort+0x175) [0xafdb0825]
        mono() [0x8223e56]
        mono() [0x82259f3]
        mono() [0x823805e]
        mono() [0x823810c]
        mono() [0x821f8da]
        mono() [0x821fc67]
        mono() [0x821fdfb]
        mono(mono_array_new_full+0x1d7) [0x81a6477]
        mono() [0x80ae3c9]
        [0xac6b0054]
        [0x96c726b8]
        [0x96c7256c]
        [0x98a20e17]
        [0xabe10cf7]
        [0xabe10cc5]
        [0xabe10ca4]
        [0xabe10b1c]
        [0xabe109b0]
        [0xabe10748]
        [0xaf0250f8]
        [0xaf01af38]
        [0xaf84e731]
        mono() [0x8064c2c]

Debug info from gdb:


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
Steps To Reproduceedit terrain several times with any viewer
TagsNo tags attached.
Git Revision or version number
Run Mode Standalone (Multiple Regions)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Linux64
Mono Version2.10
Viewerfirestorm-os
Attached Files

- Relationships

-  Notes
(0025440)
maurizio55 (reporter)
2014-03-13 10:07

After the crash, all the terrain info of the region is lost, and the terrain has been reset to default small circle island
(0025442)
Arielle (reporter)
2014-03-13 17:54

I have also had terrain info lost and reset to a pin head island on windows 7.
(0025443)
Mata Hari (reporter)
2014-03-13 17:59

I also had this happen recently though mine was mysteriously reset to a flat plain at z=15m
(0025448)
maurizio55 (reporter)
2014-03-15 12:06

It look like it has to do with memory, and the more it happens, the more it's likely to happen again, until I shut down the system. Just restarting opensim doesn't fix the problem, I have to restart the whole linux box, in order to get it working properly. This is probably suggesting that there is a substantial memory leak or unreleased resources from mono after each opensim crash due to the terrain editing issue.
(0025449)
Mata Hari (reporter)
2014-03-15 15:35

Or if you have a lot of mesh on your sim it might be related to 0006987 in some way
(0025454)
maurizio55 (reporter)
2014-03-16 12:58

no meshes at all
(0025455)
danbanner (manager)
2014-03-16 13:54

Try increasing MaxPoolThreads = 100 and see if that helps
(0025457)
Dev Random (reporter)
2014-03-16 18:59

I had been terraforming for a while (Single 512x512 var on Standalone), when the app exploded:

        mono() [0x80e16fc]
        mono() [0x81209fc]
        mono() [0x806094d]
        [0xb77c840c]
        mono() [0x821f4da]
        mono() [0x8237a00]
        mono() [0x8237d1a]
        mono() [0x823810c]
        mono() [0x82207ab]
        mono() [0x8226723]
        mono(mono_array_new_specific+0xa3) [0x81a55c3]
        [0xb58cbf38]
        [0xb22f3cf0]
        [0xb0dac22c]
        [0xb0dac1b4]
        [0xb0dacf70]
        [0xb0dac524]
        [0xb0dabf78]
        [0xb0dab9f0]
        [0xb0dab810]
        [0xb0d242f8]
        [0xb0d242bd]
        [0xb157adbf]
        [0xb157ad7c]
        [0xb115139c]
        [0xb1151160]
        [0xb1150cdb]
        [0xb1150bd8]
        [0xb157bda0]
        [0xb157b3f8]
        [0xb5058520]
        [0xb58d4889]
        mono() [0x8064c2c]

Debug info from gdb:

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================


OpenSim.log showed a string of errors prior to the incident, but the client (Singularity) showed no signs that errors had been occurring. The log file also shows (what I assume to be) successful edits after the errors.

2014-03-16 20:57:59,929 ERROR - OpenSim.Region.ClientStack.LindenUDP.LLClientView [LLCLIENTVIEW]: Caught exception while processing OpenMetaverse.Packets.ModifyLandPacket for Test User, Out of memory at (wrapper managed-to-native) object:__icall_wrapper_mono_array_new_2 (intptr,intptr,intptr)
  at OpenSim.Region.CoreModules.World.Terrain.PaintBrushes.SmoothSphere.PaintEffect (ITerrainChannel map, System.Boolean[,] mask, Double rx, Double ry, Double rz, Double strength, Double duration) [0x00000] in <filename unknown>:0
  at OpenSim.Region.CoreModules.World.Terrain.TerrainModule.client_OnModifyTerrain (UUID user, Single height, Single seconds, Byte size, Byte action, Single north, Single west, Single south, Single east, UUID agentId) [0x00000] in <filename unknown>:0
  at OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandlerModifyLand (IClientAPI sender, OpenMetaverse.Packets.Packet Pack) [0x00000] in <filename unknown>:0
  at OpenSim.Region.ClientStack.LindenUDP.LLClientView.ProcessSpecificPacketAsync (System.Object state) [0x00000] in <filename unknown>:0
2014-03-16 20:58:03,755 INFO - OpenSim.Data.MySQL.MySQLSimulationData [REGION DB MYSQL] Storing terrain. X=512, Y=512, rev=27
2014-03-16 20:58:03,799 DEBUG - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETSIM TERRAIN MANAGER] Terrain for Region00/<0, 0, 0> created with Heightmap
2014-03-16 20:58:21,627 INFO - OpenSim.Data.MySQL.MySQLSimulationData [REGION DB MYSQL] Storing terrain. X=512, Y=512, rev=27
2014-03-16 20:58:21,676 DEBUG - OpenSim.Region.Physics.BulletSPlugin.BSScene [BULLETSIM TERRAIN MANAGER] Terrain for Region00/<0, 0, 0> created with Heightmap
(0025524)
maurizio55 (reporter)
2014-03-22 13:07

thanks danbanner, that did the trick. Actually you can avoid crash even editing slowly, waiting the previous thread to be completed and the query done (checking the output) before doing further editing.

- Issue History
Date Modified Username Field Change
2014-03-13 09:58 maurizio55 New Issue
2014-03-13 10:07 maurizio55 Note Added: 0025440
2014-03-13 17:54 Arielle Note Added: 0025442
2014-03-13 17:59 Mata Hari Note Added: 0025443
2014-03-15 12:06 maurizio55 Note Added: 0025448
2014-03-15 15:35 Mata Hari Note Added: 0025449
2014-03-16 12:58 maurizio55 Note Added: 0025454
2014-03-16 13:54 danbanner Note Added: 0025455
2014-03-16 18:59 Dev Random Note Added: 0025457
2014-03-22 13:07 maurizio55 Note Added: 0025524


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker