Problem with camera on Jam2Jam

thorin kerr thorin.kerr at gmail.com
Tue Jun 7 13:23:07 EDT 2011


Thanks a lot for that. Much appreciated.
I've got a hunch about what to do about the audio glitches too.

Thorin


On Tue, Jun 7, 2011 at 3:11 PM, <forster at ozonline.com.au> wrote:

> > Plan Ceibal in Uruguay have told me using the camera on the Jam2Jam
> activity
> > crashes the activity. That seems to be as much as they can tell me.
> >
> > They use XO 1.0 with sugar 0.88.1.
>
> Tested on a XO1 on Dextrose Os373pyg
>
> Ran OK
> Music cannot play full speed, jumps
> Was able to have 3 camera shots animating to the beat
> seems OK to me apart from not being able to keep up
>
> Error log fyi:
>
> 1307423112.336714 INFO City run:  LOG From activity.py!!
> 1307423112.584527 INFO City run: building toolbar
> 1307423113.039730 WARNING root: No gtk.AccelGroup in the top level window.
> 1307423113.114464 WARNING root: No gtk.AccelGroup in the top level window.
> /usr/lib/python2.6/site-packages/sugar/graphics/window.py:290:
> DeprecationWarning: use toolbar_box instead of toolbox
>  warnings.warn('use toolbar_box instead of toolbox', DeprecationWarning)
> /usr/lib/python2.6/site-packages/sugar/graphics/window.py:294:
> DeprecationWarning: use toolbar_box instead of toolbox
>  warnings.warn('use toolbar_box instead of toolbox', DeprecationWarning)
> 1307423113.724237 INFO City run: FINISHED building toolbar
> ** (sugar-activity:2208): DEBUG: Got client ID
> "1099d80e62ce7b5228130742311863925300000018320001"
> ** (sugar-activity:2208): DEBUG: Setting initial properties
> ** (sugar-activity:2208): DEBUG: Received SaveYourself(SmSaveLocal,
> !Shutdown, SmInteractStyleNone, !Fast) in state idle
> ** (sugar-activity:2208): DEBUG: Sending SaveYourselfDone(True) for initial
> SaveYourself
> ** (sugar-activity:2208): DEBUG: Received SaveComplete message in state
> save-yourself-done
> ERROR:root:Exception while loading extension:
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/jarabe/controlpanel/cmd.py", line
> 66, in load_modules
>    globals(), locals(), ['model'])
>  File "/usr/share/sugar/extensions/cpsection/modemconfiguration/model.py",
> line 19, in <module>
>    from jarabe.model.network import GSM_USERNAME_PATH, GSM_PASSWORD_PATH, \
>  File "/usr/lib/python2.6/site-packages/jarabe/model/network.py", line 440,
> in <module>
>    class NMSettings(dbus.service.Object):
> AttributeError: 'module' object has no attribute 'service'
>
> time resolution is 2.321 ns
> /home/olpc/Activities/jam2jam.activity/City/Parameters.py:39:
> DeprecationWarning: integer argument expected, got float
>  img = pygame.transform.scale(img, (img.get_width() * scale[0],
> img.get_height() * scale[-1]))
> 1307423135.101402 INFO City run: Play/Pause Button pressed
> 1307423138.971987 INFO City run: CameraSnap init
> 1307423141.455364 INFO City run: tempfile is /tmp/tmpNHHNoC.png
> 1307423141.457240 INFO City run: about to set pipe state to PLAY
> 1307423142.443953 INFO City run: about to poll
> /home/olpc/Activities/jam2jam.activity/activity.py:57: DeprecationWarning:
> integer argument expected, got float
>  picsurf = pygame.transform.scale(picsurf, newarea)
> 1307423152.318542 INFO City run: Play/Pause Button pressed
> 1307423159.740085 INFO City run: Play/Pause Button pressed
> 1307423164.242231 INFO City run: Play/Pause Button pressed
> 1307423168.538828 INFO City run: CameraSnap init
> 1307423170.077762 INFO City run: tempfile is /tmp/tmprlECcR.png
> 1307423170.105018 INFO City run: about to set pipe state to PLAY
> 1307423171.706025 INFO City run: about to poll
> 1307423191.762452 INFO City run: CameraSnap init
> 1307423193.311209 INFO City run: tempfile is /tmp/tmpsQMoEs.png
> 1307423193.313039 INFO City run: about to set pipe state to PLAY
> 1307423195.055139 INFO City run: about to poll
> 1307423232.362309 WARNING root: No gtk.AccelGroup in the top level window.
> 1307423232.536748 WARNING root: .has_key() is deprecated, use 'in'
> 1307423237.170720 DEBUG City run: ignoring USEREVENT Event( 24, code =
> 65537,type = 24,filename =
> '/home/olpc/.sugar/default/au.net.acid.Jam2Jam1/instance/1307423237',metadata
> = <DSMetadata object at 0x9773be4 (sugar+datastore+datastore+DSMetadata at
> 0x97cd160)> )
> 1307423237.217583 WARNING olpcgames.activity: No file created in
> '/home/olpc/.sugar/default/au.net.acid.Jam2Jam1/instance/1307423237'
> 1307423237.315907 WARNING root: No gtk.AccelGroup in the top level window.
> 1307423237.595114 WARNING root: No gtk.AccelGroup in the top level window.
> 1307423237.597673 WARNING root: No gtk.AccelGroup in the top level window.
> SCENE DATA IS  [['City', 'A', 'minor', '120', '{}'], ['Blues', 'E',
> 'minor', '65', '{}'], ['Latin', 'F', 'major', '164', '{}'], ['Reggae', 'G',
> 'major', '164', '{}'], ['Country', 'E', 'major', '120', '{}']]
> loading CsHelpers
> BEGAN CppSound::compile()...
> BEGAN CppSound::compile(10, 0xb0b46e28)...
> 0dBFS level = 32768.0
> Csound version 5.10 beta (float samples) Dec  3 2009
> libsndfile-1.0.20
> orchname:  /tmp/tmp.orc
> scorename: /tmp/tmp.sco
> rtaudio: pulseaudio module enabled
> orch compiler:
> 217 lines read
>        instr   1
>        instr   2
>        instr   3
>        instr   4
>        instr   5
>        instr   6
>        instr   7
>        instr   8
>        instr   9
>        instr   10
> sorting score ...
>        ... done
> Csound version 5.10 beta (float samples) Dec  3 2009
> displays suppressed
> 0dBFS level = 1.0
> orch now loaded
> audio buffered in 256 sample-frame blocks
> PulseAudio output server: default
> pulseaudio output open
> writing 1024-byte blks of shorts to dac
> SECTION 1:
> ENDED CppSound::compile.
> ENDED CppSound::compile.
> THREAD ID: PLAYER INIT -1320371344
> bpm,  120 1.0
> frozen  =  True
> frozen  =  True
> inactive allocs returned to freespace
> end of score.              overall amps:  1.50244  1.52999
>           overall samples out of range:      236      222
> 0 errors in performance
> 8631 1024-byte soundblks of shorts written to dac
> Removing temporary file /tmp/fileRWRd1A.srt ...
> Exited with status 0, pid 2208 data (None, <open file '<fdopen>', mode 'w'
> at 0xa8daa20>, '177b4bed585ae3b0d81f1a40b02df1df49b642f5')
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20110608/22ef7e03/attachment.html>


More information about the Devel mailing list