[Fixed] Menu absent (new bug in old version)


  • Moderators

    When I host a game in lobby or start it on local, using the stable (1.9.0.0.13066), I get no menu (the upper horizontal bar), and get this error:

    ago 28, 2019 10:39:42 PM games.strategy.engine.framework.GameRunner lambda$start$0
    GRAVE: No enum constant games.strategy.triplea.ui.screen.UnitsDrawer.UnitFlagDrawMode.LARGE_FLAG
    java.lang.IllegalArgumentException: No enum constant games.strategy.triplea.ui.screen.UnitsDrawer.UnitFlagDrawMode.LARGE_FLAG
    	at java.lang.Enum.valueOf(Unknown Source)
    	at games.strategy.triplea.ui.menubar.ViewMenu.addUnitNationDrawMenu(ViewMenu.java:478)
    	at games.strategy.triplea.ui.menubar.ViewMenu.<init>(ViewMenu.java:80)
    	at games.strategy.triplea.ui.menubar.TripleAMenuBar.<init>(TripleAMenuBar.java:36)
    	at games.strategy.triplea.ui.TripleAFrame.lambda$new$4(TripleAFrame.java:276)
    	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    	at java.awt.EventQueue.access$500(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.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)
    

    I used the stable for a long time before, with this same terminal, and I've no idea what changed that caused this problem. For example, now I cannot access edit mode anymore.


  • Moderators

    I've the stable installed in a custom place. In the regular place, instead, I've the 2.0 perelease (I'm keeping both cause I don't want to keep installing one or the other). But they are still in the same places since a long time, and never had any problems having multiple versions installed.


  • Admin

    Using a latest pre-release, turn flags off; then launch the latest stable and try again.


  • Moderators

    @LaFayette I'm testing it only on "270BC 40%", for both the stable (1.9.0.0.13066) and the latest prerelease (2.0.15612).

    The flags were already deselected in both, when it was not working. It keeps not working, the same way, no matter if I put the flags on or off in the prerelease. However, if I switch to the small flags in the perelease, the error in the stable says "SMALL_FLAG", that means it is indeed the prerelease somehow influencing the release.

    I've also tried to install the stable over the prerelease, thus I assume removing the prerelease from the terminal, leaving the stable only, but this didn't put the stable back working.

    So, I'm still unable to access the menu when playing the stable; meaning I cannot save the game or enable edit mode.

    It is the first time ever that using a prerelease (I cannot access the lobby with) gives me problem with the release (and to the extent that it is not really anymore workable, missing the menu completely). Maybe you want to put a warning about this, like for people that are in a tournament going on, or such.


  • Admin

    It's an interesting issue. There is no guarantee for a pre-release to be compatible with a release. To some extent, it's buyer-beware when using a pre-release.

    Assuming you're using windows, the setting is stored in your registry, pre-release and release are both reading the same value.

    Thinking to how it's coded, I can see now why turning off the flag does not work. It would have been more ideal for it to have been done differently.

    I'll see if I can package a repair app to help and update the latest pre-release to avoid this.


  • Admin

    @Cernel a patch has been built into: https://github.com/triplea-game/triplea/releases/tag/2.0.15622

    Please install that new latest, and then turn flags off in that version. With luck that will fix the latest release version.


  • Moderators

    @LaFayette said in Menu absent (new bug in old version):

    @Cernel a patch has been built into: https://github.com/triplea-game/triplea/releases/tag/2.0.15622

    Please install that new latest, and then turn flags off in that version. With luck that will fix the latest release version.

    With this new perelease, switching the flags off fails, and I get an error. Also reporting to TripleA fails.

    ago 29, 2019 10:26:18 PM org.triplea.game.client.HeadedGameRunner lambda$main$0
    GRAVE: null
    java.lang.NullPointerException
    	at java.prefs/java.util.prefs.AbstractPreferences.put(AbstractPreferences.java:249)
    	at games.strategy.triplea.ui.menubar.ViewMenu.lambda$addUnitNationDrawMenu$14(ViewMenu.java:471)
    	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    	at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:401)
    	at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
    	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1020)
    	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1064)
    	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
    	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    	at java.desktop/java.awt.Component.processEvent(Component.java:6397)
    	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
    	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
    	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
    	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
    	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
    	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
    
    ago 29, 2019 10:26:42 PM org.triplea.game.client.HeadedGameRunner lambda$main$0
    GRAVE: connect timed out executing GET http://lobby.triplea-game.org:5432/can-submit-error-report
    feign.RetryableException: connect timed out executing GET http://lobby.triplea-game.org:5432/can-submit-error-report
    	at feign.FeignException.errorExecuting(FeignException.java:128)
    	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:113)
    	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:78)
    	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
    	at com.sun.proxy.$Proxy19.canSubmitErrorReport(Unknown Source)
    	at games.strategy.debug.ErrorMessage.lambda$setUploadRecord$1(ErrorMessage.java:141)
    	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
    	at org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased(RolloverButtonListener.java:108)
    	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
    	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    	at java.desktop/java.awt.Component.processEvent(Component.java:6397)
    	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
    	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
    	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
    	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
    	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
    	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    	at java.base/java.security.AccessController.doPrivileged(Native Method)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
    Caused by: java.net.SocketTimeoutException: connect timed out
    	at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
    	at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
    	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
    	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
    	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
    	at java.base/java.net.Socket.connect(Socket.java:591)
    	at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
    	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
    	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
    	at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
    	at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341)
    	at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:362)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1242)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1009)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509)
    	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
    	at feign.Client$Default.convertResponse(Client.java:143)
    	at feign.Client$Default.execute(Client.java:68)
    	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:108)
    	... 41 more
    

  • Admin

    Thanks for giving that a try @Cernel
    I tested out a new fix and am waiting for it to build. It'll be ready in an hour or two.


  • Admin

    @Cernel patch is built, please give the new latest pre-release a try. Please be sure to turn flags off from the 'view' menu and not using the "L" hotkey


  • Moderators

    @LaFayette All fixed (2.0.15631) (except maybe the report thing, that I don't know).


Log in to reply
 

26405
1387
1627
Visitors Today