Last modified: 2011-04-14 15:12:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21867, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19867 - Inject into renderd rendering queue when we emit a static map
Inject into renderd rendering queue when we emit a static map
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SlippyMaps (Other open bugs)
unspecified
All All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-21 22:13 UTC by Ævar Arnfjörð Bjarmason
Modified: 2011-04-14 15:12 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ævar Arnfjörð Bjarmason 2009-07-21 22:13:58 UTC
From renderd readme.txt:

  The render daemon implements a queueing mechanism which
  can render foreground requests (for new tiles being viewed)
  and background requests (updating tiles which have expired).
  The size of the queue and the number of threads is determined
  at compile time, see: render_config.h

It would be very nice when we emit a static map for a given bbox/scale to send render requests to slightly_bigger(bbox,scale) so that we're guaranteed to have tiles for the immediate area of a static map.

slightly_bigger() would expend the bbox somewhat and make sure we have renderings for a few more zoom levels than just what the map covers.
Comment 1 Ævar Arnfjörð Bjarmason 2009-07-28 16:17:54 UTC
Some work was made towards this in r53815.

However it seems to be slightly buggy, when including this map of Gaza for the first time:

    <slippymap lat=31.470738420215 lon=34.447998044618 zoom=12 width=400 height=300 mode=osm-wm layer=osm-like locale=fo />

We'll get this:

Originally previewing the static map in the article:
    
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4879), y(3340)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4879), y(3341)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4880), y(3340)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4880), y(3341)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4881), y(3340)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4881), y(3341)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4882), y(3340)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(13), x(4882), y(3341)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(12), x(2440), y(1670)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(12), x(2441), y(1670)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9757), y(6680)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9757), y(6681)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9757), y(6682)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9757), y(6683)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9758), y(6680)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9758), y(6681)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9758), y(6682)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9758), y(6683)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9759), y(6680)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9759), y(6681)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9759), y(6682)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9759), y(6683)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9760), y(6680)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9760), y(6681)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9760), y(6682)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9760), y(6683)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9761), y(6680)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9761), y(6681)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9761), y(6682)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9761), y(6683)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9762), y(6680)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9762), y(6681)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9762), y(6682)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9762), y(6683)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9763), y(6680)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9763), y(6681)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9763), y(6682)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Dirty fd(16) xml(fo), z(14), x(9763), y(6683)
    renderd[7343]: DEBUG: Connection 57, fd 16 closed, now 57 left
    renderd[7343]: DEBUG: DONE TILE fo 13 4872-4879 3336-3343
    renderd[7343]: DEBUG: DONE TILE fo 14 9752-9759 6680-6687
    renderd[7343]: DEBUG: DONE TILE fo 13 4880-4887 3336-3343
    renderd[7343]: DEBUG: DONE TILE fo 14 9760-9767 6680-6687
    renderd[7343]: DEBUG: DONE TILE fo 12 2440-2447 1664-1671
    
Clicking on the slippy map:
    
    renderd[7343]: DEBUG: Got incoming connection, fd 16, number 58
    renderd[7343]: DEBUG: Got command Render fd(16) xml(fo), z(12), x(2439), y(1670)
    renderd[7343]: DEBUG: Got incoming connection, fd 22, number 59
    renderd[7343]: DEBUG: Got command Render fd(22) xml(fo), z(12), x(2439), y(1669)
    renderd[7343]: DEBUG: Got command Render fd(72) xml(fo), z(12), x(2438), y(1669)
    renderd[7343]: DEBUG: Got command Render fd(28) xml(fo), z(12), x(2438), y(1670)
    renderd[7343]: DEBUG: Got command Render fd(57) xml(fo), z(12), x(2438), y(1671)
    renderd[7343]: DEBUG: Got command Render fd(34) xml(fo), z(12), x(2439), y(1671)
    renderd[7343]: DEBUG: DONE TILE fo 12 2432-2439 1664-1671
    renderd[7343]: DEBUG: Got command Render fd(22) xml(fo), z(12), x(2437), y(1672)
    renderd[7343]: DEBUG: Got command Render fd(16) xml(fo), z(12), x(2438), y(1672)
    renderd[7343]: DEBUG: Got command Render fd(72) xml(fo), z(12), x(2439), y(1672)
    renderd[7343]: DEBUG: Got command Render fd(57) xml(fo), z(12), x(2440), y(1672)
    renderd[7343]: DEBUG: Got command Render fd(28) xml(fo), z(12), x(2441), y(1672)
    renderd[7343]: DEBUG: Got command Render fd(34) xml(fo), z(12), x(2442), y(1672)
    renderd[7343]: DEBUG: DONE TILE fo 12 2432-2439 1672-1679
    renderd[7343]: DEBUG: DONE TILE fo 12 2440-2447 1672-1679

The second batch of renderings suggests that we missed something the first time around.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links