[SoaS] "Physics" activity [Sugar-devel] SoaS v10 testing and a few minor issues with 0.100

Jean THIERY Jean.Thiery at ModLibre.info
Fri Nov 22 05:49:56 EST 2013


Hello Frederick,

Thank you for your clear explanations
copied at the end of this message.

Below, you will find a copy of « org.laptop.physics-1.log »
obtained today with "Physics" activity (version 11.8).

"Physics" activity (version 11.8) works well
BUT the cursor has a new strange behavior.
When we try to displace an object
by clicking on it with the little "hand" :
- the cursor is invisible within the "experience window"
- but it is visible in the two menu lines
   above the "experience window"
- and the object cannot be displaced.

There is also a recording error when we stops Physics !


Soon on Internet,

Jean [Jean.Thiery(ò)ModLibre.info][http://ModLibre.info/]

================================================================
org.laptop.physics-1.log
================================================================


** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
1385114385.784152 WARNING root: KeepButton has been deprecated since 
Sugar 0.94 and should not be used in newly written code.
1385114385.787253 WARNING root: No gtk.AccelGroup in the top level window.
1385114385.792319 WARNING root: No gtk.AccelGroup in the top level window.
1385114385.834451 WARNING root: No gtk.AccelGroup in the top level window.
1385114385.838294 WARNING root: No gtk.AccelGroup in the top level window.
1385114385.840109 WARNING root: No gtk.AccelGroup in the top level window.
1385114385.842478 WARNING root: No gtk.AccelGroup in the top level window.
/usr/lib/python2.7/site-packages/sugar/graphics/toolbutton.py:48: 
GtkWarning: IA__gtk_accel_group_connect: assertion 'accel_key > 0' failed
   gtk.ACCEL_LOCKED | gtk.ACCEL_VISIBLE)
/usr/lib/python2.7/site-packages/sugar/graphics/window.py:173: 
GtkWarning: IA__gtk_container_remove: assertion 'GTK_IS_TOOLBAR 
(container) || widget->parent == GTK_WIDGET (container)' failed
   self.__hbox.remove(self._canvas)
* Pygame selected as renderer
Traceback (most recent call last):
   File 
"/home/liveuser/Activities/Physics.activity/sugargame/canvas.py", line 
58, in _run_pygame_cb
     main_fn()
   File "/home/liveuser/Activities/Physics.activity/physics.py", line 
124, in run
     self.currentTool.handleEvents(event)
   File "/home/liveuser/Activities/Physics.activity/tools.py", line 66, 
in handleEvents
     return self.handleToolEvent(event)
   File "/home/liveuser/Activities/Physics.activity/tools.py", line 396, 
in handleToolEvent
     tuple_to_int(event.pos))
   File "/usr/lib/python2.7/site-packages/elements/add_objects.py", line 
515, in mouseJoint
     self.parent.mouseJoint = self.parent.world.CreateJoint(mj).getAsType()
AttributeError: 'b2MouseJoint' object has no attribute 'getAsType'

Event queue full!    *approximately 882 times* !!!

Traceback (most recent call last):
   File "/home/liveuser/Activities/Physics.activity/activity.py", line 
205, in _focus_event
     action="focus_in"))
pygame.error: Event queue full
Traceback (most recent call last):
   File "/home/liveuser/Activities/Physics.activity/activity.py", line 
205, in _focus_event
     action="focus_in"))
pygame.error: Event queue full
1385114431.011228 ERROR root: Error saving activity object to datastore
Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/sugar/activity/activity.py", 
line 867, in _prepare_close
     self.save()
   File "/usr/lib/python2.7/site-packages/sugar/activity/activity.py", 
line 701, in save
     self.write_file(file_path)
   File "/home/liveuser/Activities/Physics.activity/activity.py", line 
81, in write_file
     self.game.write_file(file_path)
   File "/home/liveuser/Activities/Physics.activity/physics.py", line 
78, in write_file
     self.world.json_save(path)
   File "/usr/lib/python2.7/site-packages/elements/elements.py", line 
433, in json_save
     import cjson
ImportError: No module named cjson
Traceback (most recent call last):
   File "/home/liveuser/Activities/Physics.activity/activity.py", line 
205, in _focus_event
     action="focus_in"))
pygame.error: Event queue full
Traceback (most recent call last):
   File "/home/liveuser/Activities/Physics.activity/activity.py", line 
205, in _focus_event
     action="focus_in"))
pygame.error: Event queue full
1385114436.205110 ERROR root: pygame already stopped? Event queue full
1385114436.207293 WARNING root: No gtk.AccelGroup in the top level window.
1385114436.207589 WARNING root: No gtk.AccelGroup in the top level window.
1385114436.210834 WARNING root: No gtk.AccelGroup in the top level window.

(sugar-activity:1631): Gdk-ERROR **: The program 'sugar-activity' 
received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
   (Details: serial 107 error_code 3 request_code 2 minor_code 0)
   (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdk_x_error() 
function.)
Terminated by signal 5, pid 1631 data (None, <open file '<fdopen>', mode 
'w' at 0xa7dbd88>, '4f5c62d2554617ef03d26028a576fd0672f9d632')

======= Original message =======================================
Le 20/11/2013 21:26, Frederick Grose a écrit :
> On Tue, Nov 19, 2013 at 4:15 PM, Jean THIERY <Jean.Thiery at modlibre.info
> <mailto:Jean.Thiery at modlibre.info>>wrote:
>
>     {...}
>
>
>     There is also a recording error when we stops Physics !
>
>             Can you take the log file and send to sugar-devel list.
>
>
>     Yes later on, but I have to learn how to do it.
>
>
> If you download the new, version 36 of Log,
> http://activities.sugarlabs.org/en-US/sugar/addons/versions/4056#version-36
>
> It is now working in SoaS for collecting logs in the Journal.
>
> You have to hover or click the first (and colored) Activity toolbar
> icon, and then click the far right, Log collector icon in the sub
> toolbar.  That will reveal a 'Capture information' button in the icon
> palette.
>
> A log-nnnnnnnnnn.zip entry will appear in the Sugar Journal.
> Hovering its icon there will reveal some 'Copy to' options in the menu
> list of the icon palette.
>
> Or, if you open Browse in SoaS and visit or create a ticket at
> https://bugs.sugarlabs.org/
> the 'Attach file' button (under the Attachments dropdown list control)
> will reveal an 'Add Attachment to Ticket #nnnn' page with a 'Chose File'
> button.  That button will open a view of your Journal from which you can
> select the Journal entry for the log-nnnnnnnnnn.zip file.
>
>             --Fred
>
>
> _______________________________________________
> SoaS mailing list
> SoaS at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/soas
>


More information about the SoaS mailing list