Your Digital Media Has Never Looked So Good

 
gabek
Topic Author
Posts: 44
Joined: Sat Jul 05, 2014 2:47 pm

Adding to a PanelSet causes a device reset

Sun Jun 04, 2017 5:40 pm

I have a single PanelSet at the root of my scene (created by an OverhangPanelSetScene). For convenience, I've assigned the PanelSet to m.global.panelSet.  The first time I add something to the PanelSet's stack it works fine, but any further attempts will always crash the entire device with no errors.

For example.
Scene -> PanelSet -> PanelA is added right away when the PanelSet is created -> PanelB is appended to the stack from a user action -> Attempt to add PanelC from a user action will always crash.
And it's just using the simple child interface to add them:

m.newPanel = createObject("roSGNode", "NewCustomPanel")
m.global.panelSet.appendChild(m.newPanel)


As a sanity check I've verified that m.global.panelSet is what I expect it to be, and it looks like a sane PanelSet.

Is there anything about my interpretation of Panels that is wrong?  Seems like I should be able to continue to add to the Panel stack without any issues.
 
gabek
Topic Author
Posts: 44
Joined: Sat Jul 05, 2014 2:47 pm

Re: Adding to a PanelSet causes a device reset

Sun Jun 04, 2017 6:33 pm

After some trial and error, I found it seems to be a very specific case.  Only when a panel has m.top.isFullScreen set to true when adding it to the PanelSet does this crash happen.  Setting it to false or not setting it at all will not result in the device restarting itself.
 
gabek
Topic Author
Posts: 44
Joined: Sat Jul 05, 2014 2:47 pm

Re: Adding to a PanelSet causes a device reset

Tue Jun 06, 2017 3:56 pm

Maybe a simple question is: What is the best practice for adding to a PanelSet?  Is creating a reference to it in the global node so child Panels can append additional children to it the way it's supposed to be done?  All the Roku provided examples seem to only add children from the node that created the panelSet itself, but I guess I don't understand how that's useful in an app where navigation can fork.
 
gabek
Topic Author
Posts: 44
Joined: Sat Jul 05, 2014 2:47 pm

Re: Adding to a PanelSet causes a device reset

Tue Jun 13, 2017 3:36 pm

Trying a different approach by only using a GridPanel's "nextPanel" to add Panels to the PanelSet stack and the results are the same.
 
User avatar
RokuNB
Posts: 214
Joined: Fri Mar 31, 2017 2:22 pm

Re: Adding to a PanelSet causes a device reset

Wed Jun 14, 2017 4:41 pm

`panel.isFullScreen = true` causing a crash might be a bug.
What device model# / firmware versions?
 
gabek
Topic Author
Posts: 44
Joined: Sat Jul 05, 2014 2:47 pm

Re: Adding to a PanelSet causes a device reset

Wed Jun 14, 2017 5:07 pm

I'm using a 4640X on 7.6.0 build 4120-29.  I emailed developer support per your suggestion in PM and I'll keep this thread updated if I get anything back.
 
User avatar
RokuNB
Posts: 214
Joined: Fri Mar 31, 2017 2:22 pm

Re: Adding to a PanelSet causes a device reset

Wed Jun 14, 2017 6:16 pm

Ok - so there is a bug causing crash-reboot if setting the right panel to full screen. It will be fixed but not soon.
 
nmaves
Posts: 17
Joined: Mon Jul 10, 2017 6:52 pm

Re: Adding to a PanelSet causes a device reset

Tue Aug 08, 2017 12:42 pm

Any update or work around for adding panels that are full width?

Who is online

Users browsing this forum: jeremie, neowinston, nmaves and 4 guests