GTK+2 client network functionality does not work in Oneiric

Bug #819780 reported by Toby Smithe
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Freeciv
Unknown
Unknown
freeciv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

1. Open freeciv-gtk2
2. Select "Connect to network game"
3. Nothing happens

Related branches

Revision history for this message
KarlGoetz (kgoetz) wrote : Re: [Pkg-games-ubuntu] [Bug 819780] [NEW] GTK+2 client network functionality does not work in Oneiric

On Tue, 02 Aug 2011 12:19:58 -0000
Toby Smithe <email address hidden> wrote:

> Public bug reported:
>
> 1. Open freeciv-gtk2
> 2. Select "Connect to network game"
> 3. Nothing happens

What exactly does 'Nothing happens' mean? the window doesn't refresh,
it goes blank, menus dont change, ...?
thanks,
kk

--
Karl Goetz, (Kamping_Kaiser / VK5FOSS)
Debian contributor / gNewSense Maintainer
http://www.kgoetz.id.au
No, I won't join your social networking group

Revision history for this message
Toby Smithe (tsmithe) wrote : Re: [Pkg-games-ubuntu] [Bug 819780] [NEW] GTK+2 client network functionality does not work in Oneiric

Nothing happens means exactly as you'd expect: literally, nothing
changes, or is updated or outputted. The state of the application
seems to remain exactly the same as before the click, as if the button
had no functions implemnted in the code.

On 03/08/2011, KarlGoetz <email address hidden> wrote:
> On Tue, 02 Aug 2011 12:19:58 -0000
> Toby Smithe <email address hidden> wrote:
>
>> Public bug reported:
>>
>> 1. Open freeciv-gtk2
>> 2. Select "Connect to network game"
>> 3. Nothing happens
>
> What exactly does 'Nothing happens' mean? the window doesn't refresh,
> it goes blank, menus dont change, ...?
> thanks,
> kk
>
> --
> Karl Goetz, (Kamping_Kaiser / VK5FOSS)
> Debian contributor / gNewSense Maintainer
> http://www.kgoetz.id.au
> No, I won't join your social networking group
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/819780
>
> Title:
> GTK+2 client network functionality does not work in Oneiric
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/freeciv/+bug/819780/+subscriptions
>

--
Toby Smithe

Revision history for this message
Toby Smithe (tsmithe) wrote :

Nothing happens means exactly as you'd expect: literally, nothing
changes, or is updated or outputted. The state of the application
seems to remain exactly the same as before the click, as if the button
had no functions implemnted in the code.

--
Toby Smithe

Revision history for this message
KarlGoetz (kgoetz) wrote :

On Thu, 04 Aug 2011 10:44:22 -0000
Toby Smithe <email address hidden> wrote:

> Nothing happens means exactly as you'd expect: literally, nothing
> changes, or is updated or outputted. The state of the application
> seems to remain exactly the same as before the click, as if the button
> had no functions implemnted in the code.

Please try with the -2 upload, and update the bug if its still a
problem.

thanks,
kk

> On 03/08/2011, KarlGoetz <email address hidden> wrote:
> > On Tue, 02 Aug 2011 12:19:58 -0000
> > Toby Smithe <email address hidden> wrote:
> >
> >> Public bug reported:
> >>
> >> 1. Open freeciv-gtk2
> >> 2. Select "Connect to network game"
> >> 3. Nothing happens
> >
> > What exactly does 'Nothing happens' mean? the window doesn't
> > refresh, it goes blank, menus dont change, ...?
> > thanks,
> > kk
> >

--
Karl Goetz, (Kamping_Kaiser / VK5FOSS)
Debian contributor / gNewSense Maintainer
http://www.kgoetz.id.au
No, I won't join your social networking group

Revision history for this message
Toby Smithe (tsmithe) wrote :

Nope, no help. Sorry!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package freeciv - 2.2.7-2ubuntu1

---------------
freeciv (2.2.7-2ubuntu1) oneiric; urgency=low

  * debian/patches/lp_819780.patch
    - set GDK_NATIVE_WINDOWS=1 to work around a rendering bug (LP: #819780)
 -- Ken VanDine <email address hidden> Mon, 26 Sep 2011 16:05:18 -0400

Changed in freeciv (Ubuntu):
status: New → Fix Released
Revision history for this message
Petteri Aimonen (jpa-lp) wrote :

Just adding a few keywords because it took 4 hours for me to find this bug report:

My self-compiled Freeciv 2.3.0 stopped responding after upgrading to Ubuntu 11.10 Oneiric Ocelot. This bug causes 100% CPU usage and hanging after clicking "Connect to server". In local play, it also causes missing menubars and map not rendering.

On debugger it shows as g_main_loop_run getting stuck by continuously running gdk_window_update_idle.

The fix is very simple, as described above: just export GDK_NATIVE_WINDOWS=1

Revision history for this message
Jacob Nevins (0jacobnk-ulp) wrote :

The (Freeciv) upstream ticket for the problem described here is <http://gna.org/bugs/?18243>.

We first noticed trouble with Gtk+ 2.24.5. It seemed to have come in with the upstream commit "gdk: Make background changes queue a repaint". After a number of trouble reports (not just with Freeciv), various distros (Gentoo, Arch) reverted that patch in their Gtk packages, and Gtk upstream also reverted it before shipping 2.24.6. So we (Freeciv) thought we'd get away with it.

However, Ubuntu had the Gtk patch (010_make_bg_changes_queue_repaint.patch) prior to 2.24.5 (I think perhaps it came from Ubuntu originally?), and re-added it by 2.24.6-0ubuntu5, which is what shipped with Oneiric. So, vanilla Freeciv (and perhaps the other affected apps?) will have trouble for so long as Ubuntu keeps this Gtk patch.

It's a bit unfortunate that non-Ubuntu-packaged Freeciv builds will seemingly need a workaround when running on Ubuntu for the foreseeable future. There's some hope that our move to gtk3 may fix it in passing, but that's some time away from release.

I've done almost no technical investigation into whether Freeciv is doing something wrong or ill-advised to provoke this behaviour. If someone more familiar with the matter has suggestions for a quick upstream fix, that'd be most welcome...

Revision history for this message
Jacob Nevins (0jacobnk-ulp) wrote :

It looks like 010_make_bg_changes_queue_repaint.patch was reverted again from Ubuntu libgtk2+ in LP #889019, and the package in Precise (and the current Quantal package) doesn't have that patch.
Also, you don't include the corresponding workaround (GDK_NATIVE_WINDOWS=1) in the Ubuntu Precise Freeciv package.

That seems like grounds to hope that builds-from-source of the upstream Freeciv distribution running on Ubuntu Precise or later will no longer need the GDK_NATIVE_WINDOWS=1 workaround. Unfortunately, I can't verify this right now.

This is mainly good news for us upstream; I don't think Ubuntu needs to do anything further; I'm posting this for closure, really.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.