{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-dotnet/issues/1762","repository_url":"https://api.github.com/repos/realm/realm-dotnet","labels_url":"https://api.github.com/repos/realm/realm-dotnet/issues/1762/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-dotnet/issues/1762/comments","events_url":"https://api.github.com/repos/realm/realm-dotnet/issues/1762/events","html_url":"https://github.com/realm/realm-dotnet/issues/1762","id":350634202,"node_id":"MDU6SXNzdWUzNTA2MzQyMDI=","number":1762,"title":"UWP: Realm crashes in UWP background tasks","user":{"login":"Mohsens22","id":22152065,"node_id":"MDQ6VXNlcjIyMTUyMDY1","avatar_url":"https://avatars3.githubusercontent.com/u/22152065?v=4","gravatar_id":"","url":"https://api.github.com/users/Mohsens22","html_url":"https://github.com/Mohsens22","followers_url":"https://api.github.com/users/Mohsens22/followers","following_url":"https://api.github.com/users/Mohsens22/following{/other_user}","gists_url":"https://api.github.com/users/Mohsens22/gists{/gist_id}","starred_url":"https://api.github.com/users/Mohsens22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mohsens22/subscriptions","organizations_url":"https://api.github.com/users/Mohsens22/orgs","repos_url":"https://api.github.com/users/Mohsens22/repos","events_url":"https://api.github.com/users/Mohsens22/events{/privacy}","received_events_url":"https://api.github.com/users/Mohsens22/received_events","type":"User","site_admin":false},"labels":[{"id":643636062,"node_id":"MDU6TGFiZWw2NDM2MzYwNjI=","url":"https://api.github.com/repos/realm/realm-dotnet/labels/O:User","name":"O:User","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"nirinchev","id":2315687,"node_id":"MDQ6VXNlcjIzMTU2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/2315687?v=4","gravatar_id":"","url":"https://api.github.com/users/nirinchev","html_url":"https://github.com/nirinchev","followers_url":"https://api.github.com/users/nirinchev/followers","following_url":"https://api.github.com/users/nirinchev/following{/other_user}","gists_url":"https://api.github.com/users/nirinchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nirinchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirinchev/subscriptions","organizations_url":"https://api.github.com/users/nirinchev/orgs","repos_url":"https://api.github.com/users/nirinchev/repos","events_url":"https://api.github.com/users/nirinchev/events{/privacy}","received_events_url":"https://api.github.com/users/nirinchev/received_events","type":"User","site_admin":false},"assignees":[{"login":"nirinchev","id":2315687,"node_id":"MDQ6VXNlcjIzMTU2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/2315687?v=4","gravatar_id":"","url":"https://api.github.com/users/nirinchev","html_url":"https://github.com/nirinchev","followers_url":"https://api.github.com/users/nirinchev/followers","following_url":"https://api.github.com/users/nirinchev/following{/other_user}","gists_url":"https://api.github.com/users/nirinchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nirinchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirinchev/subscriptions","organizations_url":"https://api.github.com/users/nirinchev/orgs","repos_url":"https://api.github.com/users/nirinchev/repos","events_url":"https://api.github.com/users/nirinchev/events{/privacy}","received_events_url":"https://api.github.com/users/nirinchev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2018-08-14T23:38:20Z","updated_at":"2018-09-07T14:46:40Z","closed_at":null,"author_association":"NONE","body":"## Goals\r\n\r\nI was trying to use CRUD operations in background tasks.\r\n\r\n## Expected Results\r\n\r\nI expected to work, a it works on SQLite\r\n\r\n## Actual Results\r\n\r\nIt makes the background task crash.\r\n<!--- e.g. the stack trace of a crash -->\r\n\r\n## Steps to Reproduce\r\n\r\nMake a background task, do read operation or a write transaction, boom! crashes.\r\n\r\n## Code Sample\r\nUse this in a background task:\r\n```csharp\r\ninstance.Write(() =>\r\n            {\r\n                instance.Add(entity);\r\n            });\r\n```\r\n\r\n## Version of Realm and Tooling\r\n\r\n- Realm Object Server Version: ?\r\n- Flavor:\r\n  - [Developer\r\n- Server OS & Version: Cloud\r\n- Client SDK Version: V3.0 \r\n- Client OS & Version: Windows 10 RS4 release\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-dotnet/issues/comments/419462815","html_url":"https://github.com/realm/realm-dotnet/issues/1762#issuecomment-419462815","issue_url":"https://api.github.com/repos/realm/realm-dotnet/issues/1762","id":419462815,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTQ2MjgxNQ==","user":{"login":"nirinchev","id":2315687,"node_id":"MDQ6VXNlcjIzMTU2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/2315687?v=4","gravatar_id":"","url":"https://api.github.com/users/nirinchev","html_url":"https://github.com/nirinchev","followers_url":"https://api.github.com/users/nirinchev/followers","following_url":"https://api.github.com/users/nirinchev/following{/other_user}","gists_url":"https://api.github.com/users/nirinchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nirinchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirinchev/subscriptions","organizations_url":"https://api.github.com/users/nirinchev/orgs","repos_url":"https://api.github.com/users/nirinchev/repos","events_url":"https://api.github.com/users/nirinchev/events{/privacy}","received_events_url":"https://api.github.com/users/nirinchev/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T14:46:40Z","updated_at":"2018-09-07T14:46:40Z","author_association":"MEMBER","body":"This is consistent with my observations - it seems `realm.Write` blocks the thread and can't proceed after the first few invocations."}}
{"actor":{"display_login":"nirinchev"}}