{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1044","repository_url":"https://api.github.com/repos/NativeScript/nativescript-angular","labels_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1044/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1044/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1044/events","html_url":"https://github.com/NativeScript/nativescript-angular/issues/1044","id":266113962,"number":1044,"title":"TabView memory leaks using iconSource","user":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars2.githubusercontent.com/u/18008302?v=4","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"labels":[{"id":408119636,"url":"https://api.github.com/repos/NativeScript/nativescript-angular/labels/Android","name":"Android","color":"006b75","default":false},{"id":377757598,"url":"https://api.github.com/repos/NativeScript/nativescript-angular/labels/Backlog","name":"Backlog","color":"ededed","default":false},{"id":373173807,"url":"https://api.github.com/repos/NativeScript/nativescript-angular/labels/bug","name":"bug","color":"b60205","default":true}],"state":"open","locked":false,"assignee":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars2.githubusercontent.com/u/18008302?v=4","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"assignees":[{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars2.githubusercontent.com/u/18008302?v=4","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-10-17T12:57:02Z","updated_at":"2017-10-17T12:57:04Z","closed_at":null,"author_association":"NONE","body":"_From @Tompote on October 6, 2017 15:43_\n\n\r\n### Tell us about the problem\r\nSetting iconSource in *tabItem causes memory leaks.\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid (did not test on iPhone)\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 3.2.1\r\n- Cross-platform modules: 3.2.0\r\n- Runtime(s): 3.2.0\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nCreate a TabView with angular (didn't test without it) following [https://docs.nativescript.org/cookbook/tab-view-ng](url), be sure to set the iconSource property inside the tabItem. Navigate back and forth to this component will eventually throw OutOfMemoryException.\r\n\r\nI guess it's related to #2571. Maybe the fix was ok for regular Image but not for iconSource inside tabItem.\r\n\n\n_Copied from original issue: NativeScript/NativeScript#4924_"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/comments/337222669","html_url":"https://github.com/NativeScript/nativescript-angular/issues/1044#issuecomment-337222669","issue_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1044","id":337222669,"user":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars2.githubusercontent.com/u/18008302?v=4","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T12:57:04Z","updated_at":"2017-10-17T12:57:04Z","author_association":"NONE","body":"_From @Tompote on October 9, 2017 14:30_\n\nCheck out this [test-project](https://github.com/Tompote/NativeScript_issue_4924) to see the error more easily. I just added a home component with a button to navigate to your items page, and used image not from res directory.\r\nAfter I navigate to item I can click back and then go to items again, but after the ninth attempts I run into OutOfMermoryException.\r\nI'm sorry I don't know how to perform real memory testing (with actual values) but I guess the bigger the image pointed by iconSource is, the faster memory runs out.\r\n\r\nI'm pretty sure it's due to the line I posted above, because drawable Bitmap are not release properly in JS context. I really think it's the same error as #2571 that has been fixed for classic Image."}}
{"actor":{"display_login":"NickIliev"}}