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: 
EnTerr
Roku Guru

Re: Roku locking up / freezing

"Romans_I_XVI" wrote:
My code is not set to even pay attention to say, the fast forward button or the * button. But these will all have the same ill effects. It doesn't matter what button it is or whether brightscript is doing something with it or not.

So it seems issue on the firmware side, beyond your code - maybe even outside B/S executor.
Should open a new topic on that - perhaps a good samaritan moderator can cleave from viewtopic.php?f=34&t=85981&start=15#p489528 down into a new topic?
0 Kudos
Komag
Roku Guru

Re: Roku locking up / freezing

But I'm not noticing any slowdown with held buttons, which I use a lot in my game. Maybe it still could be how the button handling code is set up. I honestly don't know how it works under the hood, but here is my basic setup within my Main() function that runs forever:
WHILE TRUE		
evnt = port.GetMessage()
'IF evnt <> invalid THEN PRINT "evnt" evnt ' This prints everything (mainly button presses/releases)
IF (Type(evnt) = "roUniversalControlEvent") THEN controls(evnt) ' CONTROL EVENTS - REMOTE
'etc, etc, etc, There is more code after this
This repeats as fast as the system can cycle through the While loop. So I'm not using WAIT (I don't really understand it) or anything else. Maybe it makes a difference?
0 Kudos
Romans_I_XVI
Roku Guru

Re: Roku locking up / freezing

I'm not sure how your game performs Komag. But Retaliate on Roku 1 just barely runs smooth. If there are too many enemies on the screen it can get glitchy. So essentially I'm right on the edge of not running well already. This could be part of it.

Also I don't know what your game is like but it's of course very easy to see if something isn't smooth in my game since everything is constantly moving and at a consistent rate.

Edit: I'm not using wait either
0 Kudos
Romans_I_XVI
Roku Guru

Re: Roku locking up / freezing

So belltown did some testing and said he was unable to reproduce it in the latest version. Which is great. The real question is what did I do to fix it? I did correct a situation where I had two bitmaps that were exactly the same in memory at the same time. I also ensured that ALL print statements were commented out. And plus about 1000 other changes related to new features while getting the update ready. So yeah, fairly difficult to pinpoint.
0 Kudos
belltown
Roku Guru

Re: Roku locking up / freezing

Well, it looks like I spoke too soon. It took a lot longer to hang than in the previous version, but the beta version just hung. It was in almost the same place as before, only instead of hanging just after encountering the first row or two of the multiple rows of enemy spacecraft, it hung just after passing the last row. All the other symptoms appeared the same though.

That's going to be a tough problem to diagnose. Due to the large number of closely-packed spacecraft on the screen at one time, this looks like the point in the game at which the most moving objects are on the screen at any one time, also the point at which the fastest rate of key presses are occurring as I do a quick press and release in between each row to avoid draining the shields before exiting the rows of spacecraft, and of course the shield percentage indicator is continually being changed while all this is happening. I wonder whether due to the large number of events, and moving objects, etc. there is some limit that is being hit (not necessarily in your code, but possibly in the Roku firmware).
0 Kudos
Romans_I_XVI
Roku Guru

Re: Roku locking up / freezing

Ic. Well that sucks, but I'm not sure what else to do about it. I still think it might be coming down to over heating. Which would make sense why some people have the problem, and more frequently than others. I know that it's not happening to everyone because, for one I have a good rating on the channel store and two there are scores if 60,000+ . These people would have had to be playing for a very long time and never have it happen.

I'm just going to chalk this up to bring a firmware and/or overheating issue. It's the only thing that makes sense. I'm still leaning toward overheating. I do computer repair and well, this is just what makes sense to me.
0 Kudos
Romans_I_XVI
Roku Guru

Re: Roku locking up / freezing

Also I'm not hitting any "limits". If I had too much code executing the game would not be smooth (like how it isn't at times on Roku 1 ). Also I am not even close to the video memory limits.

