Author Topic: "Connection Lost" on local game  (Read 2571 times)

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
"Connection Lost" on local game
« on: December 13, 2017, 07:40:47 AM »
I am getting the red banner with "Connection Lost" text when playing a local game against the computer.

Why is this happening?  I am not connected to anything - i am only playing a local game.

Linkback: http://www.carcassonnecentral.com/community/index.php?topic=3697.0
Robert Fielder
Brampton, Ontario, Canada  EST

Offline farin

  • Duke
  • *
  • Posts: 233
  • Merit: 41
  • JCloisterZone maintainer
    • View Profile
Re: "Connection Lost" on local game
« Reply #1 on: December 13, 2017, 01:43:07 PM »
I don't know. Network layer is rare case of code which is almost untouched from 3.x.
So I would not expect problems just here.

On the other hand java-websocket dependency was upgraded, and it can be related to it.

As far as I remeber I observed similar behaviour when laptop was sleep for a while. I am going to experiment with it.

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
Re: "Connection Lost" on local game
« Reply #2 on: December 13, 2017, 01:47:34 PM »
farin - thanks!

it leave the game hung, so that I have to Leave the game to get anything happening.

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
Re: "Connection Lost" on local game
« Reply #3 on: December 13, 2017, 03:36:11 PM »
Just did it to me again!!   :-X

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
Re: "Connection Lost" on local game
« Reply #4 on: December 14, 2017, 03:25:47 PM »
Happened again, but with a new message.

After the "Connection Lost" message, a "NullPointerException" message appeared.  That one stayed.

The other difference - I could still interact with the game, to a point.  The boxes to show  potential tile placement appeared, which did not happen before.  However, I am unable to place the tile - clicking a valid location does nothing.


Offline MrNumbers

  • Global Moderator
  • Duke Chevalier
  • *
  • Posts: 1828
  • Merit: 91
    • View Profile
    • Carcassonne Latvia
Re: "Connection Lost" on local game
« Reply #5 on: December 14, 2017, 10:48:13 PM »
Which Java version do you use, rfielder?
"I never lose. Either I win or I learn." (Nelson Mandela)

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
Re: "Connection Lost" on local game
« Reply #6 on: December 15, 2017, 04:56:30 AM »
Which Java version do you use, rfielder?
Latest available - which has been out since mid-October 2017.

java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)

Just re-installed it, and it verified OK.  Have not played any games yet to know if reinstalling Java makes any difference.

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
Re: "Connection Lost" on local game
« Reply #7 on: December 15, 2017, 10:14:27 AM »
Just happened again, playing against the computer on my laptop.

Reinstalling Java and rebooting did not help.

Offline TheSteveAllen

  • Marquis
  • ***
  • Posts: 451
  • Merit: 25
  • Power to the Meeple!
    • View Profile
Re: "Connection Lost" on local game
« Reply #8 on: December 15, 2017, 10:53:03 AM »
Robert, this is a real shot in the dark, but I have had strange things happen when plugins have been activated, especially the catapult tiles. It probably has nothing to do with your problem, but I suggest that you check that only the classic tiles are enabled and try again. At least it will eliminate another possibility even if there is no improvement.

Good luck!

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
Re: "Connection Lost" on local game
« Reply #9 on: December 15, 2017, 12:41:42 PM »
Robert, this is a real shot in the dark, but I have had strange things happen when plugins have been activated....
A good point!

Unfortunately i have none activated.  Using the basic default configuration, and have been playing only with the expansions for the current Worlds since instlalling v4.

Offline Fizanko

  • Vagabond
  • *
  • Posts: 1
  • Merit: 0
  • I haven't updated my profile yet!
    • View Profile
Re: "Connection Lost" on local game
« Reply #10 on: December 15, 2017, 07:05:58 PM »
Hello,

I just got this "connection lost" error while playing against 1 ai , once the error happens it is not possible to continue playing.
This was completely default game settings as i had just downloaded the latest JCloisterZone, it happened on the 2nd consecutive game , the first one had no problem.

This never happened before when i was on a previous version ( 3.xx as this version is the first 4.xx i downloaded ).

edit : oh happened again, fortunately older version is still availble.
« Last Edit: December 15, 2017, 07:43:40 PM by Fizanko »

Offline farin

  • Duke
  • *
  • Posts: 233
  • Merit: 41
  • JCloisterZone maintainer
    • View Profile
Re: "Connection Lost" on local game
« Reply #11 on: December 17, 2017, 12:24:53 AM »
Hi guys

at least whole 4.x branch behaves badly when messages are lost network. That something which needs some care too.
Which shouldn't be you case when you are playing locally.

I looked at JavaWebsocket library, and since 3.x there is many many changes. I would like to rather not revert it to version used in 3.x
Instead I am just trying to make it work smoothly on recent version (an truth is that 4.0.2 wan't built with latest)

Current checlist:
- use really latest JavaWebsocet
- disable hearthbeat
- solve lost message bug

then I am going to rebuild it and you can try if it helps. It should happen tomorrow.

Sorry for these troubles, 4.x is rather complete rewrite then just app update. Which causes all regression bugs. But i was needed if I can be able to make new great things.


Offline farin

  • Duke
  • *
  • Posts: 233
  • Merit: 41
  • JCloisterZone maintainer
    • View Profile
Re: "Connection Lost" on local game
« Reply #12 on: December 17, 2017, 03:11:49 PM »
hmmm my connection lost handling is terribly broken.

Good news is that I know what to do :-) New hotfix release will be needed asap.

Offline rfielder

  • Marquis
  • ***
  • Posts: 472
  • Merit: 10
  • Carcassonne Beginner
    • View Profile
    • Cool Country Nights
Re: "Connection Lost" on local game
« Reply #13 on: December 18, 2017, 12:26:54 PM »
farin - I am being prompted to download 4.0.2.

However, I don't see any announcements here of this version.

Might 4.0.2 address any of the lost connection issues? Or is that issue with lost connections still lost in coding, for even more lost time and lost games?

 :)

Offline farin

  • Duke
  • *
  • Posts: 233
  • Merit: 41
  • JCloisterZone maintainer
    • View Profile
Re: "Connection Lost" on local game
« Reply #14 on: December 19, 2017, 12:28:35 AM »
4.0.2 doesn't help you, wait with update.

I am going to replace it with 4.1.0 in few days, hopefully tomorrow.
Shame on me. Making it stable it's top priority for me now. Current release it unsatisfying.


Share via delicious Share via digg Share via facebook Share via furl Share via linkedin Share via myspace Share via reddit Share via stumble Share via technorati Share via twitter

  Subject / Started by Replies / Views Last post
xx
Connection lost in Online game

Started by Hounk

5 Replies
2452 Views
Last post March 01, 2015, 01:00:53 PM
by farin
xx
A copy of "Die Belagerer" for either "Die Katharer" or "Die Kornkreise I"

Started by Hylian87

3 Replies
3969 Views
Last post September 11, 2013, 03:04:52 PM
by Hylian87
xx
RGG "Princess" rule change a case of wrong trsl. or established for "retheming"

Started by Hounk

0 Replies
1529 Views
Last post July 09, 2015, 01:30:40 AM
by Hounk
question
Opinions sought on "base" game and expnasions

Started by jvnoledawg

16 Replies
8064 Views
Last post December 01, 2013, 08:43:15 PM
by whaleyland
xx
font of the word "Carcassonne" game??

Started by Mrbekr

4 Replies
4169 Views
Last post April 26, 2015, 05:49:38 PM
by gantry