{"action":"created","issue":{"url":"https://api.github.com/repos/autosportlabs/RaceCapture_App/issues/899","repository_url":"https://api.github.com/repos/autosportlabs/RaceCapture_App","labels_url":"https://api.github.com/repos/autosportlabs/RaceCapture_App/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/autosportlabs/RaceCapture_App/issues/899/comments","events_url":"https://api.github.com/repos/autosportlabs/RaceCapture_App/issues/899/events","html_url":"https://github.com/autosportlabs/RaceCapture_App/issues/899","id":138783811,"number":899,"title":"Memory and GUI object leakage","user":{"login":"kosenko-max","id":468956,"avatar_url":"https://avatars.githubusercontent.com/u/468956?v=3","gravatar_id":"","url":"https://api.github.com/users/kosenko-max","html_url":"https://github.com/kosenko-max","followers_url":"https://api.github.com/users/kosenko-max/followers","following_url":"https://api.github.com/users/kosenko-max/following{/other_user}","gists_url":"https://api.github.com/users/kosenko-max/gists{/gist_id}","starred_url":"https://api.github.com/users/kosenko-max/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosenko-max/subscriptions","organizations_url":"https://api.github.com/users/kosenko-max/orgs","repos_url":"https://api.github.com/users/kosenko-max/repos","events_url":"https://api.github.com/users/kosenko-max/events{/privacy}","received_events_url":"https://api.github.com/users/kosenko-max/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-06T11:24:16Z","updated_at":"2016-03-12T02:39:44Z","closed_at":null,"body":"On a Galaxy Tab with 2GB of RAM after half an hour dashboard usage it takes 700Mb of memory and whole GUI of application and system becomes completely unusable - gauges updating 1 times per second and becomes slower and slower, top bar of Android can't move, it's impossible to choose a channel because it treats any sliding movements as a click only. Kill and restart helps for some time until same thing happens again."},"comment":{"url":"https://api.github.com/repos/autosportlabs/RaceCapture_App/issues/comments/195644583","html_url":"https://github.com/autosportlabs/RaceCapture_App/issues/899#issuecomment-195644583","issue_url":"https://api.github.com/repos/autosportlabs/RaceCapture_App/issues/899","id":195644583,"user":{"login":"kosenko-max","id":468956,"avatar_url":"https://avatars.githubusercontent.com/u/468956?v=3","gravatar_id":"","url":"https://api.github.com/users/kosenko-max","html_url":"https://github.com/kosenko-max","followers_url":"https://api.github.com/users/kosenko-max/followers","following_url":"https://api.github.com/users/kosenko-max/following{/other_user}","gists_url":"https://api.github.com/users/kosenko-max/gists{/gist_id}","starred_url":"https://api.github.com/users/kosenko-max/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosenko-max/subscriptions","organizations_url":"https://api.github.com/users/kosenko-max/orgs","repos_url":"https://api.github.com/users/kosenko-max/repos","events_url":"https://api.github.com/users/kosenko-max/events{/privacy}","received_events_url":"https://api.github.com/users/kosenko-max/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T02:39:44Z","updated_at":"2016-03-12T02:39:44Z","body":"I have adjusted script to:\r\nsetTickRate(30)\r\nvChannelCount = 30\r\nvChannels = {}\r\n\r\nfor c=1,vChannelCount do\r\nlocal name='ch_' ..c\r\nlocal id = addChannel(name, 1000, 2, 0, 100, \"un\")\r\ntable.insert(vChannels, {id, 0})\r\nend\r\n\r\nfunction onTick()\r\nfor c=1, #vChannels do\r\nlocal v = vChannels[c][2]\r\nlocal id = vChannels[c][1]\r\nv = v + 1\r\nsetChannel(id, v)\r\nvChannels[c][2] = math.random()*100\r\nend\r\nend\r\n\r\nAnd setup high and low warnings on each channel. On a screen with 5 gauges and 3 channels at the bottom in a few minutes speed of screen redraw decreased to 0.5 fps and keeps going down. While original speed was something like 20 fps. "}}