Topic: Problems displaying local widget

I wrote a simple widget that displays the temperature of a sensor on a connected arduino.  I placed the widget and the profile.xml files in /mnt/usb.  Now if I go to the control panel and reload the channel, I see my widget as widget number 5.  If I select that widget from the control panel, it plays fine:

2010-02-14 08:19:48 TRACE: WidgetPlayer.loadWidgetIntoProxy(): loading widget instance into player
2010-02-14 08:19:48 TRACE: - loading widget movie "Temperature Sensor" from file:////mnt/usb/temp_sensor.swf
2010-02-14 08:19:49 TRACE: preload.swf v1.02
2010-02-14 08:19:49 TRACE: - using widget instance timing:
2010-02-14 08:19:49 TRACE:  - timeout, 30000 ms
2010-02-14 08:19:49 TRACE: - running the widget for 30 seconds
2010-02-14 08:19:49 TRACE: - expires at Sun Feb 14 08:20:19 GMT-0700 2010
2010-02-14 08:19:49 TRACE: Setting advance timer handler
2010-02-14 08:19:49 TRACE: ScreenManager.widgetPlayerMode()
2010-02-14 08:19:49 MemoryObject::<dtor>(mmobj=0x0030295c) SEVERE WARNING - destroying MemoryObject with 6 blocks still allocated!
2010-02-14 08:19:52 TRACE: (Master heartbeat)
2010-02-14 08:19:54 TRACE: (AlarmSet heartbeat)

However when the chumby cycles through the widgets and comes back to the local widget I get the following:

2010-02-14 08:22:34 TRACE: WidgetPlayer.loadWidgetIntoProxy(): loading widget instance into player
2010-02-14 08:22:34 TRACE: - loading widget movie "" from
2010-02-14 08:22:34 ClientObject::OpenSWFFile(): cannot open swf file
2010-02-14 08:22:34 TRACE: - using widget timing:
2010-02-14 08:22:34 TRACE: - running the widget for 30 seconds
2010-02-14 08:22:34 TRACE: - expires at Sun Feb 14 08:23:04 GMT-0700 2010
2010-02-14 08:22:34 TRACE: Setting advance timer handler
2010-02-14 08:22:34 MemoryObject::<dtor>(mmobj=0x0035b974) SEVERE WARNING - destroying MemoryObject with 103 blocks still allocated!
2010-02-14 08:22:34 TRACE: WidgetPlayer.advanceTimerHandler(): widget died with error -1 (download failed)
2010-02-14 08:22:34 TRACE: WidgetPlayer.nextWidget(): loading next widget instance


For whatever reason, my chumby cannot find the local widget when it is cycling through the widgets in the channel.  It can only find it if I reload the channel and then select the local widget from the control panel.  Here is my profile.xml file:

<profile>
<widget_instances>
<widget_instance id="1">
<widget>
<name>Temperature Sensor</name>
<description>Displays temperature from attached sensor.</description>
<version>1.0</version>
<mode time="30" mode="timeout"/>
<access sendable="false" deleteable="false" access="private" virtualable="false"/>
<user username="unknown"/>
<movie href="file:////mnt/usb/temp_sensor.swf" contenttype="application/x-shockwave-flash"/>
</widget>
<access access="private"/>
<mode time="30" mode="timeout"/>
</widget_instance>
</widget_instances>
</profile>


Any ideas what I am doing wrong?

Re: Problems displaying local widget

I should probably mention that I am trying to do this on a Chumby One.