<div dir="ltr"><br><div>You're right.</div><div>favicon.ico was not in the original package. I've added it during my test because I've seen the error message like you and thought that the timeout come from it. But it's not the case, the error is the same with favicon.ico and some other Sugar Web activities without favicon.ico don't have the issue.</div>
<div><br></div><div> Lionel.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-01-28 Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There are something strange in this log:<div>This line:</div><div class="im"><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">1390662262.276506 ERROR root: Using port 50662</span><br>
</div></div><div>
<span style="font-family:arial,sans-serif;font-size:13.333333969116211px">is definitively WEBKIT1 stuff (is the port where the server is running)</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">and the server show every file served,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">but when I run it here, I get a line:</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">file /home/gonzalo/Activities/FoodChain.activity//favicon.ico not found.</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><div>
<br></div><div>and I can't see that line in your log.</div><div>Are you sure you have the last testing image?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Gonzalo</div></font></span></span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">
On Sun, Jan 26, 2014 at 5:38 AM, Lionel Laské <span dir="ltr"><<a href="mailto:lionel@olpc-france.org" target="_blank">lionel@olpc-france.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr"><br><div>Hi all,</div><div><br></div><div>I'm currently porting my FoodChain activity [1] as a full Sugar Web activity. It's mainly a packaging work because FoodChain is already written in HTML5/JavaScript but with a Python package around it.</div>
<div><br></div><div>The new Sugar Web activity works well but when I'm testing it on Sugar 0.100 on the XO, the loading process is very long (more than 1 minute) - tested on the XO 1.75 and XO 4 on the old and the recent package.</div>
<div><br></div><div>I've isolated the lost time using the sugar-launch command (see log below). It takes more than 1 minute to load "favicon.ico" (see log between 15:04:23 and 15:05:34). I don't see any reason for that because it's a very tiny file.</div>
<div>More, when I delete this file, the lost time is still here and when I see the trace for another Sugar Web activity, I don't have this loading time, including when "favicon.ico" is not here.</div><div>Launching the activity on sugar-build don't show this issue neither.</div>
<div>I suspect that the problem is not on "favicon.ico" but on something like a "timeout" somewhere (on a socket ?). </div><div>Source code of the activity is here [2], the packaged activity with this issue could be downloaded here [3].</div>
<div><br></div><div>Any suggestion is welcome to help me to debug this issue.</div><div><br></div><div>Best regards from France.</div><div><br></div><div> Lionel.</div><div><br></div><div><br></div><div>[1] <a href="http://activities.sugarlabs.org/en/sugar/addon/4612" target="_blank">http://activities.sugarlabs.org/en/sugar/addon/4612</a> </div>
<div>[2] <a href="https://github.com/llaske/FoodChain" target="_blank">https://github.com/llaske/FoodChain</a></div><div>[3] <a href="http://laske.fr/tmp/foodchain-4.xo" target="_blank">http://laske.fr/tmp/foodchain-4.xo</a> </div>
<div><br></div><div><br>
</div><div><br></div><div><br></div><div><div>[olpc@schoolserver FoodChain.activity]$ sugar-launch org.olpcfrance.FoodChain</div><div>org.olpcfrance.FoodChain</div><div>1390662262.276506 ERROR root: Using port 50662</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:22] "GET /index.html HTTP/1.1" 200 -</div><div><br></div><div>(sugar-activity:4018): Gdk-CRITICAL **: gdk_device_get_source: assertion `GDK_IS_DEVICE (device)' failed</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/sugar-web/graphics/css/sugar.css HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /enyo/enyo.css HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /enyo/enyo.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/require.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /depends.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /styles.css HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/package.js HTTP/1.1" 200 -</div><div>
xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/Canvas.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/CanvasControl.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/Shape.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/Circle.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/Rectangle.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/Text.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/canvas/Image.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /l10n.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /util.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /audio.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /timer.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /card.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /chain.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /shadowbutton.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /sprite.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /learngame.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /buildgame.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /playgame.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /credits.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /app.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /activity/activity-icon.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /images/en.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /images/fr.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:04:23] "GET /lib/sugar-web/graphics/icons/actions/activity-stop.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:34] "GET /favicon.ico HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:34] "GET /js/loader.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /js/activity.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/webL10n.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/activity/activity.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/graphics/radiobuttonsgroup.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/datastore.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/activity/shortcut.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/bus.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/env.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/graphics/icon.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/graphics/activitypalette.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/graphics/palette.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/domReady.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/graphics/icons/emblems/arrow-down.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /activity/activity-icon.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /lib/sugar-web/graphics/icons/emblems/arrow-up.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /locale.ini HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/FoodChain.png HTTP/1.1" 200 -</div><div>
xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/one.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/one_shadow.svg HTTP/1.1" 200 -</div><div>
xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/two.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/two_shadow.svg HTTP/1.1" 200 -</div><div>
xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/three.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/three_shadow.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:35] "GET /images/information.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:36] "GET /images/information_shadow.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:36] "GET /activity/activity-icon.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:36] "GET /audio/popcorn.ogg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:37] "GET /images/cards/grass.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:37] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:38] "GET /images/cards/tick.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:38] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:39] "GET /images/cards/fox.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:39] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:40] "GET /images/cards/ox.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:40] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:41] "GET /images/cards/mole.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:41] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:43] "GET /images/cards/swan.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:43] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:44] "GET /images/cards/pig.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:44] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:45] "GET /images/cards/corn.png HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [25/Jan/2014 15:05:45] "GET /images/sound_icon.png HTTP/1.1" 200 -</div>
<div>/usr/bin/sugar-activity:164: Warning: gsignal.c:2576: instance `0x3c58a0' has no handler with id `132'</div><div> main()</div><div>/usr/bin/sugar-activity:164: Warning: gsignal.c:2576: instance `0x2089e8' has no handler with id `133'</div>
<div> main()</div><div>[olpc@schoolserver FoodChain.activity]$ </div></div></div>
<br></div></div><div class="im">_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></div></blockquote></div><br><br clear="all"><div class="im"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</div></div>
</blockquote></div><br></div>