chrsmithdemos / open-ig

Automatically exported from code.google.com/p/open-ig
0 stars 0 forks source link

ordering new research in quick panel sometimes throws exception #829

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Game version: 0.95.160

Sometimes, just after completing a previous research, an exception is thrown 
when wanting to set the next research in the *quick research panel*. It does 
not happen when setting the same research in the normal research window, which 
is the workaround I used to use. I am unable find the events leading to the 
situation, but the attached save reproduces the exception. I can also tell that 
the problem must have been introduced rather recently (say, within the last 
half year)

An unexpected error occurred.
You should consider submitting an error report via the project issue list:
https://code.google.com/p/open-ig/issues/list
Please include the following diagnostic information followed by the error 
stacktrace(s):
   Java version: 1.7.0_04
   Java vendor: Oracle Corporation (http://java.oracle.com/)
   Java class version: 51.0
   Operating system: Windows XP, x86, 5.1
   Game version: 0.95.160
   Command line: [-memonce, -de]
   Available memory: 115 MB
   Maximum memory: 742 MB
   Parallelism: 2
   Language: de
   Date and time: 2014-02-12T19:09:13.578Z
----
A crash save may have been created. Please attach it in the issue report 
(zipped).
I:\programs\open_imp_gal\save\default\save-2014-02-12-20-09-13-593.xml.gz
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at hu.openig.model.Player.startResearch(Player.java:950)
    at hu.openig.mechanics.DefaultAIControls.actionStartResearch(DefaultAIControls.java:51)
    at hu.openig.screen.panels.QuickResearchPanel$6.invoke(QuickResearchPanel.java:318)
    at hu.openig.ui.UILabel.mouse(UILabel.java:311)
    at hu.openig.screen.panels.QuickResearchLabel.mouse(QuickResearchLabel.java:60)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.screen.ScreenBase.mouse(ScreenBase.java:110)
    at hu.openig.screen.items.StatusbarScreen.mouse(StatusbarScreen.java:914)
    at hu.openig.GameWindow$MouseActions.invoke(GameWindow.java:1093)
    at hu.openig.GameWindow$MouseActions.mousePressed(GameWindow.java:1132)
    at java.awt.Component.processMouseEvent(Component.java:6502)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
    at java.awt.EventQueue.access$000(EventQueue.java:102)
    at java.awt.EventQueue$3.run(EventQueue.java:662)
    at java.awt.EventQueue$3.run(EventQueue.java:660)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:676)
    at java.awt.EventQueue$4.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at hu.openig.model.Player.startResearch(Player.java:950)
    at hu.openig.mechanics.DefaultAIControls.actionStartResearch(DefaultAIControls.java:51)
    at hu.openig.screen.panels.QuickResearchPanel$6.invoke(QuickResearchPanel.java:318)
    at hu.openig.ui.UILabel.mouse(UILabel.java:311)
    at hu.openig.screen.panels.QuickResearchLabel.mouse(QuickResearchLabel.java:60)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.screen.ScreenBase.mouse(ScreenBase.java:110)
    at hu.openig.screen.items.StatusbarScreen.mouse(StatusbarScreen.java:914)
    at hu.openig.GameWindow$MouseActions.invoke(GameWindow.java:1093)
    at hu.openig.GameWindow$MouseActions.mousePressed(GameWindow.java:1132)
    at java.awt.Component.processMouseEvent(Component.java:6502)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
    at java.awt.EventQueue.access$000(EventQueue.java:102)
    at java.awt.EventQueue$3.run(EventQueue.java:662)
    at java.awt.EventQueue$3.run(EventQueue.java:660)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:676)
    at java.awt.EventQueue$4.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at hu.openig.model.Player.startResearch(Player.java:950)
    at hu.openig.mechanics.DefaultAIControls.actionStartResearch(DefaultAIControls.java:51)
    at hu.openig.screen.panels.QuickResearchPanel$6.invoke(QuickResearchPanel.java:318)
    at hu.openig.ui.UILabel.mouse(UILabel.java:311)
    at hu.openig.screen.panels.QuickResearchLabel.mouse(QuickResearchLabel.java:60)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.screen.ScreenBase.mouse(ScreenBase.java:110)
    at hu.openig.screen.items.StatusbarScreen.mouse(StatusbarScreen.java:914)
    at hu.openig.GameWindow$MouseActions.invoke(GameWindow.java:1093)
    at hu.openig.GameWindow$MouseActions.mousePressed(GameWindow.java:1132)
    at java.awt.Component.processMouseEvent(Component.java:6502)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
    at java.awt.EventQueue.access$000(EventQueue.java:102)
    at java.awt.EventQueue$3.run(EventQueue.java:662)
    at java.awt.EventQueue$3.run(EventQueue.java:660)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:676)
    at java.awt.EventQueue$4.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at hu.openig.model.Player.startResearch(Player.java:950)
    at hu.openig.mechanics.DefaultAIControls.actionStartResearch(DefaultAIControls.java:51)
    at hu.openig.screen.panels.QuickResearchPanel$6.invoke(QuickResearchPanel.java:318)
    at hu.openig.ui.UILabel.mouse(UILabel.java:311)
    at hu.openig.screen.panels.QuickResearchLabel.mouse(QuickResearchLabel.java:60)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.ui.UIContainer.mouse(UIContainer.java:112)
    at hu.openig.screen.ScreenBase.mouse(ScreenBase.java:110)
    at hu.openig.screen.items.StatusbarScreen.mouse(StatusbarScreen.java:914)
    at hu.openig.GameWindow$MouseActions.invoke(GameWindow.java:1093)
    at hu.openig.GameWindow$MouseActions.mousePressed(GameWindow.java:1132)
    at java.awt.Component.processMouseEvent(Component.java:6502)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
    at java.awt.EventQueue.access$000(EventQueue.java:102)
    at java.awt.EventQueue$3.run(EventQueue.java:662)
    at java.awt.EventQueue$3.run(EventQueue.java:660)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:676)
    at java.awt.EventQueue$4.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

Original issue reported on code.google.com by anonymis...@arcor.de on 12 Feb 2014 at 8:41

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting. It crashes as the current research was not cleared 
somehow. Unpausing the game seems to fix the problem with this save. I'll 
include a patch in the next release.

Original comment by akarn...@gmail.com on 12 Feb 2014 at 9:02

GoogleCodeExporter commented 9 years ago

Original comment by akarn...@gmail.com on 13 Feb 2014 at 8:29