Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 11:32:17 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)What is This Error?
Pages: [1]
Print
Author Topic: What is This Error?  (Read 910 times)
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« on: 04. July 2007, 01:00:16 am »

I do not know what to make of this error:

Exception in thread "AWT-EventQueue-1" java.lang.IndexOutOfBoundsException: Index: 1, Size: 2
   at java.util.ArrayList.RangeCheck(Unknown Source)
   at java.util.ArrayList.remove(Unknown Source)
   at net.jtank.input.MouseEventHeap.allocMoved(MouseEventHeap.java:80)
   at net.jtank.input.MouseDeviceBase.allocMouseMovedEvent(MouseDeviceBase.java:85)
   at net.jtank.input.awt.AWTMouse.enqueue(AWTMouse.java:154)
   at net.jtank.input.awt.AWTMouse.processMouseMoved(AWTMouse.java:248)
   at net.jtank.input.awt.AWTMouse.access$1(AWTMouse.java:240)
   at net.jtank.input.awt.AWTMouse$1.mouseMoved(AWTMouse.java:304)
   at java.awt.Component.processMouseMotionEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 04. July 2007, 02:28:12 pm »

Uh oh, bug in the Heap code of Xith3D. Marvin, where are you ??
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #2 on: 04. July 2007, 03:02:16 pm »

I think it has something to do with mouse events...I seem to get it when i click on something (I think)...
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 05. July 2007, 04:51:06 pm »

Sorry, I could not connect to the internet because of ISP problems caused by the wheather.

Could you please send me an example, where this happens? Any example I used works perfectly.

btw. I asked Will to grant me the permission to create a sourceforge project for HIAL and he gave me the permission. This project now exists. I will upload the current HIAL source soon.

Marvin
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #4 on: 05. July 2007, 06:05:22 pm »

Actually, I can't trace the error...my project uses about 30 classes, and many are very long, so I just don't know.  I have a feeling that it has to do with the onMouseStopped() method in WidgetInputListener. Either that, or it's the onMouseReleased() or onMousePressed().
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 05. July 2007, 06:20:33 pm »

Actually, I can't trace the error...my project uses about 30 classes, and many are very long, so I just don't know.  I have a feeling that it has to do with the onMouseStopped() method in WidgetInputListener. Either that, or it's the onMouseReleased() or onMousePressed().

As long as you don't utilize a MouseStopManager, the onMouseStopped() event is dead.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #6 on: 05. July 2007, 06:22:41 pm »

Hmm... btw.
Code:
Exception in thread "AWT-EventQueue-1" java.lang.IndexOutOfBoundsException: Index: 1, Size: 2
What could be the problem with an index of 1 when the size is 2 Huh.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic