{"action":"created","issue":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/272","repository_url":"https://api.github.com/repos/alexrainman/CarouselView","labels_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/272/comments","events_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/272/events","html_url":"https://github.com/alexrainman/CarouselView/issues/272","id":276473937,"number":272,"title":"System.InvalidCastException: Specified cast is not valid. Android","user":{"login":"idimkk","id":25185037,"avatar_url":"https://avatars1.githubusercontent.com/u/25185037?v=4","gravatar_id":"","url":"https://api.github.com/users/idimkk","html_url":"https://github.com/idimkk","followers_url":"https://api.github.com/users/idimkk/followers","following_url":"https://api.github.com/users/idimkk/following{/other_user}","gists_url":"https://api.github.com/users/idimkk/gists{/gist_id}","starred_url":"https://api.github.com/users/idimkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idimkk/subscriptions","organizations_url":"https://api.github.com/users/idimkk/orgs","repos_url":"https://api.github.com/users/idimkk/repos","events_url":"https://api.github.com/users/idimkk/events{/privacy}","received_events_url":"https://api.github.com/users/idimkk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-23T21:25:54Z","updated_at":"2017-11-24T12:12:18Z","closed_at":null,"author_association":"NONE","body":"Hello. I use this design to upload images from the archive. But I ran into the problem, if there are more than 2 pictures in the collection, then an exception appears on the third swipe(in either direction). Although I see that the picture in the background has been drawn.\r\n**Sample Code:**\r\n>                 var collection = new ObservableCollection<CachedImage>();\r\n>                 foreach (IArchiveEntry entry in archive.Entries.Take(3))\r\n>                 {\r\n>                     using (var stream = entry.OpenEntryStream())\r\n>                     {\r\n>                         collection.Add(new CachedImage() { Source = ImageSource.FromStream(() => stream), DownsampleWidth = 1080, Aspect = Aspect.AspectFill });\r\n>                     }\r\n>                 }\r\n>                 myCarousel.ItemsSource = collection;\r\n\r\n**Stack Trace:**\r\n\r\n> 11-23 16:46:53.397 I/MonoDroid(17789): UNHANDLED EXCEPTION:\r\n> 11-23 16:46:53.438 I/MonoDroid(17789): System.InvalidCastException: Specified cast is not valid.\r\n> 11-23 16:46:53.439 I/MonoDroid(17789):   at CarouselView.FormsPlugin.Android.CarouselViewRenderer+PageAdapter.DestroyItem (Android.Views.ViewGroup container, System.Int32 position, Java.Lang.Object object) [0x00000] in <987b2fd695d94047809eece606991303>:0 \r\n> 11-23 16:46:53.439 I/MonoDroid(17789):   at Android.Support.V4.View.PagerAdapter.n_DestroyItem_Landroid_view_ViewGroup_ILjava_lang_Object_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_container, System.Int32 position, System.IntPtr native__object) [0x00018] in <fc4222de5c684a9abf7cc4821baac4cd>:0 \r\n> 11-23 16:46:53.439 I/MonoDroid(17789):   at (wrapper dynamic-method) System.Object:d322a05b-a794-41bf-893c-295270a85c1a (intptr,intptr,intptr,int,intptr)"},"comment":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/comments/346815392","html_url":"https://github.com/alexrainman/CarouselView/issues/272#issuecomment-346815392","issue_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/272","id":346815392,"user":{"login":"idimkk","id":25185037,"avatar_url":"https://avatars1.githubusercontent.com/u/25185037?v=4","gravatar_id":"","url":"https://api.github.com/users/idimkk","html_url":"https://github.com/idimkk","followers_url":"https://api.github.com/users/idimkk/followers","following_url":"https://api.github.com/users/idimkk/following{/other_user}","gists_url":"https://api.github.com/users/idimkk/gists{/gist_id}","starred_url":"https://api.github.com/users/idimkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idimkk/subscriptions","organizations_url":"https://api.github.com/users/idimkk/orgs","repos_url":"https://api.github.com/users/idimkk/repos","events_url":"https://api.github.com/users/idimkk/events{/privacy}","received_events_url":"https://api.github.com/users/idimkk/received_events","type":"User","site_admin":false},"created_at":"2017-11-24T12:12:18Z","updated_at":"2017-11-24T12:12:18Z","author_association":"NONE","body":"Tried on the latest version (5.0.1) and 4.4.6.\r\nThere is an error in both versions."}}
{"actor":{"display_login":"idimkk"}}