"free" shows the amount of memory consumed, not disk (i assume we don't need to discuss the difference). After exiting an app, the result of the "free" command should appear similar to the result before the app was launched. However, this is not the case with the SG app I'm trying to debug.
Unless you're saying Roku caches app data and persists that cache after app exit? The fact the box crashes implies it's running out of memory and the results from "free" seem to support that hypothesis. If we exit the app cleanly and delete everything while doing so (ie an "exit" feature in the app, not the Home button on remote) then "free" shows our memory has indeed been "freed"
App running: >free
total used free shared buffers cached
Mem: 379304 332052
47252 0 36084 155244
-/+ buffers/cache: 140724 238580
Swap: 0 0 0
App exited "cleanly">free
total used free shared buffers cached
Mem: 379304 266916
112388 0 36208 94540
-/+ buffers/cache: 136168 243136
Swap: 0 0 0
App running again>free
total used free shared buffers cached
Mem: 379304 358948
20356 0 36208 154240
-/+ buffers/cache: 168500 210804
Swap: 0 0 0
App exited with Home button>free
total used free shared buffers cached
Mem: 379304 353996
25308 0 36208 155788
-/+ buffers/cache: 162000 217304
Swap: 0 0 0
>
Far as I can tell, the only way to get that memory back is power cycling the roku
😕
aspiring