{"action":"opened","issue":{"url":"https://api.github.com/repos/realm/realm-js/issues/2434","repository_url":"https://api.github.com/repos/realm/realm-js","labels_url":"https://api.github.com/repos/realm/realm-js/issues/2434/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-js/issues/2434/comments","events_url":"https://api.github.com/repos/realm/realm-js/issues/2434/events","html_url":"https://github.com/realm/realm-js/issues/2434","id":464381760,"node_id":"MDU6SXNzdWU0NjQzODE3NjA=","number":2434,"title":"Electron hangs while using realm.write() ","user":{"login":"jindalrohit","id":12742169,"node_id":"MDQ6VXNlcjEyNzQyMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/12742169?v=4","gravatar_id":"","url":"https://api.github.com/users/jindalrohit","html_url":"https://github.com/jindalrohit","followers_url":"https://api.github.com/users/jindalrohit/followers","following_url":"https://api.github.com/users/jindalrohit/following{/other_user}","gists_url":"https://api.github.com/users/jindalrohit/gists{/gist_id}","starred_url":"https://api.github.com/users/jindalrohit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jindalrohit/subscriptions","organizations_url":"https://api.github.com/users/jindalrohit/orgs","repos_url":"https://api.github.com/users/jindalrohit/repos","events_url":"https://api.github.com/users/jindalrohit/events{/privacy}","received_events_url":"https://api.github.com/users/jindalrohit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-04T19:55:34Z","updated_at":"2019-07-04T19:55:34Z","closed_at":null,"author_association":"NONE","body":"I am using realm with Electron and adding the record in the db but application hangs after inserting the record. No error is displayed. Below is the code :\r\n\r\nconst PersonSchema = {\r\n    name: 'Person',\r\n    properties: {\r\n      firstName: 'string',\r\n      lastName: 'string',\r\n      fullName: 'string'\r\n    }\r\n  };\r\n  \r\n  const config = {\r\n    path: 'C:\\Users\\user01\\AppData\\Roaming\\invoice\\database.realm',\r\n    schema: [PersonSchema]  \r\n  };\r\n  \r\n  Realm.open(config).then(function (realm) {\r\n    try {\r\n      realm.write(() => {\r\n        const john = realm.create('Person', {\r\n          firstName: 'first',\r\n          lastName: 'last',\r\n          fullName: 'first last'\r\n        }, Realm.UpdateMode.Never);\r\n      });\r\n    } catch (e) {\r\n      console.log(\"Error on creation : \", e);\r\n    }\r\n\r\n  }, function (error) {\r\n    console.log(error);\r\n  });\r\n"}}
{"actor":{"display_login":"jindalrohit"}}