sweet!
the nullpointers come up after the out of memory on the gpu, so it’s probably just a side-effect-error. wouldn’t worry too much about it. if i get a out of memory and a incomplete framebuffer, the game should just exit
tho’, now i just started the game a couple times (play, esc, play, esc, play, esc, play, NPE) :
java.lang.NullPointerException at net.mantagames.anarchyengine.model.VBOModel.getVertex(VBOModel.java:465) at net.mantagames.anarchyengine.model.collisions.CollisionHelper.collision_ray(CollisionHelper.java:217) at net.mantagames.armymen.world.entity.player.EntityPlayer.getDistanceToGround(EntityPlayer.java:352) at net.mantagames.armymen.world.entity.player.EntityPlayer.doCollisionFloor(EntityPlayer.java:213) at net.mantagames.armymen.world.entity.player.EntityPlayerController.playerLogic(EntityPlayerController.java:268) at net.mantagames.armymen.world.entity.player.EntityPlayerController.tick(EntityPlayerController.java:117) at net.mantagames.armymen.world.World.update(World.java:207) at net.mantagames.armymen.Game.update(Game.java:72) at net.mantagames.armymen.Client.update(Client.java:236) at net.mantagames.anarchyengine.Core$GameTickRate.run(Core.java:300) at java.lang.Thread.run(Thread.java:745)
VM exited after that one.
doing the same i ran into another out of memory, again play, esc, play, esc, play, esc :
[LWJGL] ARB_debug_output message ID: 1285 Source: API Type: ERROR Severity: HIGH Message: GL_OUT_OF_MEMORY error generated. Failed to allocate memory for texture. Post processing pipeline: [net.mantagames.anarchyengine.post.MergeProcessor@1d79791, net.mantagames.anarchyengine.post.BloomRenderer@11fe8ed, net.mantagames.anarchyengine.post.ToneMapper@1f55379, net.mantagames.anarchyengine.post.FXAAProcessor@13b3625] Error occured: An OpenGL error occured while creating the new LightingEngine object.: Out of memory java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1365) at net.mantagames.anarchyengine.etc.GLUtil.checkError(GLUtil.java:14) at net.mantagames.anarchyengine.RenderEngine.<init>(RenderEngine.java:129) at net.mantagames.armymen.world.World.loadWorld(World.java:119) at net.mantagames.armymen.Client$2.execute(Client.java:115) at net.mantagames.anarchyengine.World.doTasks(World.java:23) at net.mantagames.armymen.world.World.draw(World.java:233) at net.mantagames.armymen.Client.draw(Client.java:242) at net.mantagames.anarchyengine.Core.startGameLoop(Core.java:178) at net.mantagames.armymen.Client.<init>(Client.java:77) at net.mantagames.armymen.Client.main(Client.java:313)
and lots of [icode]GL_INVALID_FRAMEBUFFER_OPERATION[/icode] afterwards …
my guess is, you allocate textures (or maybe vbo’s) but do not free them when restarting the game. tho’ my nvidia driver is at verion 335.23, could use an update