If you are able to do one more test. Do something to try and keep the device cool. Prop it up and blow a fan at the bottom. Or better yet surround it with a couple ice packs or something (just don't get it wet!). I truly think this would resolve it, or it would at least make it take much longer to occur.

Also hope we get a Roku person to chime in on this at some point. Because I know my game isn't the only one that's affected based on some of the early on comments here.
0 Kudos
Komag
Roku Guru

Re: Roku locking up / freezing

Wow, now that's an interesting possibility, overheating. Interesting to me, maddening to you I imagine! :oops: I'm very curious to see if the "keeping the Roku cold" test helps!
0 Kudos
EnTerr
Roku Guru

Re: Roku locking up / freezing

Overheating - i don't think so.

Here is another example, happens with Tetris and on Roku 3 - from what i can tell very reliably (just tested - after clearing 10 lines, be asked to pay up, click Upgrade and then balk at the PIN screen with Home): https://disqus.com/home/discussion/roku ... 1713030269

I won't know if cause is exactly the same - but the player is left helpless and irresponsive. This time can't blame it on #3100 MoBo or lesser amount of RAM (or my perceived uncanny ability* at "finding code that does that ... tripping the box up").

(*) this got to be one of the lamest X-men mutant powers, "can jinx Roku boxes"
0 Kudos
EnTerr
Roku Guru

Re: Roku locking up / freezing

I just tried the new version of Retaliate (new to me at least - i noticed icon had changed) and it froze the Roku player SOLID. It was on "easy" level and just starting, as shown by score of 70:

Player is 3100, not overheated. And by frozen solid, i mean it stays hanging on exact that image for almost an hour. Does not respond to remote presses, but networking is still alive. Here is what i collected from 8080:
>r2d2_bitmaps
RoGraphics instance 0x5f78b4ab
address width height bpp size name
0x5c96709b 960 720 3 2826240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_background.png
0x5c9af05b 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_easy_0.png
0x5ee26583 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_easy_1.png
0x5cfcf67b 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_normal_0.png
0x5eeef003 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_normal_1.png
0x5eeef353 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_hard_0.png
0x5c81b1b3 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_hard_1.png
0x5c81adbb 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_extreme_0.png
0x430726f3 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_extreme_1.png
0x4306d903 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_hangar_0.png
0x4303c9ab 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_hangar_1.png
0x5c8a8a23 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_upgrade_0.png
0x5c8a8d1b 404 148 4 266240 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_button_upgrade_1.png
0x5f7cf4d3 900 160 4 593920 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_logo.png
0x5f7419e3 534 70 4 208896 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_subtitle.png
0x5f741833 592 36 4 155648 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_romans.png
0x5c9ea67b 782 24 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_scripture_1.png
0x5c99bcbb 813 24 4 106496 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_scripture_2.png
0x5c964333 8 14 4 4096 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_flame_0.png
0x5c964253 8 14 4 4096 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_flame_1.png
0x5c9ea1fb 68 89 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_ship_top.png
0x4307283b 9 22 4 4096 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_bullet.png
0x5ee239fb 9 22 4 4096 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_enemy_bullet.png
0x5ee238d3 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_shield.png
0x5eecb6a3 54 67 4 24576 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_enemy_1.png
0x5eeca8cb 59 89 4 24576 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_enemy_2.png
0x5c967d13 4 720 3 94208 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_line.png
0x5c967c93 34 34 4 16384 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_explosion_0.png
0x430daaeb 34 34 4 16384 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_explosion_1.png
0x430dadc3 34 34 4 16384 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_explosion_2.png
0x430e9243 34 34 4 16384 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_explosion_3.png
0x5c97b743 34 34 4 16384 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_explosion_4.png
0x430e90db 34 34 4 16384 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_explosion_5.png
0x5c9704a3 68 68 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_playerexplosion_0.png
0x5c97b58b 68 68 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_playerexplosion_1.png
0x5c970553 68 68 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_playerexplosion_2.png
0x5c99ad4b 68 68 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_playerexplosion_3.png
0x5c99ac7b 68 68 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_playerexplosion_4.png
0x5c8a8773 68 68 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_playerexplosion_5.png
0x5c95cf13 68 68 4 36864 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/spr_playerexplosion_6.png
0x5c85cfdb 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_0_0.png
0x430340f3 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_0_1.png
0x430343ab 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_0_2.png
0x5c909a63 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_0_3.png
0x4302354b 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_1_0.png
0x5c87f06b 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_1_1.png
0x43023423 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_1_2.png
0x5c87f31b 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_1_3.png
0x5c85f80b 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_2_0.png
0x5c85fbe3 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_2_1.png
0x5c9b6213 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_2_2.png
0x5c9af7b3 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_2_3.png
0x5f7eaafb 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_3_0.png
0x5c9ae94b 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_3_1.png
0x5f7ead1b 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_3_2.png
0x5ee2e0bb 150 150 4 102400 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/shield/spr_shield_3_3.png
0x430dc94b 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_top_1.png
0x5c9e5eab 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_top_2.png
0x5c9e5c13 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_top_3.png
0x5c9e5f23 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_left_1.png
0x5f78cb7b 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_left_2.png
0x5f7cef7b 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_left_3.png
0x5c83cc2b 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_right_1.png
0x5f7ced13 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_right_2.png
0x5c973dd3 119 119 4 65536 /tmp/plugin/FDAAAA2wlyGI/pkg:/sprites/ships/spr_ship_1_right_3.png
0x5f78bc13 2048 43 1 98304 /Netflix/Fonts/common/DejaVuSansCondensed-Bold.ttf 47
Available memory 28829632 used 10170368 max 39000000
>free
total used free shared buffers cached
Mem: 169208 133868 35340 0 24948 59208
-/+ buffers/cache: 49712 119496
Swap: 0 0 0

Does not seem out of ordinary, does it?

PS. The reboot was the only Konami code that worked.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.