FS#70896 - [code] Program immediately freezes when started
Attached to Project:
Community Packages
Opened by Brian Lee (kir12) - Sunday, 16 May 2021, 05:42 GMT
Last edited by Filipe Laíns (FFY00) - Monday, 17 May 2021, 14:04 GMT
Opened by Brian Lee (kir12) - Sunday, 16 May 2021, 05:42 GMT
Last edited by Filipe Laíns (FFY00) - Monday, 17 May 2021, 14:04 GMT
|
Details
Description:
After the recent update to Code-OSS Version 1.56.2, when attempting to start the program, the standard user interface will properly render but freezes immediately after. The end result is that the software is unusable. Additional info: * package version(s) 1.56.2 Steps to reproduce: 1. Install or update the Arch Linux package "code": https://archlinux.org/packages/community/x86_64/code/ 2. Attempt to run the program. 3. Result: Software UI is generated but does not respond to use input, and freezes shortly thereafter. Below is relevant DE/Kernel information, if needed. Kernel: x86_64 Linux 5.12.3-arch1-1 DE: KDE 5.82.0 / Plasma 5.21.5 WM: KWin One thing I will note is that in previous versions of KDE, numerous programs frequently froze as a result of bugs related to how KDE handled external monitors. However, I do not consider it likely this is a KDE-related error, since (a) that problem hasn't surfaced recently (at least in my use case) and (b) Code-OSS also freezes when I have no external monitor attached. If there is sufficient reason to conclude otherwise, do let me know. |
This task depends upon
Closed by Filipe Laíns (FFY00)
Monday, 17 May 2021, 14:04 GMT
Reason for closing: Fixed
Additional comments about closing: code 1.56.2-2
Monday, 17 May 2021, 14:04 GMT
Reason for closing: Fixed
Additional comments about closing: code 1.56.2-2
Code-OSS Version: 1.56.2
Electron: 12.0.7
Kernel: x86_64 Linux 5.12.3-arch1-1
DE: GNOME Shell 40.1
WM: Mutter
[main 2021-05-16T09:02:16.888Z] [storage state.vscdb] open(): Unable to open DB due to Error: The module '/usr/lib/code/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 87. This version of Node.js requires
NODE_MODULE_VERSION 85. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
Kernel: x86_64 Linux 5.12.3-arch1-1
WM: i3-gaps-next-git 4.19.1.r69.g1ab2433e-1
Temporary fix:
- Install community/electron (this is version 12)
- Edit start-script "/usr/bin/code", replace "electron11" with "electron"
Addition: strace on code's process produces the following syscall in a loop:
...
futex(0x26c2d4b636d0, FUTEX_WAKE_PRIVATE, 1) = 1
getpid() = 9447
futex(0x26c2d4b6370c, FUTEX_WAIT_PRIVATE, 3, NULL) = -1 EAGAIN (Resource temporarily unavailable)
...
https://github.com/archlinux/svntogit-community/commit/412cf018280fd9b9f612eb84075354b9fe555af8
I missed that due to an oversight, I am building 1.56.2-2 now, and I've added a comment in the script to prevent this in the future :)