<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 1: GL Crash, no error</title><link href="https://sourceforge.net/p/objloaderforand/bugs/1/" rel="alternate"/><link href="https://sourceforge.net/p/objloaderforand/bugs/1/feed.atom" rel="self"/><id>https://sourceforge.net/p/objloaderforand/bugs/1/</id><updated>2010-06-04T05:34:01Z</updated><subtitle>Recent changes to 1: GL Crash, no error</subtitle><entry><title>GL Crash, no error</title><link href="https://sourceforge.net/p/objloaderforand/bugs/1/" rel="alternate"/><published>2010-06-04T05:34:01Z</published><updated>2010-06-04T05:34:01Z</updated><author><name>Tony O</name><uri>https://sourceforge.net/u/tonyod/</uri></author><id>https://sourceforge.net98ba8e500ff325d4a35724699f2c5f67d5886055</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Loading 2 models into a vector or hashtable and then drawing will crash and hard quit the application:&lt;/p&gt;
&lt;p&gt;Same models work fine when only declaring a single TDModel.  I was thinking maybe a static var somewhere is changed but could not find one.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;If I declare 2 separate TDModel objects and load models (same model or different models produce same results), the first .draw(gl) will fail with Exception: java.lang.ArrayIndexOutOfBoundsException: remaining() &amp;lt; count&lt;/p&gt;
&lt;p&gt;Please let me know what other data is needed.&lt;/p&gt;
&lt;p&gt;Relevant code:&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;private Hashtable&amp;lt;Integer, TDModel&amp;gt; scene = new Hashtable&amp;lt;Integer, TDModel&amp;gt;();&lt;br /&gt;
scene.put(scene.size(), parser.parseOBJ("/data/data/com.openGL/cube.obj"));&lt;br /&gt;
scene.put(scene.size(), parser.parseOBJ("/data/data/com.openGL/cube.obj"));&lt;br /&gt;
for(Integer objP : scene.keySet()){&lt;br /&gt;
//gl.glTranslatef(cameraX, cameraY, cameraZ);&lt;br /&gt;
scene.get(objP).draw(gl);                     &lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>