Re: [Sugar-devel] multiple instances of activities

2010-10-19 Thread James Cameron
On Tue, Oct 19, 2010 at 04:01:02PM +0200, tom.staub...@fhtw-berlin.de wrote:
> A couple of hours later, after several restarts, the behavior
> reappeared. I can't tell for sure if I single or double clicked. I got
> 5 instances of TamTamJam at once on the XO-1.5. See screenshot here:
> http://www.flatlandfarm.de/blog/?p=39 Again I tried to reproduce it
> but I couldn't. 

Well, that means either the patch didn't properly solve the underlying
cause, or the problem you experienced had a different cause to the
original problem.

By the way, you can more rapidly restart Sugar on the XO by using the
key sequence Control/Alt/Erase.  This terminates the X server and
restarts it.  Less time cost than a full restart.  Don't use it more
than a few times per minute though, because if you do the system then
decides something is wrong and won't start X.

> By the way, is this here the right place to post this anyway? Would it be
> preferred if I post bugs in trac directly? If yes: is it better to
> open a new ticket, or to append my findings to probably related
> tickets?

Your test reports on that patch would be useful in ticket #10016.  I've
added a link to this discussion.

> Just to be sure if I applied the patch to the correct files:
> /usr/lib/python2.6/site-packages/jarabe/model/shell.py
> /usr/lib/python2.6/site-packages/jarabe/view/service.py
> 
> According to [2], this should be the right place, right?

Sorry, I presumed too much knowledge on your part.  sugar-devel@ is a
developers mailing list.  ;-)  Yes, that looks like the right place.  I
would "yum install patch" first, and then "cd
/usr/lib/python2.6/site-packages/" before trying something like "patch
--dry-run --strip 2 < /tmp/sugar-0.84-1719.patch" to see if the patch
matches the source, and if it reports no problems I'd repeat it without
the --dry-run option.  Then I'd restart Sugar with Control/Alt/Erase and
the new code would be running.

> I'm not too familiar with Python, I know that there are compiled files (.pyc).
> Do I have to replace them manually after applying a patch?
> or do they get replaced automatically?

They are replaced automatically.

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] multiple instances of activities

2010-10-19 Thread tom.staub...@fhtw-berlin.de
Oops. Seems I wrote the previous mail a bit too soon.
I applied the patch to both, the XO-1 and the XO-1.5 [1]
Before I applied the patch I tried if I can reproduce the bug by double 
clicking an activity's icon in the home view.
This worked for at least 4-5 times in a row (I didn't check more often) on both 
machines. Having applied the patch, double clicking did 
not do any harm no more, on both machines.

A couple of hours later, after several restarts, the behavior reappeared. I 
can't tell for sure if I single or double clicked.
I got 5 instances of TamTamJam at once on the XO-1.5. See screenshot here: 
http://www.flatlandfarm.de/blog/?p=39
Again I tried to reproduce it but I couldn't. 

By the way, is this here the right place to post this anyway? Would it be 
preferred if I post bugs in trac directly?
If yes: is it better to open a new ticket, or to append my findings to probably 
related tickets?

I will keep an eye on the XO-1, to see if it reoccurs there as well.

Just to be sure if I applied the patch to the correct files:
/usr/lib/python2.6/site-packages/jarabe/model/shell.py
/usr/lib/python2.6/site-packages/jarabe/view/service.py

According to [2], this should be the right place, right?
I'm not too familiar with Python, I know that there are compiled files (.pyc). 
Do I have to replace them manually after applying a patch?
or do they get replaced automatically? If this needs to be done manually: is 
deleting them enough to get them generated anew automatically?
Where do I find them?

Thanks,
Tom



[1]
XO 1.5
Build: 850
Sugar: 0.84.16
Firmware: Q3A48
Wireless Firmware: 9.70.7.p0


XO 1.0
Build: 852
Sugar: 0.84.16
Firmware: Q2E45
Wireless Firmware: 5.110.22.p23


[2] http://wiki.laptop.org/go/Source_code




On Oct 19, 2010, at 12:29 PM, tom.staub...@fhtw-berlin.de wrote:

> Hi James,
> thanks for your help. It looks as if this solves the problem.
> Is there a better way to apply a patch than to do it manually? 
> I found an old discussion about having an activity to apply patches, but 
> these ideas do not seem to have turned into reality?
> Applying the patch manually typing or copy/pasting the code seems to be 
> pretty error prone.
> I will also have to do this on seven XOs, a one click solution would be 
> really great.
> 
> How is this handled at schools? I guess the kids are not expected to this 
> themselves? If teachers have to to do the patching, I guess it's quite a lot 
> of workload.
> 
> Thanks,
> Tom
> 
> 
> 
> On Oct 18, 2010, at 5:01 AM, James Cameron wrote:
> 
>> On Sun, Oct 17, 2010 at 02:15:47PM +0200, tom.staub...@fhtw-berlin.de wrote:
>>> The behavior was not connected to a single activity as I encountered
>>> it in Record, TamTamJam and Etoys. It was not intentionally
>>> reproducible but it happened quite often. Most of the time none of the
>>> instances got started properly. Record for example looked quite ok,
>>> but did not display a camera image.  One of the icons in the frame
>>> kept pulsing and the instances could not be stopped. The XO had to be
>>> restarted. This happened on at least three different XO-1s all running
>>> Build 852, Sugar 0.84.16. 
>> 
>> This sounds like http://dev.laptop.org/ticket/10016 also recorded as
>> http://bugs.sugarlabs.org/ticket/1719 for which a patch is available.
>> 
>> Could you please try the patch?  You can find it in #10016.
>> 
>> -- 
>> James Cameron
>> http://quozl.linux.org.au/
> 
> 

Tom Staubitz
--
tom.staub...@fhtw-berlin.de



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] multiple instances of activities

2010-10-17 Thread James Cameron
On Sun, Oct 17, 2010 at 02:15:47PM +0200, tom.staub...@fhtw-berlin.de wrote:
> The behavior was not connected to a single activity as I encountered
> it in Record, TamTamJam and Etoys. It was not intentionally
> reproducible but it happened quite often. Most of the time none of the
> instances got started properly. Record for example looked quite ok,
> but did not display a camera image.  One of the icons in the frame
> kept pulsing and the instances could not be stopped. The XO had to be
> restarted. This happened on at least three different XO-1s all running
> Build 852, Sugar 0.84.16. 

This sounds like http://dev.laptop.org/ticket/10016 also recorded as
http://bugs.sugarlabs.org/ticket/1719 for which a patch is available.

Could you please try the patch?  You can find it in #10016.

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] multiple instances of activities

2010-10-17 Thread tom.staub...@fhtw-berlin.de
Hi,
I think I encountered a bug in Sugar. Looks like it might be related to this 
one:
http://dev.laptop.org/ticket/10153

The behavior was not connected to a single activity as I encountered it in 
Record, TamTamJam and Etoys. It was not intentionally reproducible but it 
happened quite often. Most of the time none of the instances got started 
properly. Record for example looked quite ok, but did not display a camera 
image.  One of the icons in the frame kept pulsing and the instances could not 
be stopped. The XO had to be restarted. This happened on at least three 
different XO-1s all running Build 852, Sugar 0.84.16. 
I was able to take screenshots of the context menus of the doubled instances 
frame icons. They look quite interesting, you can find them here:

http://www.flatlandfarm.de/blog/?p=36

I hope it helps,
Cheers, 
Tom
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel