ORIGINAL: floydg
ORIGINAL: Local Yokel
Tracker continues to be invaluable, particularly since I keep finding new nuggets that I'd not previously noticed. I do, however, have a couple of minor glitches. One is that I'm not seeing any grand totals (ID 250) in the Air Production Overview tab. The other is that one of the child windows opened by clicking a button on the main form correctly presents a drilled-down display of information a few times then ceases to so so. I think it's in LCU history, but will need to check. I assume that the code has to fetch data from the database afresh in order to generate these subordinate displays - could it be that the fetch doesn't working correctly after it is invoked a few times?
I've not seen that, but when (if) it stops working, are there any Java error messages in the console window?
And yes, each time you ask for history, we fetch information from the database, as keeping it all in memory is wasteful, time-consuming, and sure to cause the JVM to run out of memory...
OK, managed to trigger this in Airgroups and Pilots, Airgroups tab when clicking the 'History' button:
"C:\Games\WitP-CHS\NewTracker>java -jar "WitPTracker.jar"
Exception occurred during event dispatching:
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
at sun.awt.image.VolatileSurfaceManager.initialize(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at sun.awt.windows.WComponentPeer.createVolatileImage(Unknown Source)
at java.awt.Component.createVolatileImage(Unknown Source)
at java.awt.Component$BltBufferStrategy.createBackBuffers(Unknown Source)
at java.awt.Component$BltBufferStrategy.<init>(Unknown Source)
at java.awt.Component$BltSubRegionBufferStrategy.<init>(Unknown Source)
at java.awt.Component.createBufferStrategy(Unknown Source)
at java.awt.Window.createBufferStrategy(Unknown Source)
at javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(Unknown Source)
at javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(Unknown Source)
at javax.swing.BufferStrategyPaintManager$BufferInfo.getBufferStrategy(Unknown Source)
at javax.swing.BufferStrategyPaintManager.prepare(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 javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)"
The newly spawned window completely fails to paint its internal canvas: all you see is whatever happens to be next below it in the Z-order - though the new window's borders display correctly, including the 'close window' control in top r/h corner, which correctly functions to close the new window.
HTH.