{"action":"created","issue":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/270","repository_url":"https://api.github.com/repos/alexrainman/CarouselView","labels_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/270/comments","events_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/270/events","html_url":"https://github.com/alexrainman/CarouselView/issues/270","id":276220655,"number":270,"title":"[iOS] Crash with ScrollView in CarouselView and landscape orientation ","user":{"login":"galfar","id":2893306,"avatar_url":"https://avatars3.githubusercontent.com/u/2893306?v=4","gravatar_id":"","url":"https://api.github.com/users/galfar","html_url":"https://github.com/galfar","followers_url":"https://api.github.com/users/galfar/followers","following_url":"https://api.github.com/users/galfar/following{/other_user}","gists_url":"https://api.github.com/users/galfar/gists{/gist_id}","starred_url":"https://api.github.com/users/galfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galfar/subscriptions","organizations_url":"https://api.github.com/users/galfar/orgs","repos_url":"https://api.github.com/users/galfar/repos","events_url":"https://api.github.com/users/galfar/events{/privacy}","received_events_url":"https://api.github.com/users/galfar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-22T22:24:24Z","updated_at":"2017-11-22T23:03:04Z","closed_at":null,"author_association":"NONE","body":"With ScrollView as an item in CarouselView it crashes when iOS device is switched to landscape or if \r\napp starts with device already in landscape (tested in simulator only but got a report that it's the same on real device).\r\n\r\n`System.NullReferenceException: Object reference not set to an instance of an object ` is raised in  `CarouselView.FormsPlugin.iOS.ViewExtensions.ToiOS` (vRenderer.Element is null!).\r\n\r\nOnly once in dozens of crashes I managed to get \"disposed object: ScrollViewRenderer\" exception instead of null reference.\r\n\r\nHappens with v5.01 and also v4.\r\n\r\nDemo project:\r\n[CaroTest-iOS-Crash.zip](https://github.com/alexrainman/CarouselView/files/1497616/CaroTest-iOS-Crash.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/comments/346496158","html_url":"https://github.com/alexrainman/CarouselView/issues/270#issuecomment-346496158","issue_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/270","id":346496158,"user":{"login":"alexrainman","id":3793554,"avatar_url":"https://avatars3.githubusercontent.com/u/3793554?v=4","gravatar_id":"","url":"https://api.github.com/users/alexrainman","html_url":"https://github.com/alexrainman","followers_url":"https://api.github.com/users/alexrainman/followers","following_url":"https://api.github.com/users/alexrainman/following{/other_user}","gists_url":"https://api.github.com/users/alexrainman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrainman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrainman/subscriptions","organizations_url":"https://api.github.com/users/alexrainman/orgs","repos_url":"https://api.github.com/users/alexrainman/repos","events_url":"https://api.github.com/users/alexrainman/events{/privacy}","received_events_url":"https://api.github.com/users/alexrainman/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T23:03:04Z","updated_at":"2017-11-22T23:03:04Z","author_association":"OWNER","body":"I tried some other fixes in the ViewExtensions but then it causes very weird exceptions. A workaround: wrap ScrollView into ContentView or StackLayout and it wont crash. This is new because it used to work with ScrollView."}}
{"actor":{"display_login":"alexrainman"}}