{"action":"created","issue":{"url":"https://api.github.com/repos/pebble/pebblejs/issues/79","labels_url":"https://api.github.com/repos/pebble/pebblejs/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/pebble/pebblejs/issues/79/comments","events_url":"https://api.github.com/repos/pebble/pebblejs/issues/79/events","html_url":"https://github.com/pebble/pebblejs/issues/79","id":95940349,"number":79,"title":"UI.Window show(): crash after compilation with SDK 3.1 and latest pebble.js","user":{"login":"mactr0n","id":4246554,"avatar_url":"https://avatars.githubusercontent.com/u/4246554?v=3","gravatar_id":"","url":"https://api.github.com/users/mactr0n","html_url":"https://github.com/mactr0n","followers_url":"https://api.github.com/users/mactr0n/followers","following_url":"https://api.github.com/users/mactr0n/following{/other_user}","gists_url":"https://api.github.com/users/mactr0n/gists{/gist_id}","starred_url":"https://api.github.com/users/mactr0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mactr0n/subscriptions","organizations_url":"https://api.github.com/users/mactr0n/orgs","repos_url":"https://api.github.com/users/mactr0n/repos","events_url":"https://api.github.com/users/mactr0n/events{/privacy}","received_events_url":"https://api.github.com/users/mactr0n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-19T19:02:02Z","updated_at":"2015-08-03T10:32:42Z","closed_at":null,"body":"I just compiled my Watchapp with the latest SDK 3.1 and latest pebble JS. Before it worked without problems but now it crash every third or fourth time execution this code:\r\n```javascript\r\nvar setSceneSuccessWindows = new UI.Window({fullscreen: true});\r\nvar image = new UI.Image({\r\n  position: new Vector2(0, 0),\r\n  size: new Vector2(144, 168),\r\n  image: successImage,\r\n  backgroundColor: 'black'\r\n});\r\nsetSceneSuccessWindows.add(image);\r\nsetTimeout(function () {\r\n  setSceneSuccessWindows.hide();\r\n}, 1000);\r\nsetSceneSuccessWindows.show();\r\n}\r\n```\r\nCrash log:\r\n```\r\n[INFO    ] E ault_handling.c:77 App fault! {000d9985-39b4-42b2-8d92-e2fa6e329a07} PC: 0x1b22 LR: 0x1aed\r\n[WARNING ]    Program Counter (PC):     0x1b22 /Users/mactron/dev/pebble-dev/projects/simbble_hue/src/util/list1.h:42\r\n[WARNING ]      Link Register (LR):     0x1aed /Users/mactron/dev/pebble-dev/projects/simbble_hue/build/../src/simply/simply_res.c:80\r\n[INFO    ] JS: stopping app: 000D9985-39B4-42B2-8D92-E2FA6E329A07 simbble hue\r\n```"},"comment":{"url":"https://api.github.com/repos/pebble/pebblejs/issues/comments/127187873","html_url":"https://github.com/pebble/pebblejs/issues/79#issuecomment-127187873","issue_url":"https://api.github.com/repos/pebble/pebblejs/issues/79","id":127187873,"user":{"login":"Meiguro","id":4428900,"avatar_url":"https://avatars.githubusercontent.com/u/4428900?v=3","gravatar_id":"","url":"https://api.github.com/users/Meiguro","html_url":"https://github.com/Meiguro","followers_url":"https://api.github.com/users/Meiguro/followers","following_url":"https://api.github.com/users/Meiguro/following{/other_user}","gists_url":"https://api.github.com/users/Meiguro/gists{/gist_id}","starred_url":"https://api.github.com/users/Meiguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meiguro/subscriptions","organizations_url":"https://api.github.com/users/Meiguro/orgs","repos_url":"https://api.github.com/users/Meiguro/repos","events_url":"https://api.github.com/users/Meiguro/events{/privacy}","received_events_url":"https://api.github.com/users/Meiguro/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T10:32:42Z","updated_at":"2015-08-03T10:32:42Z","body":"Ah, sorry, I should have clarified that I tried your example but it didn't result in a crash for me, so I started investigated beyond that. I definitely want to fix this, but I'll need a way to reproduce this. There are one of four things you can do:\r\n\r\n1. Check the md5sum of your `simply_res.c`. `md5sum src/simply/simply_res.c` results in `993edab77811d0abde70410f8a71c11c  src/simply/simply_res.c` for me. If it's different, there may have been a bad merge down the line. If it's the same, try the other options.\r\n\r\n2. Is your project private? At the very least, you can email me your build directory (it'll have debug symbols); plus I'll need the source files `simply_res.c` and `list1.h`. Although, more helpful is the entire directory. The git history is a plus, but I understand if you want to leave that out. My email is in the commit history.\r\n\r\n3. If that's not an option, I would try making a minimal example that crashes. Try to see if your minimal example you have here crashes (without all of your other logic). If it does, maybe something is missing that causes it not to crash on my end. Try with a public image you're willing to share.\r\n\r\n4. If you're unable to make a minimal example that crashes it, I would try cloning the pebble.js repo and copying (not cherry-picking) your JavaScript app over. If there are modifications to the base pebble.js however, 2 or 3 are better options.\r\n\r\n"}}