RobWatlingSF / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Different results on network game #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello. I'm cannot say how to reproduce this, but...

Today we play Hedgewars network game (we doing this everyday :)), and at the 
end of game (last turn), two computers show different results of the turn - on 
the one computer last hedge was died due to barrels explosion, but on another 
computer this hedge was flying above barrel, and still alive. And finally, 
network disconnection indicator appear (but network was online, and no any 
disconnects happens (this is 1Gb LAN direct connection, about 3 meters between 
computers)).
If I can help with this, logs, debug, etc - just tell me.
Thanks for your game.

Play on:
Ubuntu 10.10 amd64, updated,  Hedgewars 0.9.13-1
Gentoo ~amd64 updated, Hedgewars 0.9.13

Original issue reported on code.google.com by k0l0b0k.void@gmail.com on 24 Sep 2010 at 7:07

GoogleCodeExporter commented 8 years ago
Desync.  In order to debug this, we need ~/.hedgewars/debug0.txt from both 
computers.

What version of fpc was the gentoo version compiled with?

Original comment by kyberneticist@gmail.com on 24 Sep 2010 at 2:19

GoogleCodeExporter commented 8 years ago
in debug0.txt I've got only this:

     0: Console write: Hedgewars 0.9.13 engine (network protocol: 31)
     0: Prefix: "./"
     0: 0: /usr/lib/hedgewars/bin/hwengine
     0: 1: /home/k0l0b0k/.hedgewars
     0: 2: 44017
     0: 3: landpreview
     0: Console write: Init SDL_Net... 
     0: Console write: ok
     0: Console write: Establishing IPC connection... 
     0: Console write: ok
     0: ParseCommand "seed {fb6d858a-2112-4a71-b730-b2113dd1ca41}"
     0: ParseCommand "$template_filter 0"
     0: ParseCommand "$mapgen 0"
     0: ParseCommand "$maze_size 1"
     0: Ping? Pong!
     0: Console write: Generating preview...
     0: Console write: Selected template #37 using filter #0
     0: Console write: Sending preview...
     0: Console write: Preview sent, disconnect
     halt at 0 ticks. TurnTimeLeft = 0

Original comment by k0l0b0k.void@gmail.com on 24 Sep 2010 at 4:42

GoogleCodeExporter commented 8 years ago
At client:
cat .hedgewars/debug0.txt 
     0: Console write: Hedgewars 0.9.13 engine (network protocol: 31)
     0: Prefix: "./"
     0: 0: /usr/games/bin/hwengine
     0: 1: /home/smalcom/.hedgewars
     0: 2: 51516
     0: 3: landpreview
     0: Console write: Init SDL_Net... 
     0: Console write: ok
     0: Console write: Establishing IPC connection... 
     0: Console write: ok
     0: ParseCommand "seed {fbaccda0-d43a-41e3-8053-b0e028365c2c}"
     0: ParseCommand "$template_filter 0"
     0: ParseCommand "$mapgen 0"
     0: ParseCommand "$maze_size 1"
     0: Ping? Pong!
     0: Console write: Generating preview...
     0: Console write: Selected template #19 using filter #0
     0: Console write: Sending preview...
     0: Console write: Preview sent, disconnect
halt at 0 ticks. TurnTimeLeft = 0
-------------------------------
fpc-2.4.0
-----

emerge --info
Portage 2.1.9.10 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 
2.6.35-gentoo-r5.sm1 x86_64)
=================================================================
System uname: 
Linux-2.6.35-gentoo-r5.sm1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+
-with-gentoo-2.0.1
Timestamp of tree: Thu, 23 Sep 2010 10:15:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.4_p6-r1, 1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -mfpmath=sse,387"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/kde4/env /opt/kde4/share/config /opt/kde4/shutdown 
/usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown 
/usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ 
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release 
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ 
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -mfpmath=sse,387"
DISTDIR="/tmp/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixlafiles fixpackages news 
parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn 
unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.kiev.ua/ftp/"
LANG="uk_UA.utf8"
LC_ALL="uk_UA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru ua"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles 
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/pro-audio 
/var/lib/layman/kde-sunset"
SYNC="rsync://rsync1.ua.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 aac aalib acl acpi addressbook aften alsa amd64 amr 
amrr animgif ao ares artworkextra asf asn aspell ass async audio audiofile 
audioscrobbler auth automap automount bzip2 caps ccache cdb cdda cddax cddb 
cdio cdparanoia cdr cdrom chm cli cmake colordiff cracklib crypt css cue cups 
curl curlwrappers cursors cxx cyrillic dbus debugger designer dnotify dri dvd 
dvdnav exceptions extras faac faad fam ffmpeg fftw flac fortran fuse gcrypt 
gdbm gif git gnutls gpm iconv icq id3 id3tag imagemagick inotify irc jabber 
joystick jpeg jpeg2k kde kdm keyboard libnotify lm_sensors lzma mad matroska 
midi mikmod mmx mng modules mouse mp3 mp4 mpd mpeg mplayer mpu401 mudflap 
multilib mysql ncurses networking nfs nfsv3 nfsv4 nls nptl nptlonly ntp objc 
ogg opencore-amr opengl openmp openssl pam pcre pdf perl pkcs11 pl2303 png pppd 
qt3 qt4 rdesktop rdp readline reflection resolvconf samba sdl sdl-sound 
sdlaudio session sse sse2 ssh ssl subversion svg swat sysfs tcpd tga themes 
theora threads tiff udev unicode vorbis wavpack x264 xorg zlib" 
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x 
ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 
trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw 
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa 
lfloat linear meter mmap_emul mulaw multi null plug rate route share shm 
softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 
authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile 
authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock 
deflate dir disk_cache env expires ext_filter file_cache filter headers include 
info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif 
speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" 
INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad 
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru ua" 
RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd vesa" 
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface 
geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac 
delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, 
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
PORTAGE_RSYNC_EXTRA_OPTS

Original comment by smal.r...@gmail.com on 24 Sep 2010 at 4:44

GoogleCodeExporter commented 8 years ago
Yeah, the debug0.txt needs to be saved *immediately* after the errored game 
otherwise it gets rewritten if you generate a new preview image (clicking on 
the randomising map button) or start a new game.

There's probably a desync, but figuring out the conditions for it are going to 
be harder now.

Can only hope it is rare and taken care of in next release.

One last thing to try (although it might not yield as useful of results).
Do you have demos or saves of that game from both computers?
Hopefully you turned on demo/save timestamping.

If you don't well, that's pretty much it.

Original comment by kyberneticist@gmail.com on 24 Sep 2010 at 5:03

GoogleCodeExporter commented 8 years ago

Original comment by kyberneticist@gmail.com on 29 Oct 2010 at 3:23

GoogleCodeExporter commented 8 years ago
Looks like this one won't get resolved

Original comment by kyberneticist@gmail.com on 7 Nov 2010 at 4:21

GoogleCodeExporter commented 8 years ago

Original comment by vittorio...@gmail.com on 24 Nov 2010 at 3:09

GoogleCodeExporter commented 8 years ago
WontFix: bug unable to be fixed due to lack of info.

Original comment by jerryma1...@gmail.com on 26 Nov 2011 at 10:24

GoogleCodeExporter commented 8 years ago
Yep, you are right guys, WontFix. This issue was never been repeated more.
Sorry for long answer, and thanks for your time.

Original comment by k0l0b0k.void@gmail.com on 26 Nov 2011 at 11:02