FS#73909 - [code] 1.64.x ERR_BLOCKED_BY_CLIENT

Attached to Project: Community Packages
Opened by codebling (codebling) - Monday, 21 February 2022, 06:24 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 21 February 2022, 15:07 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I am seeing some weird behavior in Code. Specifically,
* only the first Code window works. Additional windows spawn empty except for the menu bar (no status bar, even), and the menu items do not work.
* Terminal does not spawn in the first window.

Glancing at the log messages, I can see:
```
[main 2022-02-21T05:56:44.669Z] Blocked vscode-file request vscode-file://vscode-app/usr/lib/code/out/vs/code/electron-browser/sharedProcess/sharedProcess.html
[main 2022-02-21T05:56:44.702Z] [uncaught exception in main]: Error: SharedProcess: failed to load (detail: ERR_BLOCKED_BY_CLIENT, code: -20)
[main 2022-02-21T05:56:44.702Z] Error: SharedProcess: failed to load (detail: ERR_BLOCKED_BY_CLIENT, code: -20)
at /usr/lib/code/out/vs/code/electron-main/main.js:75:73593
at S.fire (/usr/lib/code/out/vs/code/electron-main/main.js:16:1712)
at /usr/lib/code/out/vs/code/electron-main/main.js:14:53994
at S.fire (/usr/lib/code/out/vs/code/electron-main/main.js:16:1712)
at Object.<anonymous> (/usr/lib/code/out/vs/code/electron-main/main.js:74:7589)
at Object.emit (events.js:327:22)
(node:237479) electron: Failed to load URL: vscode-file://vscode-app/usr/lib/code/out/vs/code/electron-browser/sharedProcess/sharedProcess.html with error: ERR_BLOCKED_BY_CLIENT
(Use `electron --trace-warnings ...` to show where the warning was created)
[main 2022-02-21T05:56:52.281Z] Blocked vscode-file request vscode-file://vscode-app/usr/lib/code/out/vs/code/electron-browser/workbench/workbench.html
[main 2022-02-21T05:56:52.309Z] CodeWindow: failed to load (reason: ERR_BLOCKED_BY_CLIENT, code: -20)
(node:237479) electron: Failed to load URL: vscode-file://vscode-app/usr/lib/code/out/vs/code/electron-browser/workbench/workbench.html with error: ERR_BLOCKED_BY_CLIENT
```

I've run Code with `--user-data-dir` and `--extensions-dir` set to empty directories to confirm that this wasn't a config/extension issue.


Additional info:
* package version(s) code-1.64.2-1, code-1.64.1-1, code-1.64.0-1 (1.63 not affected)

Steps to reproduce:
* run code

I can't imagine that everyone else is having this issue, but I can't find a way to get it to run correctly.

Seems specific to 1.64, since downgrading to 1.63 or lower seems to fix this for me (though those versions are all currently affected by upstream [bug #142259](https://github.com/microsoft/vscode/issues/142259) for me). For reference, my last full system upgrade timestamp is `2022-02-21T00:15:27-0000`.

This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 21 February 2022, 15:07 GMT
Reason for closing:  None
Comment by codebling (codebling) - Monday, 21 February 2022, 06:35 GMT
I was on a AUR version of electron13. Upgrading to `electron13-13.6.9-1` fixes this.

Loading...