bugGlobulation 2 - Bugs: bug #21897, Network play broken in 0.9.1

 
 

bug #21897: Network play broken in 0.9.1

Submitter:  None
Submitted:  Thu 27 Dec 2007 07:57:28 AM UTC
   
 
Severity:  5 - Blocker Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release:  None Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 02 Feb 2008 05:23:42 PM UTC, comment #14: 

LAN games have worked for me ever since changeset 74c2ea541e05:

http://hg.globulation2.org/glob2/rev/74c2ea541e05

BTW, run "hg view" inside of your checkout for a nice overview that shows branching.

MWM

Matthew Marshall <mmarshall>
Sat 02 Feb 2008 04:52:39 PM UTC, comment #13: 

Well thats the only commit recent enough to have fixed this but even if that wasn't it it's still working for me now. I even deleted all glob2 source from my system and reinstalled with "hg clone http://hg.globulation2.org/glob2/" which I believe is the default branch on both of my systems. I then recompiled and tried connecting my 32bit system to my 64bit system (which has previously been shown to consistently crash) and it worked just fine. This is why I would like someone else to try testing LAN functionality (especially on a windows/mac system neither of which I have) on another computer to see if this is really fixed or if there is some other reason it has begun working on my computer that I can't think of.

Kevin Clement <donkyhotay>
Group Member
Sat 02 Feb 2008 03:05:22 PM UTC, comment #12: 

unfortunately the hg webfrontend doesn't tell but http://hg.globulation2.org/glob2/rev/8a4687091776 is not in the the branch "default". it is in my branch on unit assignment that is not yet remerged to default as it still has an unresolved crash bug and not the functionality i see essential to merge.

Leo Wandersleb <giszmo>
Group Member
Fri 01 Feb 2008 04:17:22 PM UTC, comment #11: 

Err... I meant the code from hg of course.

Kevin Clement <donkyhotay>
Group Member
Fri 01 Feb 2008 04:13:05 PM UTC, comment #10: 

I was planning on taking another look at this bug but after recompiling the source code from SVN as of today it worked perfectly on all of my systems. I've looked through the most recent changes and the only one that looks even remotely related is this one http://hg.globulation2.org/glob2/rev/8a4687091776 and thats only because it is reported as a change to the debug system (when this bug occured it was due to assertion failing). Can anyone else test this bug and confirm whether it's actually fixed or not?

Kevin Clement <donkyhotay>
Group Member
Sat 26 Jan 2008 11:04:06 PM UTC, comment #9: 

my system is 64bit so this would fit into what donkyhotay found out.

Leo Wandersleb <giszmo>
Group Member
Fri 25 Jan 2008 07:58:58 PM UTC, comment #8: 

Oh and BTW both my 64 and 32bit computers were both running their respective versions of ubuntu 7.10

Kevin Clement <donkyhotay>
Group Member
Fri 25 Jan 2008 07:38:32 PM UTC, comment #7: 

While running some tests on this I found that this glitch behaves differently when running glob2 on a 64bit system as compared to a 32bit system. Regardless of who hosts, if a 32bit client connects, the host crashes but if a 64bit client connects the game runs just fine (with ubuntu 7.10 at least). As I mentioned previously, I didn't find any difference as to whether a 32 or 64bit client hosted just whether a 32 or 64bit client connected.

Kevin Clement <donkyhotay>
Group Member
Sat 29 Dec 2007 09:46:09 AM UTC, comment #6: 

I think the LAN network is broken while YOG is working.

Steph

Stephane Magnenat <nct>
Group administrator
Sat 29 Dec 2007 03:43:33 AM UTC, comment #5: 

I've come across this as well on Ubuntu.

Does the network game work for anyone?  Or is this a problem with our setup?

Matthew Marshall <mmarshall>
Fri 28 Dec 2007 09:05:48 AM UTC, comment #4: 

This will be the same as bug 21306.
https://savannah.nongnu.org/bugs/index.php?21306

Peter Fox <roestock>
Thu 27 Dec 2007 08:35:03 PM UTC, comment #3: 

