This is where fixed bugs can be seen. Please do not post new bugs into this forum, it is purely to see what has been fixed and most topics will be locked.

Crashing when placing trees

Crashing when placing trees

Postby epsilonion » 01 Apr 2015, 01:36

After a short while of placing the OAK tree that comes with the engine it crashes, easy to repeat, just place trees, well tbh you don't have to place trees it just crashes...

The Idea I had was camera fly through of a river surrounded by thick forest, at the end of the river the camera circles your farm, although a small farm, I was going to narrate this.

The picture shows the patch to Skyline.
Image

Errors in the log file:

01:48:21: OGRE EXCEPTION(2:InvalidParametersException): Parameter called adjustAlpha does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:21: Compiler error: invalid parameters in C:/Aurasoft/SkylineSDK/Asset Library/Models/Nature/Trees/Oak_01/Oak_01.material(1672): setting of constant failed
01:48:21: Compiler error: invalid parameters in C:/Aurasoft/SkylineSDK/Asset Library/Models/Nature/Trees/Oak_01/Oak_01.material(1695): scene_blend does not support "replace" for argument 1
01:48:21: OGRE EXCEPTION(2:InvalidParametersException): Parameter called rim_Params does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:21: Compiler error: invalid parameters in C:/Aurasoft/SkylineSDK/Asset Library/Models/Nature/Trees/Oak_01/Oak_01.material(1711): setting of constant failed
01:48:21: OGRE EXCEPTION(2:InvalidParametersException): Parameter called rimlightTintColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:21: Compiler error: invalid parameters in C:/Aurasoft/SkylineSDK/Asset Library/Models/Nature/Trees/Oak_01/Oak_01.material(1713): setting of constant failed
01:48:21: OGRE EXCEPTION(2:InvalidParametersException): Parameter called reflection_Param does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:21: Compiler error: invalid parameters in C:/Aurasoft/SkylineSDK/Asset Library/Models/Nature/Trees/Oak_01/Oak_01.material(1716): setting of constant failed
01:48:21: Compiler error: invalid parameters in C:/Aurasoft/SkylineSDK/Asset Library/Models/Nature/Trees/Oak_01/Oak_01.material(1719): param_named and param_indexed properties requires at least 3 arguments
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called eyePosition does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(191): setting of constant failed
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called fadeGap does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(193): setting of constant failed
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called invisibleDist does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(194): setting of constant failed
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called fadeEnabled does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(195): setting of constant failed
01:48:22: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Blank_N.jpg in resource group Scene or any other group. in ResourceGroupManager::openResource at ..\..\..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 756)
01:48:22: Error loading texture Blank_N.jpg. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Blank_N.jpg in resource group Scene or any other group. in ResourceGroupManager::openResource at ..\..\..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 756)
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called eyePosition does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(191): setting of constant failed
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called fadeGap does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(193): setting of constant failed
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called invisibleDist does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(194): setting of constant failed
01:48:22: OGRE EXCEPTION(2:InvalidParametersException): Parameter called fadeEnabled does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1719)
01:48:22: Compiler error: invalid parameters in PagedGeometry_Trunk_Wind.material(195): setting of constant failed
01:48:23: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Impostor.QEKKGYGHBDLWXAVALWRRAJCHCHVSSMPE.256.dds in resource group Autodetect or any other group. in ResourceGroupManager::openResource at ..\..\..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 756)
01:48:39: OGRE EXCEPTION(3:RenderingAPIException): Cannot restore D3D9 vertex buffer: Ran out of memory in D3D9HardwareVertexBuffer::createBuffer at ..\..\..\..\..\RenderSystems\Direct3D9\src\OgreD3D9HardwareVertexBuffer.cpp (line 296)
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Crashing when placing trees

Postby SolarPortal » 01 Apr 2015, 09:29

.... Cannot restore D3D9 vertex buffer: Ran out of memory in ....


Q) What is the ram used by skyline at the time of the crash?
it seems you had too many trees at high poly lol and hit the 32bit application limit.
This will require a 64bit machine to run that tree many times over.
64bit is being done on the side of all the other tasks.
With skyline, once you get to around 3gig of ram used, then look at saving your scene as a crash could be imminent.

The oak tree has something like 3000 polys+

Static Batching is a fast system which improves performance to no end, but you have to pay for each mesh that is added to the scene rather than add one and reuse that asset like the normal drag mesh. This is why the vegetation system prefers to have lower poly objects for memory/performance reasons.

The oak tree was a stand in mesh asset that i used without the vegetation system for the melee template.
Plus i wouldn't place a lot of them as they are quite pricey to add into the scene.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests