<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 1: GL Crash, no error</title><link>https://sourceforge.net/p/objloaderforand/bugs/1/</link><description>Recent changes to 1: GL Crash, no error</description><atom:link href="https://sourceforge.net/p/objloaderforand/bugs/1/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 04 Jun 2010 05:34:01 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/objloaderforand/bugs/1/feed.rss" rel="self" type="application/rss+xml"/><item><title>GL Crash, no error</title><link>https://sourceforge.net/p/objloaderforand/bugs/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony O</dc:creator><pubDate>Fri, 04 Jun 2010 05:34:01 -0000</pubDate><guid>https://sourceforge.net98ba8e500ff325d4a35724699f2c5f67d5886055</guid></item></channel></rss>