Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rymawby
Binge Watcher

Developing SceneGraph app - bricked 2 boxes

Hi,

I was wondering if anybody has ever come across this issue. I've been developing apps for Roku for a few years and have never bricked a box before - until today. I've managed to brick a Roku 4 and a Roku 3.

I'm developing a scenegraph application and I've found every so often my box would crash, although frustrating I'd just need to restart the box and all would be well.

Twice today after a crash (on 2 different boxes) I've restarted the boxes and they hang on the boot up ident screen (http://d.wegoodhq.com/15ToG) and never gets past it.

Anybody got any ideas how to get around this issue? I'm going to be out of boxes to develop on soon!

Thanks in advance.
0 Kudos
8 REPLIES 8
rymawby
Binge Watcher

Re: Developing SceneGraph app - bricked 2 boxes

Up to 4 bricked boxes now!

I can hard factory reset the 3s but the 4 doesn't have a button so I don't think I can do that.

Also I'd prefer not having to set everything up again everytime - so if anybody has any ideas why I'd really appreciate it!

Thanks again.
0 Kudos
RokuJoel
Binge Watcher

Re: Developing SceneGraph app - bricked 2 boxes

The Roku 4 does have a button on the bottom, in the Rubber area, near the front, it should say "Reset" on it. Can you private message me a dropbox or other link to download a zip that reproduces the problem?

Thanks,

- Joel
0 Kudos
rymawby
Binge Watcher

Re: Developing SceneGraph app - bricked 2 boxes

Hey Joel - thanks for pointing that out! At least it's not bricked.

I've got the issue in a git stash - I'll fire you over a zip shortly.

Thanks again!

Ry.
0 Kudos
adamkaz
Channel Surfer

Re: Developing SceneGraph app - bricked 2 boxes

I've had this happen on 2 different Roku 4 boxes and a Roku 4K Insignia TV, with 2 different channel codebases (most recently 1 week ago). The same package works fine after the hard reset, so I don't think its tied to a particular command or code structure. I had just assumed having to do a full reset was part of using a fairly new SDK.

I've also reverted back to using the web interface to install scenegraph zips to the device. I've noticed using my previous command line tools ("make install") occasionally results in some odd behavior where not all the xml files seem to be loaded.
0 Kudos
TheEndless
Channel Surfer

Re: Developing SceneGraph app - bricked 2 boxes

I just had the exact same thing happen to my Sharp Roku TV. It happened while uploading the channel, not while the channel was running, so I don't think it's related to the channel itself. I've also been working on this channel for a couple months now without issue, so it seems it's something new.

I'm currently waiting for all of my channels to re-install after a factory reset to get it back up and running. I'll update if it happens again...
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
TheEndless
Channel Surfer

Re: Developing SceneGraph app - bricked 2 boxes

Ok, update...

It's definitely the channel that's causing the issue, and it occurs during the compile. I was able to narrow it down to two different builds, three minutes apart.. one works, the other locks up the Roku indefinitely (even after reboot), until a factory reset is done. The culprit appears to be, what I'm guessing is some sort of recursive loop that's triggered by including the same BRS file in a component that extends another component that already includes that BRS file. Removing the redundant include fixed the issue for me. Why it persists after reboot is beyond me...

For illustration purposes, in pseudo-xml/code...
BaseTask.xml
<?xml version="1.0" encoding="UTF-8"?>
<component name="BaseTask" extends="Task">
<script type="text/brightscript" uri="pkg:/components/utilities.brs" />
</component>

ExtendedTask.xml
<?xml version="1.0" encoding="UTF-8"?>
<component name="ExtendedTask" extends="BaseTask">
<!-- REDUNDANT INCLUDE -->
<script type="text/brightscript" uri="pkg:/components/utilities.brs" />
</component>

I don't know if this is restricted to Tasks, as it was in my case, or if it could even be triggered by the same file being included multiple times in the same component (i.e., duplicated <script> tag), but I've already lost a couple of hours trying to track this down, and I don't care to go through the whole factory reset thing yet again, so I'll let someone else test that... 😉

UPDATE: Ok, my curiosity got the better of me. I can confirm that it happens with non-Task components as well. It does not, however, happen if the redundant <script> include is in the same file... only if it's in an extended component.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
EnTerr
Roku Guru

Re: Developing SceneGraph app - bricked 2 boxes

Most amusing!
I'd be inclined to think infinite loop during compilation exhausts free disk space / trashes the FS. Except how does the above cause loopiness?
0 Kudos
rymawby
Binge Watcher

Re: Developing SceneGraph app - bricked 2 boxes

Nice tracking down!

I like the fact you couldn't resist trashing another box 🙂

Thanks guys!

Ry.
0 Kudos