Qt Issue

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
User avatar
GriffonSpade
Elite
Posts: 578
Joined: Mon Apr 29, 2013 4:41 pm

Qt Issue

Post by GriffonSpade »

Qt client freezes up every time I try to connect to my local server with client. Note that it only does this with stand-alone servers, not the built-in one. (Windows; 2.5.4 and 2.5.1)

Anyone know what's going on here?
User avatar
mir3x
Veteran
Posts: 110
Joined: Sat Jan 30, 2016 6:17 pm

Re: Qt Issue

Post by mir3x »

1st) If u change name of local server from COMPUTER_NAME to localhost will it connect ?
2) in gtk client if u click on local network and click local server then connect entry box will change from localhost to COMPUTER_NAME, will u connect then ?

I guess that netbios or whatever resolves that name is not working correctly.
User avatar
GriffonSpade
Elite
Posts: 578
Joined: Mon Apr 29, 2013 4:41 pm

Re: Qt Issue

Post by GriffonSpade »

Setting host to both "localhost" and {COMPUTERNAME} work peachy with GTK. (Though, I notice that if I get a refused connection, I have to cancel out to the main menu then come back in for it to let me try to connect again)

It may be notable that when it freezes the bottom has the message "Welcome to Freeciv 2.5.4 Server at port 5556".
It does this whether the servername is set to either "localhost" or {COMPUTERNAME}
Additionally, the server itself is registering the client as connected.
It never gets to the screen showing the game options, staying at the server selection menu. (On LAN tab ofc, since it's local server)
Hitting the Refresh button also freezes it up. As does the Cancel button.
It does not freeze upon pushing connect if the server doesn't exist.
Refresh and Cancel freeze even if there is no server available at all.
User avatar
GriffonSpade
Elite
Posts: 578
Joined: Mon Apr 29, 2013 4:41 pm

Re: Qt Issue

Post by GriffonSpade »

Issue is also present in 2.6 alpha r32928.

Not surprising, but I thought I'd mention it.

Oh, and my windows version is Windows 7 Home Premium with Service Pack 1. If that helps any.

While this issue doesn't affect me much, if it extends beyond localhost, it would mean Qt is non-functional for multiplayer for anyone affected.

If anyone else could chime in if they have similar issues or not, the versions they're using, and what OS they have?
Checks on both localhost and internet metaserver would be helpful.
User avatar
mir3x
Veteran
Posts: 110
Joined: Sat Jan 30, 2016 6:17 pm

Re: Qt Issue

Post by mir3x »

It works well under win7 ultimate, i could connect to localhost and internet server.
I have full qt installed, so maybe I have installed something that u dont. No idea.

Maybe when it will be freezed long enough, windows will ask to close that,
and something like here http://www.cyberlink.com/support/faq-co ... o?id=10449
will be created in event viewer ?

EDIT: I'll stop server scaning before connecting to server, maybe it causes some troubles ( to 2.5.5) (https://gna.org/bugs/index.php?24833)
User avatar
mir3x
Veteran
Posts: 110
Joined: Sat Jan 30, 2016 6:17 pm

Re: Qt Issue

Post by mir3x »

Can u check now with newest build ?

http://download.gna.org/freeciv/package ... .4+r33261/

I added also ability to change qt system theme - no idea if it will work under windows - probably yes - so progressabars should look better with default Fusion Qt theme - but from next build, not that one.
User avatar
GriffonSpade
Elite
Posts: 578
Joined: Mon Apr 29, 2013 4:41 pm

Re: Qt Issue

Post by GriffonSpade »

No visible change in behavior.
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Qt Issue

Post by louis94 »

I saw something similar in trunk on Arch Linux, but can't test for a while. Ping me back in two weeks.

Louis
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Qt Issue

Post by louis94 »

I can reliably reproduce a similar freeze with trunk version. Steps to reproduce:
  1. Start a local server
  2. Open the client
  3. On the start page, choose "Connect to network game"
  4. Click on the local server in the list
  5. Hit "Connect"
  6. Client is frozen
Strangely, there is no freeze if I don't click on the server in the list.

The client gets stuck with the following stack trace:

Code: Select all

#0  0x00007ffff76e540d in connect () from /usr/lib/libpthread.so.0
#1  0x00000000004afe94 in try_to_connect (username=<optimized out>, errbuf=<optimized out>, errbufsize=<optimized out>) at clinet.c:216
#2  0x00000000004afcce in connect_to_server (username=0x927d40 <user_name> "me", hostname=0x927b40 <server_host> "myhostname", port=5556, 
    errbuf=0x7fffffffcff0 "", errbufsize=512) at clinet.c:258
#3  0x0000000000488aac in fc_client::slot_connect() ()
#4  0x000000000055dd58 in fc_client::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#5  0x00007ffff3f504e9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff3680142 in QAbstractButton::clicked(bool) () from /usr/lib/libQt5Widgets.so.5
… stuff from Qt below
Last edited by louis94 on Thu Aug 11, 2016 1:52 am, edited 1 time in total.
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Qt Issue

Post by louis94 »

Post Reply