Closed SargeMisfit closed 9 years ago
The 'found no terrain' is concerning.. It looks like large terrains are not being saved correctly.
On to it...
Problem was non optimised code that was a memory hog, particularly with larger regions. This has been corrected with the latest terrain updates
Leaving this open for now as I have noticed a few other 'funnies' that need checking out
This is why I designed Excelsior Station with such a large region. I imagine that others will come along in the future and will go even larger.
All sorted so closing
Cool. Busy time so I'll compile and check by the weekend
On Wed, Dec 17, 2014 at 3:48 PM, Rowan Deppeler notifications@github.com wrote:
All sorted so closing
— Reply to this email directly or view it on GitHub https://github.com/WhiteCoreSim/WhiteCore-Dev/issues/111#issuecomment-67418802 .
Updated my localhost instance to the SnapShot of Dec 5. Got red error System Out Of Memory messages on console related to the terrain. Logged in and found that the terrain was missing and I was standing at a Z of 0. Got more error messages when I shut down the instance. Here is the log:
Dec 06 06:00:17 - ==================================================================== Dec 06 06:00:17 - ==================== STARTING WhiteCore (x86) ====================== Dec 06 06:00:17 - ==================================================================== Dec 06 06:00:17 - [WhiteCoreStartup]: Version: WhiteCore 0.9.3 Dev (2014-12-05.75eacf9)
Dec 06 06:00:17 - [Network]: Network IP address has been set to 127.0.0.1 Dec 06 06:00:17 - [BASE HTTP SERVER]: Starting HTTP server on port 9000 Dec 06 06:00:18 - [SMTP] Email enabled for Local only Dec 06 06:00:18 - [BASE HTTP SERVER]: Starting HTTP server on port 8005 Dec 06 06:00:18 - [Error]: The file '../Data\ToS.txt' cannot be found. Dec 06 06:00:18 - Unable to locate the Terms of Service file : 'ToS.txt' Dec 06 06:00:18 - Show 'Terms of Service' for a new user login is disabled! Dec 06 06:00:18 - Creating system real estate user 'Governor Ruth' Dec 06 06:00:18 - [AUTHENTICATION DB]: Set password for principalID bbb55499-7938-4752-ab7c-f7136e36cced Dec 06 06:00:18 - [USER ACCOUNT SERVICE]: Account Governor Ruth created successfully Dec 06 06:00:18 - The password for 'Governor Ruth' is : Fock5Werv Dec 06 06:00:18 - The system real estate user has been elevated to 'Liason' level Dec 06 06:00:18 - [LIBRARY INVENTORY]: Found previously loaded iar file DefaultInventory/DefaultInventory.iar, ignoring. Dec 06 06:00:18 - Looking for previous sims in: ../Data/Region Dec 06 06:00:18 - Found: Excelsior Station Dec 06 06:00:18 - Found: WorkShop Dec 06 06:00:18 - [FileBasedSimulationData]: Restoring sim backup for region Excelsior Station... Dec 06 06:00:23 - [FileBasedSimulationData]: Restoring sim backup for region WorkShop... Dec 06 06:00:23 - [SceneManager]: Starting region "Excelsior Station" at @ 1000,1000 Dec 06 06:00:23 - [TERRAIN]: No default terrain. Generating a new terrain. Dec 06 06:00:32 - [TERRAIN]: Scene.cs: LoadWorldMap() - Failed with exception System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at WhiteCore.Framework.SceneInfo.PerlinNoise.GetEmptyArray[T](Int32 width, Int32 height) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 121 at WhiteCore.Framework.SceneInfo.PerlinNoise.GenerateSmoothNoise(Single[][] baseNoise, Int32 octave) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 132 at WhiteCore.Framework.SceneInfo.PerlinNoise.GeneratePerlinNoise(Single[][] baseNoise, Int32 octaveCount) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 179 at WhiteCore.Framework.SceneInfo.PerlinNoise.GeneratePerlinNoise(Int32 width, Int32 height, Int32 octaveCount) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 219 at WhiteCore.Framework.SceneInfo.PerlinNoise.GenerateHeightMap(Int32 width, Int32 height, Int32 octaveCount, Single min, Single max, Int32 smoothing) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 655 at WhiteCore.Framework.SceneInfo.TerrainChannel.CreateMainlandTerrain(Single minHeight, Single maxHeight, Int32 smoothing) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainChannel.cs:line 401 at WhiteCore.Framework.SceneInfo.TerrainChannel.CreateDefaultTerrain(String landType) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainChannel.cs:line 314 at WhiteCore.Framework.SceneInfo.TerrainChannel..ctor(IScene scene) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainChannel.cs:line 54 at WhiteCore.Modules.Terrain.TerrainModule.LoadWorldHeightmap() in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Modules\World\Terrain\TerrainModule.cs:line 298 Dec 06 06:00:40 - [RegionModulesControllerPlugin]: Failed to load module TerrainModule: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at WhiteCore.Framework.SceneInfo.PerlinNoise.GetEmptyArray[T](Int32 width, Int32 height) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 121 at WhiteCore.Framework.SceneInfo.PerlinNoise.GenerateSmoothNoise(Single[][] baseNoise, Int32 octave) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 132 at WhiteCore.Framework.SceneInfo.PerlinNoise.GeneratePerlinNoise(Single[][] baseNoise, Int32 octaveCount) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 179 at WhiteCore.Framework.SceneInfo.PerlinNoise.GeneratePerlinNoise(Int32 width, Int32 height, Int32 octaveCount) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 219 at WhiteCore.Framework.SceneInfo.PerlinNoise.GenerateHeightMap(Int32 width, Int32 height, Int32 octaveCount, Single min, Single max, Int32 smoothing) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainPerlin.cs:line 655 at WhiteCore.Framework.SceneInfo.TerrainChannel.CreateMainlandTerrain(Single minHeight, Single maxHeight, Int32 smoothing) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainChannel.cs:line 401 at WhiteCore.Framework.SceneInfo.TerrainChannel.CreateDefaultTerrain(String landType) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainChannel.cs:line 314 at WhiteCore.Framework.SceneInfo.TerrainChannel..ctor(IScene scene) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Framework\SceneInfo\TerrainChannel.cs:line 54 at WhiteCore.Modules.Terrain.TerrainModule.LoadWorldHeightmap() in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Modules\World\Terrain\TerrainModule.cs:line 332 at WhiteCore.Modules.Terrain.TerrainModule.AddRegion(IScene scene) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Modules\World\Terrain\TerrainModule.cs:line 134 at WhiteCore.CoreApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin.AddRegionToModules(IScene scene) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\CoreApplicationPlugins\RegionModulesController\RegionModulesControllerPlugin.cs:line 121 Dec 06 06:00:41 - [BackupModule]: Loading objects for Excelsior Station from FileBasedDatabase Dec 06 06:00:42 - [BackupModule]: Loaded 4598 object(s) in Excelsior Station Dec 06 06:00:48 - [BackupModule]: Starting scripts in Excelsior Station Dec 06 06:00:48 - [SceneManager]: Startup Complete. This took 0m 31.44s Dec 06 06:00:48 - [SceneManager]: Starting region "WorkShop" at @ 2000,2000 Dec 06 06:00:49 - [BackupModule]: Loading objects for WorkShop from FileBasedDatabase Dec 06 06:00:49 - [BackupModule]: Loaded 475 object(s) in WorkShop Dec 06 06:00:49 - [BackupModule]: Starting scripts in WorkShop Dec 06 06:00:49 - [SceneManager]: Startup Complete. This took 0m 32.354s Dec 06 06:00:51 - Error compiling script: (1,1) syntax error prim name: Black Thorn - drawn@ <180.25, 163, 23.5>item name: Sword, CompiledFile: ../Data/ScriptEngines\080\08096e9d-a3a5-43f9-a359-4a923ad0ffdf.dll Dec 06 06:01:25 - [LLOGIN SERVICE]: Login request for Sarge Misfit from 127.0.0.1 with user agent Angstrom Angstrom 1.1.7.28947 starting in last Dec 06 06:01:26 - [ConnectionBegin]: Region Excelsior Station authenticated and authorized incoming root agent 3874761f-a05c-4512-9b45-863184e29b3e (circuit code 634000969) Dec 06 06:01:26 - [LLOGIN SERVICE]: All clear. Sending login response to client to login to region Excelsior Station, tried to login to last at <816.5597, 1039.102, 58.76709>. Dec 06 06:01:33 - [CapsHandlers]: Handling Seed Cap request at http://127.0.0.1:9000/CAPS/1da8af8e-8de7-4db8-afcd-f97379ea9da20000/ Dec 06 06:01:35 - [LLUDPSERVER]: Handling UseCircuitCode request from 127.0.0.1:49153 took 860ms Dec 06 06:01:44 - [ATTACHMENTS MODULE]: Found 11 attachments to attach to avatar Sarge Misfit Dec 06 06:01:47 - [AvatarFactory]: Handle initial appearance send for 3874761f-a05c-4512-9b45-863184e29b3e Dec 06 06:04:24 - [MySQLDataLoader] ExecuteNonQuery(insert into search_parcel select ?A,?B,?C,?D,?E,?F,?G,?H,?I,?J,?K,?L,?M,?N,?O,?P,?Q,?R,?S,?T,?U,?V,?W,?X union all select ?Y,?Z,?AB,?BB,?CB,?DB,?EB,?FB,?GB,?HB,?IB,?JB,?KB,?LB,?MB,?NB,?OB,?PB,?QB,?RB,?SB,?TB,?UB,?VB union all select ?WB,?XB,?YB,?ZB,?AC,?BC,?CC,?DC,?EC,?FC,?GC,?HC,?IC,?JC,?KC,?LC,?MC,?NC,?OC,?PC,?QC,?RC,?SC,?TC union all select ?UC,?VC,?WC,?XC,?YC,?ZC,?AD,?BD,?CD,?DD,?ED,?FD,?GD,?HD,?ID,?JD,?KD,?LD,?MD,?ND,?OD,?PD,?QD,?RD union all select ?SD,?TD,?UD,?VD,?WD,?XD,?YD,?ZD,?AE,?BE,?CE,?DE,?EE,?FE,?GE,?HE,?IE,?JE,?KE,?LE,?ME,?NE,?OE,?PE union all select ?QE,?RE,?SE,?TE,?UE,?VE,?WE,?XE,?YE,?ZE,?AF,?BF,?CF,?DF,?EF,?FF,?GF,?HF,?IF,?JF,?KF,?LF,?MF,?NF union all select ?OF,?PF,?QF,?RF,?SF,?TF,?UF,?VF,?WF,?XF,?YF,?ZF,?AG,?BG,?CG,?DG,?EG,?FG,?GG,?HG,?IG,?JG,?KG,?LG), MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '035a5ef1-ee9d-49ec-bd78-a0b17c38f4e6' for key 'PRIMARY' at MySql.Data.MySqlClient.MySqlStream.ReadPacket() at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId) at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() at MySql.Data.MySqlClient.MySqlHelper.ExecuteNonQuery(MySqlConnection connection, String commandText, MySqlParameter[] commandParameters) at MySql.Data.MySqlClient.MySqlHelper.ExecuteNonQuery(String connectionString, String commandText, MySqlParameter[] parms) at WhiteCore.DataManager.MySQL.MySQLDataLoader.ExecuteNonQuery(String connStr, String sql, Dictionary`2 parameters, Boolean spamConsole) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\DataManagerPlugins\MySQL\MySQLDataManager.cs:line 140 Dec 06 06:04:37 - [ATTACHMENTS MODULE]: Updating asset for attachment bdcfa284-3282-44dc-b532-c36647178dfa, attachpoint 37 Dec 06 06:04:37 - [ATTACHMENTS MODULE]: Updating asset for attachment f98adb41-f933-4ed0-9106-1401398d0509, attachpoint 38 Dec 06 06:04:37 - [ATTACHMENTS MODULE]: Updating asset for attachment aea409dc-23b3-4d23-9fdb-94503b620275, attachpoint 5 Dec 06 06:04:37 - [ATTACHMENTS MODULE]: Updating asset for attachment 6461bcbc-5ae4-4a63-91d2-baaf066c4ce7, attachpoint 6 Dec 06 06:04:37 - [ATTACHMENTS MODULE]: Updating asset for attachment ad65cfab-301f-419a-aef6-4090cebd6cd7, attachpoint 2 Dec 06 06:04:37 - [ATTACHMENTS MODULE]: Updating asset for attachment 89f097c7-a13e-4e46-9b5a-7d23de042e3f, attachpoint 28 Dec 06 06:04:38 - [ActivityDetector]: Detected logout of user Sarge Misfit in region Excelsior Station Dec 06 06:04:51 - [Scene]: Closing down the single simulator: Excelsior Station Dec 06 06:04:51 - [FileBasedSimulationData]: Backing up Excelsior Station Dec 06 06:04:51 - [Backup]: Exception caught: System.NullReferenceException: Object reference not set to an instance of an object. at WhiteCore.Modules.FileBasedSimulationData.WriteTerrainToStream(ITerrainChannel tModule) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Modules\World\Startup\SimulationData\FileBasedSimulationData.cs:line 1063 at WhiteCore.Modules.FileBasedSimulationData.SaveBackup(Boolean isOldSave) in e:\GitLabHQ\WhiteCoreDev\WhiteCore\Modules\World\Startup\SimulationData\FileBasedSimulationData.cs:line 962 Dec 06 06:04:54 - [FileBasedSimulationData]: Saved Backup for region Excelsior Station Dec 06 06:04:56 - [RegisterRegionWithGrid]: Deregistering region Excelsior Station from the grid... Dec 06 06:04:56 - [Scene]: Closing down the single simulator: WorkShop Dec 06 06:04:56 - [FileBasedSimulationData]: Backing up WorkShop Dec 06 06:04:56 - [FileBasedSimulationData]: Saved Backup for region WorkShop Dec 06 06:04:57 - [RegisterRegionWithGrid]: Deregistering region WorkShop from the grid... Dec 06 06:04:58 - [SHUTDOWN]: Terminating Dec 06 06:04:58 - [SHUTDOWN]: Shutdown processing on main thread complete. Exiting...