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: 278
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: 278
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: 35
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?
 
joetesta
Posts: 541
Joined: Wed Apr 20, 2011 11:48 am

Re: Adding to a PanelSet causes a device reset

Tue Aug 22, 2017 8:14 am

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

(although for all i know this is fixed in 7.7?) Think I have a workaround, by adding two new panels on the right, one wide, one narrow.  The narrow one on the far right, leave it empty, set focusable=false.  The wide panel, just populate with content sized and translated as if you own the full screen.  This idea seemed to work in the experiments I was doing last week.
aspiring
 
nmaves
Posts: 35
Joined: Mon Jul 10, 2017 6:52 pm

Re: Adding to a PanelSet causes a device reset

Sun Sep 24, 2017 11:53 pm

Is there any work from Roku when this might be fixed or a solid work around?

My panel set starts with a narrow on the left and a wide on the right.  When the right panel gains focus it converts to a fullscreen panel.  Then when an item on that panel is selected I add another fullscreen panel.  BOOM! blows sky high.

If I don't let the first right panel convert to a fullscreen panel everything works but that is not the behavior that I am looking for.
 
joetesta
Posts: 541
Joined: Wed Apr 20, 2011 11:48 am

Re: Adding to a PanelSet causes a device reset

Wed Sep 27, 2017 7:16 pm

did you try what I suggested?  Replace your "problem" fullscreen panel with 2 panels, a wide and a narrow.  Don't put anything in the narrow nor make it focusable.  Populate content in the wide as if it's full screen. voila.
For your situation you still have to set up the narrow panel nextpanel etc, a bit tricky, but it did work for me.
aspiring

Who is online

Users browsing this forum: No registered users and 2 guests