{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/622","repository_url":"https://api.github.com/repos/NativeScript/ios-runtime","labels_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/622/comments","events_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/622/events","html_url":"https://github.com/NativeScript/ios-runtime/issues/622","id":170597507,"number":622,"title":"Returning certain values from native iOS code results in immediate crash","user":{"login":"jasssonpet","id":305639,"avatar_url":"https://avatars.githubusercontent.com/u/305639?v=3","gravatar_id":"","url":"https://api.github.com/users/jasssonpet","html_url":"https://github.com/jasssonpet","followers_url":"https://api.github.com/users/jasssonpet/followers","following_url":"https://api.github.com/users/jasssonpet/following{/other_user}","gists_url":"https://api.github.com/users/jasssonpet/gists{/gist_id}","starred_url":"https://api.github.com/users/jasssonpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasssonpet/subscriptions","organizations_url":"https://api.github.com/users/jasssonpet/orgs","repos_url":"https://api.github.com/users/jasssonpet/repos","events_url":"https://api.github.com/users/jasssonpet/events{/privacy}","received_events_url":"https://api.github.com/users/jasssonpet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/milestones/18","html_url":"https://github.com/NativeScript/ios-runtime/milestones/2.2.1","labels_url":"https://api.github.com/repos/NativeScript/ios-runtime/milestones/18/labels","id":1944513,"number":18,"title":"2.2.1","description":"","creator":{"login":"vchimev","id":12251337,"avatar_url":"https://avatars.githubusercontent.com/u/12251337?v=3","gravatar_id":"","url":"https://api.github.com/users/vchimev","html_url":"https://github.com/vchimev","followers_url":"https://api.github.com/users/vchimev/followers","following_url":"https://api.github.com/users/vchimev/following{/other_user}","gists_url":"https://api.github.com/users/vchimev/gists{/gist_id}","starred_url":"https://api.github.com/users/vchimev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchimev/subscriptions","organizations_url":"https://api.github.com/users/vchimev/orgs","repos_url":"https://api.github.com/users/vchimev/repos","events_url":"https://api.github.com/users/vchimev/events{/privacy}","received_events_url":"https://api.github.com/users/vchimev/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"closed","created_at":"2016-08-16T08:57:21Z","updated_at":"2016-08-16T12:18:12Z","due_on":null,"closed_at":"2016-08-16T12:18:12Z"},"comments":8,"created_at":"2016-08-11T08:50:10Z","updated_at":"2016-08-18T02:14:02Z","closed_at":"2016-08-12T14:27:49Z","body":"_From @bnussey on August 11, 2016 6:25_\n\nSince the latest NativeScript release (2.2.0) returning certain values from native iOS code results in a crash. I contribute to nativescript-videoplayer and since the new release, this line of code are resulting in an immediate crash:\r\n\r\n```        \r\nreturn this._player.currentTime().value\r\n```\r\n`this._player` is `AVPlayer`\r\n`currentTime` relates to this method on the AVPlayer - https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayer_Class/#//apple_ref/occ/instm/AVPlayer/currentTime\r\nFull code can be reviewed here: https://github.com/bradmartin/nativescript-videoplayer/blob/master/videoplayer.ios.ts#L113\r\n\r\nThis is the crash message:\r\n\r\n```\r\ncom.apple.CoreSimulator.SimDevice.7D812403-FB85-469B-9C88-1B286BC7DF9F.launchd_sim[11559] (UIKitApplication:com.stageme.app[0x6ba9][12379]): Service exited due to signal: Segmentation fault: 11\r\n```\r\n\r\nThis was working absolutely fine before the upgrade.\r\n\r\nIn terms of doing some research about the error message, I found this: http://stackoverflow.com/a/23798704/3900606\r\n\n\n_Copied from original issue: NativeScript/NativeScript#2568_"},"comment":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/comments/240604912","html_url":"https://github.com/NativeScript/ios-runtime/issues/622#issuecomment-240604912","issue_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/622","id":240604912,"user":{"login":"bnussey","id":7215297,"avatar_url":"https://avatars.githubusercontent.com/u/7215297?v=3","gravatar_id":"","url":"https://api.github.com/users/bnussey","html_url":"https://github.com/bnussey","followers_url":"https://api.github.com/users/bnussey/followers","following_url":"https://api.github.com/users/bnussey/following{/other_user}","gists_url":"https://api.github.com/users/bnussey/gists{/gist_id}","starred_url":"https://api.github.com/users/bnussey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnussey/subscriptions","organizations_url":"https://api.github.com/users/bnussey/orgs","repos_url":"https://api.github.com/users/bnussey/repos","events_url":"https://api.github.com/users/bnussey/events{/privacy}","received_events_url":"https://api.github.com/users/bnussey/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T02:14:02Z","updated_at":"2016-08-18T02:14:02Z","body":"Hey @vchimev and @jasssonpet confirming issue is fixed, thanks so much!"}}
{"actor":{"display_login":"bnussey"}}