Topic: Infocast 8 running Chumby 8 - Browser hangs on Reddit?

I use the Reddit widget to scroll the image reddit through.  You are supposed to touch a link and then it loads up the browser and displays the picture (typically stored at imgur.com).  Many times, it loads the browser, the screen goes white, and that's all she wrote.  Pushing the button on the top does not interrupt things, it's hung, and it has to be power cycled to recover it.

Seems to be no rhyme or reason which links posted out there cause this behavior.  Is there potentially a fix in the works?  Is there some other way to kick the thing and regain control of the device?

Re: Infocast 8 running Chumby 8 - Browser hangs on Reddit?

Hmmm, not sure what's going on there.  It *sounds* like the browser is crashing.

Do the same links cause the same problem, and do links that work always work?  I'm wondering if the problem might be related to running out of memory, since some links might have more content than others.

Re: Infocast 8 running Chumby 8 - Browser hangs on Reddit?

Unfortunately there is no pattern.  People post links to Reddit to pictures they have found which may be anywhere.  Typically if I had to guess, it might be the bigger pictures (1800x1200 pixels) that make it hang.  They don't tell you the size of them before you click, which is the problem.  There also seems to be an advertising sidebar on IMGUR (which is where 90% of these links go) which takes forever to load and format (30 seconds or so) which may be causing the problem.  You just have to set the widget up and run it, and click on links one by one until you find a bad one.  They are all basically random links posted by redditors, so there's no telling what websites they point to, except imgur.com seems to be common to most of them.

Re: Infocast 8 running Chumby 8 - Browser hangs on Reddit?

Yes, big images like that would definitely be a problem - the device simply doesn't have enough memory to render things that big.

You might be able to add an entry in the hosts file to block the offending advertising.

5 (edited by Joan Jett 2012-01-31 06:06:47)

Re: Infocast 8 running Chumby 8 - Browser hangs on Reddit?

Duane wrote:

You might be able to add an entry in the hosts file to block the offending advertising.

Perhaps something like this..... or this.

Not sure if a chumby would choke on a list this big. Another possibility would be to set up a local DNS server which would cover your whole network. I have a Linksys NSLU2 for this purpose (among others).

Brian

Brian, #1 Joan Jett Fan

Re: Infocast 8 running Chumby 8 - Browser hangs on Reddit?

Duane wrote:

Yes, big images like that would definitely be a problem - the device simply doesn't have enough memory to render things that big.

You might be able to add an entry in the hosts file to block the offending advertising.

I suppose, in this modern day of programming, it is entirely too much to ask that when a task runs out of memory, it gives you a legible error message and then allows you a chance to gracefully recover instead of hanging the whole salami?

Re: Infocast 8 running Chumby 8 - Browser hangs on Reddit?

In a desktop system, yes - in a very limited embedded system, that's pretty tough.

One issue is that in the case of images in browsers, it's very hard to tell until it's too late.  You can't trust the "width" and "height" parameters in the "img" tag, assuming they're even there, and the file size is no indicator as well.  You have to start decoding the actual image file after you've downloaded it to figure out how much memory it's going to take - but you may not have survived the download.

In an embedded system, what typically happens when the memory gets low is that an "out of memory" daemon, called an "OOM killer", kicks in and starts killing processes until enough memory comes free. Unfortunately, OOM killers are hard to control.  In our case, for the browser to work, the two largest processes, the Flash Player and the browser, both have to survive the massacre.

If the browser is killed, the system will typically recover - however, if the Flash Player gets killed, then things go sideways.

There are other processes, which if chosen by the OOM killer, will cause the system to hang.

It's a tough problem, not one easy to solve.  When the devices were originally specified, we did not intend to put full browsers on them, however, we thought we try to make *something* available, even if not perfect.