{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2195","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2195/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2195/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2195/events","html_url":"https://github.com/NativeScript/NativeScript/issues/2195","id":157156266,"number":2195,"title":"App crashes on android simulator 1 minute after loading custom tab view","user":{"login":"ullalaaron","id":17922843,"avatar_url":"https://avatars.githubusercontent.com/u/17922843?v=3","gravatar_id":"","url":"https://api.github.com/users/ullalaaron","html_url":"https://github.com/ullalaaron","followers_url":"https://api.github.com/users/ullalaaron/followers","following_url":"https://api.github.com/users/ullalaaron/following{/other_user}","gists_url":"https://api.github.com/users/ullalaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/ullalaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ullalaaron/subscriptions","organizations_url":"https://api.github.com/users/ullalaaron/orgs","repos_url":"https://api.github.com/users/ullalaaron/repos","events_url":"https://api.github.com/users/ullalaaron/events{/privacy}","received_events_url":"https://api.github.com/users/ullalaaron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/Android","name":"Android","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars.githubusercontent.com/u/18008302?v=3","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":8,"created_at":"2016-05-27T08:33:19Z","updated_at":"2016-05-30T10:17:50Z","closed_at":null,"body":"\r\n### Did you verify this is a real problem by searching [Stack Overflow]\r\nI searched on SO but no one was able to give some insight regarding this matter.\r\n[Here](http://stackoverflow.com/questions/37433742/nativescript-android-app-crashes-after-3-minutes?) is the post I've created.\r\n\r\n### Tell us about the problem\r\nOn android simulator (both add and genymotion) the app crashes all of a sudden approx. 1 minute after navigating to a custom tab view I've implemented\r\nThe error I get on console is the following:\r\n```\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethodNative(Native Method)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethodImpl(Runtime.java:726)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethod(Runtime.java:712)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethod(Runtime.java:693)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethod(Runtime.java:683)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethodNative(Native Method)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethodImpl(Runtime.java:726)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethod(Runtime.java:712)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethod(Runtime.java:693)\r\nI/dalvikvm( 5042):   at com.tns.Runtime.callJSMethod(Runtime.java:683)\r\n```\r\nWatching the logs on the android monitor i see the following output:\r\n```\r\n05-25 09:50:53.608: W/ActivityManager(1545):   Force finishing activity org.nativescript.haloose/com.tns.NativeScriptActivity\r\n05-25 09:50:53.608: D/gralloc(1124): Registering a buffer in the process that created it. This may cause memory ordering problems.\r\n05-25 09:50:53.608: E/libEGL(1124): called unimplemented OpenGL ES API\r\n05-25 09:50:53.608: E/libEGL(1124): called unimplemented OpenGL ES API\r\n05-25 09:50:53.608: E/libEGL(1124): called unimplemented OpenGL ES API\r\n05-25 09:50:53.608: E/libEGL(1124): called unimplemented OpenGL ES API\r\n05-25 09:50:53.608: E/SurfaceFlinger(1124): glCheckFramebufferStatusOES error 2073286530\r\n05-25 09:50:53.608: E/SurfaceFlinger(1124): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot\r\n05-25 09:50:53.608: E/libEGL(1124): called unimplemented OpenGL ES API\r\n05-25 09:50:53.608: E/libEGL(1124): called unimplemented OpenGL ES API\r\n05-25 09:50:53.618: W/WindowManager(1545): Screenshot failure taking screenshot for (328x546) to layer 21010\r\n05-25 09:50:53.628: D/Zygote(1125): Process 2170 terminated by signal (11)\r\n05-25 09:50:53.628: W/InputDispatcher(1545): channel 'b12805d0 org.nativescript.haloose/com.tns.NativeScriptActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0xd\r\n05-25 09:50:53.638: E/InputDispatcher(1545): channel 'b12805d0 org.nativescript.haloose/com.tns.NativeScriptActivity (server)' ~ Channel is unrecoverably broken and will be disposed!\r\n05-25 09:50:53.638: I/ActivityManager(1545): Process org.nativescript.haloose (pid 2170) has died.\r\n05-25 09:50:53.648: W/InputDispatcher(1545): Attempted to unregister already unregistered input channel 'b12805d0 org.nativescript.haloose/com.tns.NativeScriptActivity (server)'\r\n05-25 09:50:53.648: I/WindowState(1545): WIN DEATH: Window{b12805d0 u0 org.nativescript.haloose/com.tns.NativeScriptActivity}\r\n```\r\n### Which platform(s) does your issue occur on?\r\nAndroid emulators only. On the physical device I've tried it does not occur. Neither on iOS emulator.\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 2.0.1\r\n- Cross-platform modules: 2.0.1\r\n- Runtime(s): 2.0.0\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nAfter I navigate to the view and switch between tabs, the app crashes randomly after 1 minute approx.\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\n\r\nHere is how I implemented the view that causes the problem:\r\nThe layout consists of 2 stacks : the first containing the tabs, the second containing images associated with a tap events that makes the desired tab visible and collapses the other.\r\nXML:\r\n\r\n```\r\n<Page xmlns=\"http://schemas.nativescript.org/tns.xsd\" loaded=\"loaded\" \r\nxmlns:t1=\"partial-views/explore\"\r\nxmlns:t2=\"partial-views/community\">\r\n<StackLayout>\r\n    <StackLayout >\r\n    <t1:explore     id=\"explore\"    visibility=\"{{ currentActive == 'explore' ? 'visible' : 'collapsed' }}\" />\r\n    <t2:community   id=\"community\"  visibility=\"{{ currentActive == 'community' ? 'visible' : 'collapsed' }}\"/>\r\n    </StackLayout>\r\n\r\n    <StackLayout>\r\n        <Image src=\"{{ currentActive == 'explore' ? '~/img/icon-green/icon-explore.png' : '~/img/icon-gray/icon-explore.png' }}\" class=\"menuimage\" tap=\"loadexplore\"/\r\n        <Image src=\"{{ currentActive == 'community' ? '~/img/icon-green/icon-community.png' : '~/img/icon-gray/icon-community.png' }}\" class=\"menuimage\" tap=\"loadcommunity\"/\r\n    </StackLayout>\r\n</StackLayout>\r\n</Page>\r\n```\r\n\r\nJS:\r\n```\r\nvar Observable = require(\"data/observable\").Observable;\r\nvar page;\r\n//Set up view model\r\n//Default active is explore mode\r\nvar mainObservable = new Observable({\r\n    currentActive:\"explore\"\r\n});\r\n\r\nexports.loaded = function(args){\r\n    page = args.object;\r\n    page.bindingContext = mainObservable;\r\n}\r\n\r\nexports.loadexplore = function(){\r\n    loadSelection(\"explore\");\r\n}\r\nexports.loadcommunity = function(){\r\n    loadSelection(\"community\");\r\n}\r\n\r\nfunction loadSelection(selection){\r\n    mainObservable.currentActive=selection;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/222461278","html_url":"https://github.com/NativeScript/NativeScript/issues/2195#issuecomment-222461278","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2195","id":222461278,"user":{"login":"PanayotCankov","id":5919275,"avatar_url":"https://avatars.githubusercontent.com/u/5919275?v=3","gravatar_id":"","url":"https://api.github.com/users/PanayotCankov","html_url":"https://github.com/PanayotCankov","followers_url":"https://api.github.com/users/PanayotCankov/followers","following_url":"https://api.github.com/users/PanayotCankov/following{/other_user}","gists_url":"https://api.github.com/users/PanayotCankov/gists{/gist_id}","starred_url":"https://api.github.com/users/PanayotCankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanayotCankov/subscriptions","organizations_url":"https://api.github.com/users/PanayotCankov/orgs","repos_url":"https://api.github.com/users/PanayotCankov/repos","events_url":"https://api.github.com/users/PanayotCankov/events{/privacy}","received_events_url":"https://api.github.com/users/PanayotCankov/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T10:17:50Z","updated_at":"2016-05-30T10:17:50Z","body":"If this is true it is definitely a bug. When an element is no longer visible any animation chain it triggered must be stopped and cleaned up. I am reopening the issue. We should investigate this further."}}
{"actor":{"display_login":"PanayotCankov"}}