Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ordering new research in quick panel sometimes throws exception #829

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: SVN
  • Added labels: Component-Logic

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed
  • Added labels: Crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant