{"action":"created","issue":{"url":"https://api.github.com/repos/pebble/pebblejs/issues/161","repository_url":"https://api.github.com/repos/pebble/pebblejs","labels_url":"https://api.github.com/repos/pebble/pebblejs/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/pebble/pebblejs/issues/161/comments","events_url":"https://api.github.com/repos/pebble/pebblejs/issues/161/events","html_url":"https://github.com/pebble/pebblejs/issues/161","id":154675628,"number":161,"title":"App crashed when move from a Window to Menu","user":{"login":"johnlamhc","id":16113508,"avatar_url":"https://avatars.githubusercontent.com/u/16113508?v=3","gravatar_id":"","url":"https://api.github.com/users/johnlamhc","html_url":"https://github.com/johnlamhc","followers_url":"https://api.github.com/users/johnlamhc/followers","following_url":"https://api.github.com/users/johnlamhc/following{/other_user}","gists_url":"https://api.github.com/users/johnlamhc/gists{/gist_id}","starred_url":"https://api.github.com/users/johnlamhc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnlamhc/subscriptions","organizations_url":"https://api.github.com/users/johnlamhc/orgs","repos_url":"https://api.github.com/users/johnlamhc/repos","events_url":"https://api.github.com/users/johnlamhc/events{/privacy}","received_events_url":"https://api.github.com/users/johnlamhc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-05-13T09:55:43Z","updated_at":"2016-12-06T23:43:21Z","closed_at":null,"body":"The app will be crashed while going from a Window to a Menu or return (click the back button) from a Window to a Menu.\n"},"comment":{"url":"https://api.github.com/repos/pebble/pebblejs/issues/comments/265309825","html_url":"https://github.com/pebble/pebblejs/issues/161#issuecomment-265309825","issue_url":"https://api.github.com/repos/pebble/pebblejs/issues/161","id":265309825,"user":{"login":"unk1nd","id":1453617,"avatar_url":"https://avatars.githubusercontent.com/u/1453617?v=3","gravatar_id":"","url":"https://api.github.com/users/unk1nd","html_url":"https://github.com/unk1nd","followers_url":"https://api.github.com/users/unk1nd/followers","following_url":"https://api.github.com/users/unk1nd/following{/other_user}","gists_url":"https://api.github.com/users/unk1nd/gists{/gist_id}","starred_url":"https://api.github.com/users/unk1nd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unk1nd/subscriptions","organizations_url":"https://api.github.com/users/unk1nd/orgs","repos_url":"https://api.github.com/users/unk1nd/repos","events_url":"https://api.github.com/users/unk1nd/events{/privacy}","received_events_url":"https://api.github.com/users/unk1nd/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T23:43:21Z","updated_at":"2016-12-06T23:43:21Z","body":"```javascript\r\nresultsMenu.on('select', function(e) {\r\n      // Get server info\r\n      var serverinfo = data.servers[e.itemIndex];\r\n              \r\n      // Assemble body string\r\n      // \r\n      var content = \"\\nLast Seen:\\n\"+ serverinfo.last_update + \"\\n\" +\"\\nIP: \"+ serverinfo.ip + \"\\nHostname: \"+ serverinfo.hostname + \"\\nAdmin: \"+ serverinfo.admin + \"\\nLoad: \"+ serverinfo.load;\r\n      console.log('Showing info about ' + serverinfo.box);\r\n      \r\n      var BoxName = serverinfo.box;\r\n      \r\n      var icon_status = data.servers[e.itemIndex].status;\r\n      var banner = \"\";\r\n      if(icon_status == \"Up\"){\r\n          banner = server_icon_up; \r\n      }\r\n      if(icon_status != \"Up\"){\r\n          banner = server_icon_down;\r\n      }\r\n      // Create the Card for detailed view\r\n      var detailCard = new UI.Card({\r\n        status: false,\r\n        title: ' ' + BoxName,\r\n        titleColor: '#899986',\r\n        icon: title_icon,\r\n        banner: banner,\r\n        style: 'mono',\r\n        body: content,\r\n        bodyColor: '#ffffff',\r\n        backgroundColor: '#336699',\r\n        scrollable: true,\r\n        action: {\r\n          up: 'images/action_icon_up.png',\r\n          down: 'images/action_icon_down.png',\r\n          backgroundColor: '#e5e845',\r\n        }\r\n      });\r\n      detailCard.show();\r\n  });\r\n```\r\n\r\nThis is a the card code i use in my pebble.js app.\r\nIt parses 3 times in a JSON.\r\nOnly one of them fail if i use banner and banner = server_icon_up.\r\nThe image is a 4kb png image and from what i can see in the debug logs it is not eating up memory.\r\n\r\nLet me know if you need more info. Don't want to share all of the code.\r\n"}}
{"actor":{"display_login":"unk1nd"}}