How can a channel cause Roku to crash?

Hi,

I have created a Roku private channel that plays my videos from Vimeo. There is a video that plays fine sometimes and for sometimes my custom roVideoPlayer tries for almost 2 minutes to load it and then Roku crashes and reboots.

So my questions are?

1- Why same video is played fine sometimes and same video causes crash to not only the channel but also the Roku itself?
2- I have found on some internet resources that poor channel coding (given examples are of amazon and some other channels) can also cause the Roku to crash and reboot. So I want to know that what type of scenarios in the channel code can cause the Roku to crash and reboot?