Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException
Reported by Mark
Bug description:
I've been searching BugZilla for a bit... and apologies if I've duplicated another report. I haven't been able to reproduce this problem with SciLab 5.3.3 but it is 100% reproducible with SciLab 5.4.0 .
I'm doing some data analysis... and while this bug hasn't stopped me dead, when it occurs, the only way I can get rid of it is to unload SciLab 5.4.0, wipe out everything in %APPDATA%\SciLab, and reload SciLab from scratch.
This problem "infects" SciLab... once it starts, it affects everything. There are two displays on this computer. Once the problem starts, dragging the console from one display to another causes repeats of these error messages to SPEW into the console. Sometimes it doesn't get that far; left-clicking on the SciLab Console to move it will cause SciLab (and all related components, include SciNotes) to stop responding. Regaining control requires CTRL_ALT_DEL and Task Manager to terminate WScilex.exe (which, by that time, is not using any CPU at all).
clear('all') doesn't help.
clearglobal() doesn't help (there seems to be some debris left behind after
guibuilder)
Per the "Component Description", here is the result of [a, b] = getdebuginfo().
-->[a, b] = getdebuginfo()
b =
!Version: scilab-5.4.0 !
! !
!Compilation date: Sep 29 2012 !
! !
!Compilation time: 00:40:07 !
! !
!Compiler Architecture: x86 !
! !
!Compiled with Microsoft compiler (160040219) !
! !
!BLAS library optimized version: MKL !
! !
!XML version: 2.7.7 !
! !
!Tcl/Tk: Enable !
! !
!TCL version: 8.5.9 !
! !
!TK version: 8.5.9 !
! !
!Path separator: ; !
! !
!Directory separator: \ !
! !
!PCRE Version: 8.21 !
a =
!Memory in use: 35 % !
! !
!Total Physical Memory (Kbytes): 3012908 !
! !
!Free Physical Memory (Kbytes): 1938348 !
! !
!Total Paging File (Kbytes): 5860888 !
! !
!Free Paging File (Kbytes): 4977008 !
! !
!Total Virtual Memory (Kbytes): 2097024 !
! !
!Free Virtual Memory (Kbytes): 1451452 !
! !
!Free Extended Memory (Kbytes): 0 !
! !
!Operating System: Windows XP !
! !
! Intel(R) Pentium(R) 4 CPU 3.00GHz !
! !
!Number of processors: 2 !
! !
!Number of Video cards: 1 !
! !
!Video card #0: NVIDIA GeForce 6200 !
! !
!Primary Video card driver version: 6.14.10.4332 !
! !
!Screen size: 1280 x 1024 32 bits !
! !
!Number of Monitors: 2 !
! !
!Path: C:/Program Files/scilab/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbe!
! m;c:\Python22;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files!
! \QuickTime\QTSystem\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32!
! ;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python22;c:\Program Files\Microsoft SQL Ser!
! ver\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\WINDOWS\system32\Windows!
! PowerShell\v1.0;C:\Program Files\SciLab\bin;C:\BIN;C:\TC;C:\TASM;C:\TP;C:\TD !
! !
!ComSpec: C:\WINDOWS\system32\cmd.exe !
! !
!TMP : C:\DOCUME~1\HP_ADM~1\LOCALS~1\Temp !
! !
!TEMP: C:\DOCUME~1\HP_ADM~1\LOCALS~1\Temp !
! !
!TMPDIR: C:\DOCUME~1\HP_ADM~1\LOCALS~1\Temp\SCI_TMP_2696_ !
! !
!WSCI: C:\Program Files\scilab !
! !
!SCIHOME: C:\DOCUME~1\HP_ADM~1\APPLIC~1\Scilab\scilab-5.4.0 !
========================================================================
Error log: (Please excuse the length.. wanted this to be complete)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.postGL(GLJPanel.java:924)
at javax.media.opengl.awt.GLJPanel$Updater.display(GLJPanel.java:656)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at jogamp.opengl.GLPbufferImpl$DisplayAction.run(GLPbufferImpl.java:300)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
at jogamp.opengl.GLPbufferImpl.invokeGL(GLPbufferImpl.java:286)
at jogamp.opengl.GLPbufferImpl.display(GLPbufferImpl.java:149)
at javax.media.opengl.awt.GLJPanel$PbufferBackend.doPaintComponentImpl(GLJPanel.java:1196)
at javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.doPaintComponent(GLJPanel.java:942)
at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:356)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingPort.java:1983)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at java.awt.Window.paint(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$700(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(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)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.postGL(GLJPanel.java:924)
at javax.media.opengl.awt.GLJPanel$Updater.display(GLJPanel.java:656)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at jogamp.opengl.GLPbufferImpl$DisplayAction.run(GLPbufferImpl.java:300)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
at jogamp.opengl.GLPbufferImpl.invokeGL(GLPbufferImpl.java:286)
at jogamp.opengl.GLPbufferImpl.display(GLPbufferImpl.java:149)
at javax.media.opengl.awt.GLJPanel$PbufferBackend.doPaintComponentImpl(GLJPanel.java:1196)
at javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.doPaintComponent(GLJPanel.java:942)
at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:356)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingPort.java:1983)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at java.awt.Window.paint(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$700(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(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)
!--error 21
Invalid index.
at line 8 of function openfile called by :
at line 9 of function open_existing_gui called by :
existing_gui(handles);if exists("%oldgcbo"
while executing a callback
=============================================================
How to reproduce the bug:
Using the ATOMS manager, install "guibuilder".
Restart SciLab (per ATOMS manager note at the bottom of that pane).
Create a small GUI. I created a button.
Generate code (Generate --> Generate code), save it, close all windows, exit SciLab.
Start SciLab
Load the SCE file created when saving the built GUI.
Those error messages start appearing in the console.
================================================
Other information:
After some searching and finding comments about SciLab 5.4.0 being graphics-driver sensitive, the latest NVidia graphics drivers were installed. I'm using a GeForce 6200 (yes, it's an older interface but it's all this computer can handle). Here is the information from NVidia's System Information utility:
Driver version: 307.74
DirectX support: 9.0c
Core clock: 280 MHz
Memory data rate: 800 MHz
Memory interface: 64-bit
Memory: 256M
Memory type: DDR2
Video BIOS version: 5.44.A2.10.49
IRQ: 19
Bus: PCI
=================================================
Thanks.