Topic: Flickr photo viewer widget debugging tips
I'm new to flashlite development and would appreciate some tips on how to track down a couple of problems I've ran into.
I've bought myself and my family 3 chumbys for Christmas with the idea that I'd like to "push" new photosets on my parents remotely whenever I feel like it. The available Flickr widget didn't seem to have support for doing correct authentication for private photosets and picking which sets each chumby should play, so I decided to write my own.
The widget I built goes to my website reads a configuration xml that describes the photosets the chumby should fetch (I can change this config file to push new sets on the chumbys). Then it goes to Flickr does the appropriate authentication (using the mobile app method) to read the private photosets and then starts displaying pictures. I implemented all the functionality and the widget works properly on my desktop and for a while on the 3 chumbys.
The problem I'm running into is that every once in a while the onLoad handler when using loadClip with a MovieClipLoader seems to just hang. Thinking that I have some bad state logic I added an onLoadError handler, and a onFrameEnter text print-out to see if the widget is at least alive. However, it seems like the widget is totally hung, I don't see any updates on the screen when it drops into this mode. The same sort of hang sometimes happens when I try to do a .load on my XML objects when communicating with Flickr's APIs or my own config file. I can reset the widget by going to the next widget in the channel and then coming back, or rebooting the chumby. The 3 chumbys also have completely different behaviour as to when and how often they hang.
Looking at the forums, it seems like this is a problem that other people have run into and that it could be caused by memory leaks. Do people have any tips as to how I should try to debug this issue? Is there any way to get the state of the garbage collector or an object dump from SSH? How about access to trace messages?
I would really appreciate any tips!