URL:
  <http://gna.org/bugs/?24973>

                 Summary: GTK3 Client keeps xfdesktop4 busy
                 Project: Freeciv
            Submitted by: chrisk
            Submitted on: So 14 Aug 2016 14:04:38 CEST
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.5.5+ R33588
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 
 Contains string changes: None

    _______________________________________________________

Details:


xfdesktop from Xfce4 consumes 100% of 1 cpu core over long times, interrupted,
when running freeciv-gtk3 -d 4 -l logfile on a very slow Intel Core Duo mobile
CPU. Sums up to much more cpu usage then the gtk3 client itself.

System is a rather new, updated and slim Debian Jessie, xfce4 conservatively
configured, no background image, no transparency used. I don't know about GL
and such.

Surely level 4 logging won't let expect me to see a fast run.

What I see is, when I start gtk3 client, at one point, xfdesktop starts to be
on, or nearly over 100 % cpu (measured for 1 core (of 2)). ( atop and prtstat
). It stays there, even when I'm not touching keyboard and mouse, for a longer
time (say 20 seconds), then surfing out. Starts again when I continue the
game.

Logging is intensive, 150 MB in less then 1 hour. xz makes 750 KB out of it,
and I'll try to attach it here.

Freeciv itself is playable, but slow.

What found my notice in the logfile, lots of "Drawing" messages with city
names, and, at some point, the city name was always the same, or 2 city
names.

For exampe, there a 30 interations of the following:


4: in show_city_descriptions() [mapview_common.c::1914]: Iterating over
291-276 x 90-85 rectangle.
4: in show_city_descriptions() [mapview_common.c::1924]: Drawing Hunkpapa.
4: in update_map_canvas() [mapview_common.c::1343]: Iterating over 285-282 x
91-88 rectangle.
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 2mal
wiederholt
4: in update_map_canvas() [mapview_common.c::1371]: Iterating over 286-281 x
92-87 rectangle.
4: in unqueue_mapview_updates() [mapview_common.c::2559]:
unqueue_mapview_update: needed_updates=0
4: in update_map_canvas() [mapview_common.c::1309]: unqueue_mapview_update:
needed_updates=0
4: in update_map_canvas() [mapview_common.c::1309]:
update_map_canvas(pos=(1499,165), size=(30,30))
4: in update_map_canvas() [mapview_common.c::1343]: Iterating over 285-282 x
91-88 rectangle.
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 2mal
wiederholt
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 2mal
wiederholt (insgesamt 4 Wiederholungen)
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 4mal
wiederholt (insgesamt 8 Wiederholungen)
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 8mal
wiederholt (insgesamt 16 Wiederholungen)


or iterations of this:


4: in show_city_descriptions() [mapview_common.c::1914]: Iterating over
247-232 x 130-125 rectangle.
4: in show_city_descriptions() [mapview_common.c::1924]: Drawing Potsdam.
4: in show_city_descriptions() [mapview_common.c::1924]: Drawing Lund.
4: in show_city_descriptions() [mapview_common.c::1924]: Drawing
Recklinghausen.
4: in update_map_canvas() [mapview_common.c::1343]: Iterating over 241-238 x
131-128 rectangle.
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 2mal
wiederholt
4: in update_map_canvas() [mapview_common.c::1371]: Iterating over 242-237 x
132-127 rectangle.
4: in unqueue_mapview_updates() [mapview_common.c::2559]:
unqueue_mapview_update: needed_updates=0
4: in update_map_canvas() [mapview_common.c::1309]: unqueue_mapview_update:
needed_updates=0
4: in update_map_canvas() [mapview_common.c::1309]:
update_map_canvas(pos=(689,885), size=(30,30))
4: in update_map_canvas() [mapview_common.c::1343]: Iterating over 241-238 x
131-128 rectangle.
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 2mal
wiederholt
4: in fc_randomly_debug() [rand.c::277]: fc_randomly(10359,1) = 0 at
tilespec.c:4379
4: in update_map_canvas() [mapview_common.c::1343]: Iterating over 241-238 x
131-128 rectangle.
4: in fc_randomly_debug() [rand.c::277]: fc_randomly(10359,1) = 0 at
tilespec.c:4379
4: in update_map_canvas() [mapview_common.c::1343]: Iterating over 241-238 x
131-128 rectangle.
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 2mal
wiederholt
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 2mal
wiederholt (insgesamt 4 Wiederholungen)
4: in update_map_canvas() [mapview_common.c::1343]: letzte Mitteilung 4mal
wiederholt (insgesamt 8 Wiederholungen)
4: in show_city_descriptions() [mapview_common.c::1914]: letzte Mitteilung
4mal wiederholt (insgesamt 12 Wiederholungen)


Christian




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: So 14 Aug 2016 14:04:38 CEST  Name: fclog2.xz  Size: 740kB   By: chrisk

<http://gna.org/bugs/download.php?file_id=28306>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?24973>

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to