[Electron] Api calls stop suddenly in v1 wallet
Repro:
- Clone
am-electron
branch. It's the master branch with an MVP to have electron working. -
npm start
in one terminal,npm run start:electron:dev
in another - Open electron and go to v1 wallet
- In the electron console, look at all the
SHELL received
messages. These are all the API calls the dapp made. - 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.
I did some more digging.
- 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. - Between 4 and 5 above, in the console, type
$('webview').openDevTools()
to open the console of the dapp. - 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.