{"action":"closed","issue":{"url":"https://api.github.com/repos/Parity-JS/shell/issues/6","repository_url":"https://api.github.com/repos/Parity-JS/shell","labels_url":"https://api.github.com/repos/Parity-JS/shell/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Parity-JS/shell/issues/6/comments","events_url":"https://api.github.com/repos/Parity-JS/shell/issues/6/events","html_url":"https://github.com/Parity-JS/shell/issues/6","id":294822490,"number":6,"title":"[Electron] Api calls stop suddenly in v1 wallet","user":{"login":"amaurymartiny","id":1293565,"avatar_url":"https://avatars0.githubusercontent.com/u/1293565?v=4","gravatar_id":"","url":"https://api.github.com/users/amaurymartiny","html_url":"https://github.com/amaurymartiny","followers_url":"https://api.github.com/users/amaurymartiny/followers","following_url":"https://api.github.com/users/amaurymartiny/following{/other_user}","gists_url":"https://api.github.com/users/amaurymartiny/gists{/gist_id}","starred_url":"https://api.github.com/users/amaurymartiny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaurymartiny/subscriptions","organizations_url":"https://api.github.com/users/amaurymartiny/orgs","repos_url":"https://api.github.com/users/amaurymartiny/repos","events_url":"https://api.github.com/users/amaurymartiny/events{/privacy}","received_events_url":"https://api.github.com/users/amaurymartiny/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-06T16:24:12Z","updated_at":"2018-02-09T15:32:49Z","closed_at":"2018-02-09T15:32:48Z","author_association":"COLLABORATOR","body":"Repro:\r\n1. Clone [`am-electron`](https://github.com/Parity-JS/shell/tree/am-electron) branch. It's the master branch with an MVP to have electron working.\r\n2. `npm start` in one terminal, `npm run start:electron:dev` in another\r\n3. Open electron and go to v1 wallet\r\n4. In the electron console, look at all the `SHELL received` messages. These are all the API calls the dapp made.\r\n5. Now click on the Accoutns Tab on the top. Suddenly the API calls stop. All future API calls do not get to the shell whatsoever.\r\n\r\n---\r\n\r\nI did some more digging.\r\n- In `node_modules/@parity/api` I added a console.log to check. that v1 is correctly sending the api calls. Yes. Only the shell is not receiving them.\r\n- Between 4 and 5 above, in the console, type `$('webview').openDevTools()` to open the console of the dapp.\r\n- When I click on the Accounts Tab (step 5 above), I see `[Violation] 'setTimeout' handler took 124ms`. And from that point on, all future api calls are blocked."}}
{"actor":{"display_login":"amaurymartiny"}}