ryerrabelli / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

BufferOverflowException in GeometryBatchFactory.optimize #367

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
GeometryBatchFactory.optimize is crashing while processing some geometry ( a 
bunch of Box objects).

This occured with the nightly build from JME3-2011-07-09

java.nio.BufferOverflowException
    at java.nio.DirectFloatBufferU.put(DirectFloatBufferU.java:308)
    at com.jme3.scene.VertexBuffer.copyElement(VertexBuffer.java:752)
    at jme3tools.optimize.GeometryBatchFactory.mergeGeometries(GeometryBatchFactory.java:199)
    at jme3tools.optimize.GeometryBatchFactory.makeBatches(GeometryBatchFactory.java:286)
    at jme3tools.optimize.GeometryBatchFactory.optimize(GeometryBatchFactory.java:337)
    at jme3tools.optimize.GeometryBatchFactory.optimize(GeometryBatchFactory.java:321)
    at org.jstrohm.game.iso.Chunk.calc(Chunk.java:73)
    at org.jstrohm.game.Main$2.run(Main.java:153)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)

Original issue reported on code.google.com by hoyle.ho...@gmail.com on 9 Jul 2011 at 5:35

GoogleCodeExporter commented 8 years ago
please use the forum if you dont have the solution.

Original comment by normen667 on 9 Jul 2011 at 7:14