{"action":"created","issue":{"url":"https://api.github.com/repos/cureos/accord-samples/issues/1","repository_url":"https://api.github.com/repos/cureos/accord-samples","labels_url":"https://api.github.com/repos/cureos/accord-samples/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cureos/accord-samples/issues/1/comments","events_url":"https://api.github.com/repos/cureos/accord-samples/issues/1/events","html_url":"https://github.com/cureos/accord-samples/issues/1","id":160676029,"number":1,"title":"Run time error 'System.AccessViolationException' when trying to run the Face detection example. ","user":{"login":"AndrewKaplanovsky","id":2852069,"avatar_url":"https://avatars.githubusercontent.com/u/2852069?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewKaplanovsky","html_url":"https://github.com/AndrewKaplanovsky","followers_url":"https://api.github.com/users/AndrewKaplanovsky/followers","following_url":"https://api.github.com/users/AndrewKaplanovsky/following{/other_user}","gists_url":"https://api.github.com/users/AndrewKaplanovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewKaplanovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewKaplanovsky/subscriptions","organizations_url":"https://api.github.com/users/AndrewKaplanovsky/orgs","repos_url":"https://api.github.com/users/AndrewKaplanovsky/repos","events_url":"https://api.github.com/users/AndrewKaplanovsky/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewKaplanovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-16T14:29:57Z","updated_at":"2016-06-16T15:14:04Z","closed_at":null,"body":"Hi, \r\n\r\nWhen I try to run the face detection example, I get this error:\r\n\r\nAn unhandled exception of type 'System.AccessViolationException' occurred in Xamarin.Forms.Platform.WinRT.DLL\r\n\r\nAdditional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.\r\n\r\nI tried to run the following solutions:\r\n- FaceDetection.WinPhone81\r\n- FaceDetection.Windows\r\n\r\nBoth raise the same error.\r\n\r\nProject FaceDetection, MainPage.xaml.cs,\r\nprivate void OnDetectButtonClicked(object sender, EventArgs args):\r\n\r\n  if (objects.Length > 0)\r\n  {\r\n         var marker = new RectanglesMarker(objects, Color.FromArgb(0xff, 0xff, 0x00, 0xff));\r\n\r\n         var stream = new MemoryStream();\r\n         marker.Apply(this.bitmap).Save(stream, ImageFormat.Jpeg); <---- Here I check the stream in debug mode, and it is empty after saving the image into it\r\n\r\n         this.ImageView.Source = this.GetImageSourceFromStream(stream);\r\n  }\r\n\r\nRegards,\r\nAndrew Kaplanovsky"},"comment":{"url":"https://api.github.com/repos/cureos/accord-samples/issues/comments/226516391","html_url":"https://github.com/cureos/accord-samples/issues/1#issuecomment-226516391","issue_url":"https://api.github.com/repos/cureos/accord-samples/issues/1","id":226516391,"user":{"login":"AndrewKaplanovsky","id":2852069,"avatar_url":"https://avatars.githubusercontent.com/u/2852069?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewKaplanovsky","html_url":"https://github.com/AndrewKaplanovsky","followers_url":"https://api.github.com/users/AndrewKaplanovsky/followers","following_url":"https://api.github.com/users/AndrewKaplanovsky/following{/other_user}","gists_url":"https://api.github.com/users/AndrewKaplanovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewKaplanovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewKaplanovsky/subscriptions","organizations_url":"https://api.github.com/users/AndrewKaplanovsky/orgs","repos_url":"https://api.github.com/users/AndrewKaplanovsky/repos","events_url":"https://api.github.com/users/AndrewKaplanovsky/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewKaplanovsky/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T15:14:04Z","updated_at":"2016-06-16T15:14:04Z","body":"Hi Anders,\r\n\r\nIn the app I'm developing:\r\nAccord 3.0.2.60302\r\nShim 2.2.0\r\nShim.Drawing 3.0.0\r\n\r\nIn accord-samples that I downloaded from GH, FaceDetection:\r\nAccord 3.0.2.50804\r\nShim 1.0.2.50909\r\nShim.Drawing 2.2.5.50526\r\n\r\nIn both cases I get the same error:\r\n\r\n![1 - new stream](https://cloud.githubusercontent.com/assets/2852069/16121904/f5637f02-33dc-11e6-8409-8f40eccda438.png)\r\n\r\n![2 - after the bitmaps was saved to the memory stream](https://cloud.githubusercontent.com/assets/2852069/16121910/f9728052-33dc-11e6-9630-1ca2a9f0b1bb.png)\r\n\r\nAfter that the app fail with the 'System.AccessViolationException' trying to display the processed image.\r\n\r\nThank you,\r\nAndrew"}}
{"actor":{"display_login":"AndrewKaplanovsky"}}