ok. this is very reproducable :(
if this bt is not enough you can reproduce it with two clients on the same machine.

(gdb) thread apply all bt

Thread 3 (Thread 0x41077950 (LWP 4833)):
#0  0x00002b1104e98b81 in nanosleep () from /lib/libc.so.6
#1  0x00002b11039a7e64 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#2  0x00000000005ec5a0 in record (pointer=0xb58160) at src/VoiceRecorder.cpp:78
#3  0x00002b11039628e7 in ?? () from /usr/lib/libSDL-1.2.so.0
#4  0x00002b11039a5a49 in ?? () from /usr/lib/libSDL-1.2.so.0
#5  0x00002b1106c963f7 in start_thread () from /lib/libpthread.so.0
#6  0x00002b1104ed294d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x40802950 (LWP 4832)):
#0  0x00002b1104e98b81 in nanosleep () from /lib/libc.so.6
#1  0x00002b11039a7e64 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#2  0x00002b11039a7e9e in ?? () from /usr/lib/libSDL-1.2.so.0
#3  0x00002b11039628e7 in ?? () from /usr/lib/libSDL-1.2.so.0
#4  0x00002b11039a5a49 in ?? () from /usr/lib/libSDL-1.2.so.0
#5  0x00002b1106c963f7 in start_thread () from /lib/libpthread.so.0
#6  0x00002b1104ed294d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x2b1107a90b70 (LWP 4829)):
#0  0x00002b1104e2cfd5 in raise () from /lib/libc.so.6
#1  0x00002b1104e2ea30 in abort () from /lib/libc.so.6
#2  0x00002b1104e263df in __assert_fail () from /lib/libc.so.6
#3  0x00000000005fb6c6 in boost::shared_ptr<YOGGame>::operator-> (this=0x97b348) at /usr/include/boost/shared_ptr.hpp:253
#4  0x0000000000604653 in YOGPlayer::handleJoinGame (this=0x97b2e0, ngameID=240) at src/YOGPlayer.cpp:325
#5  0x00000000006059e3 in YOGPlayer::update (this=0x97b2e0) at src/YOGPlayer.cpp:109
#6  0x00000000005f95d3 in YOGGameServer::update (this=0xa14990) at src/YOGGameServer.cpp:45
#7  0x00000000005eee3d in YOGClient::update (this=0xb21680) at src/YOGClient.cpp:72
#8  0x000000000055d04c in MultiplayerGame::update (this=0xd5c550) at src/MultiplayerGame.cpp:52
#9  0x0000000000563086 in MultiplayerGameScreen::onTimer (this=0x7fffa7ab5e70, tick=11638) at src/MultiplayerGameScreen.cpp:113
#10 0x000000000061ccbd in GAGGUI::Screen::dispatchTimer (this=0x7fffa7ab5e70, tick=11638) at libgag/src/GUIBase.cpp:603
#11 0x000000000061df69 in GAGGUI::Screen::execute (this=0x7fffa7ab5e70, gfx=0x966c80, stepLength=40) at libgag/src/GUIBase.cpp:445
#12 0x00000000004f87c8 in LANMenuScreen::onAction (this=0x7fffa7ae6f70, source=0xa8c9d0, action=GAGGUI::BUTTON_RELEASED, par1=1, par2=0) at src/LANMenuScreen.cpp:85
#13 0x000000000061fe29 in GAGGUI::Button::onSDLMouseButtonUp (this=0xa8c9d0, event=0x7fffa7ab6380) at libgag/src/GUIButton.cpp:80
#14 0x000000000061d00c in GAGGUI::Screen::dispatchEvents (this=0x7fffa7ae6f70, event=0x7fffa7ab6380) at libgag/src/GUIBase.cpp:572
#15 0x000000000061e0ac in GAGGUI::Screen::execute (this=0x7fffa7ae6f70, gfx=0x966c80, stepLength=40) at libgag/src/GUIBase.cpp:482
#16 0x00000000004dc0b0 in Glob2::run (this=0x7fffa7ae70bf, argc=1, argv=0x7fffa7ae71a8) at src/Glob2.cpp:389
#17 0x00000000004dc772 in main (argc=1, argv=0x7fffa7ae71a8) at src/Glob2.cpp:502

Leo Wandersleb <giszmo>
Group Member
Thu 27 Dec 2007 04:03:10 PM UTC, comment #2: 

This bug is major. Bradley, can you have a look at it?

Stephane Magnenat <nct>
Group administrator
Thu 27 Dec 2007 08:17:40 AM UTC, comment #1: 
Anonymous
Thu 27 Dec 2007 07:57:28 AM UTC, original submission:  

Recently when trying to run glob2 (games-strategy/glob2-0.9.1) over the network I find it crashes or locks up. Just to be clear - this is the first time I've tried to run this version of glob2 over the network.

The only clue I have is if I run glob2 from the command line I get the following message after the hosting glob2 blows up:

glob2: /usr/include/boost/shared_ptr.hpp:315: T* boost::shared_ptr<T>::operator->() const [with T = YOGGame]: Assertion `px != 0' failed.

This happens when the other player attempts to connect to the host machine - the other player's glob2 doesn't crash, but reports that the host is not ready.

I updated boost from 1.33.1 to 1.34.1 to see if that helps, but it didn't. (On the machine that builds with gcc-4.2.2. The other machine is still on gcc-4.1.2).

When I downgraded to 0.8.23 at both ends it worked fine.

This is on gentoo linux 2007.0, all packages up to date (with some unstable).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #14709:  emergeInfo.txt added by None (4KiB - plain/text - emerge --info)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by genixpro (Updated the item)
  • -email is unavailable- added by donkyhotay (Posted a comment)
  • -email is unavailable- added by mmarshall (Posted a comment)
  • -email is unavailable- added by roestock (Posted a comment)
  • -email is unavailable- added by roestock (Originator)
  • -email is unavailable- added by giszmo (Posted a comment)
  • -email is unavailable- added by nct (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-06 genixpro StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2008-02-01 donkyhotay StatusConfirmed Works For Me
    2007-12-28 roestock Carbon-Copy- Added roestock
    2007-12-27 nct Severity3 - Normal 5 - Blocker
        StatusNone Confirmed
    2007-12-27 None Attached File- Added emergeInfo.txt, #14709

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code