Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to electron 12 #120034

Closed
wants to merge 3 commits into from
Closed

chore: update to electron 12 #120034

wants to merge 3 commits into from

Conversation

deepak1556
Copy link
Collaborator

@deepak1556 deepak1556 commented Mar 28, 2021

  • Build nightly exploration builds

Fixes #112319

@darkbasic
Copy link

darkbasic commented Mar 29, 2021

That would fix all the issues with Wayland * . *

@deepak1556 deepak1556 added this to the April 2021 milestone Mar 30, 2021
@johnsoncodehk
Copy link
Contributor

May fix a node 12 issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1180495

@Saverio-Angelicola
Copy link

Hello, are you thinking of finishing the migration from vscode to electron 12 in order to natively support wayland to integrate it in the April update or will it take longer?

@kieferrm kieferrm mentioned this pull request Apr 5, 2021
75 tasks
@deepak1556
Copy link
Collaborator Author

There are two parts to the vscode-sqlite3 shutdown crash

  1. Exception thrown by the sqlite3 module should not be propagated from the napi module if the environment is torn down, there is ongoing discussion src: fix a crashing issue in Error::ThrowAsJavaScriptException nodejs/node-addon-api#902

  2. It is unknown whether closing database during shutdown is a valid operation, currently the cause of the crash Crash if db.close() is called in process.on('exit') TryGhost/node-sqlite3#1455

As workaround can we move the close operation to an early stage before process shutdown kicks in ?

@bpasero
Copy link
Member

bpasero commented Apr 6, 2021

As workaround can we move the close operation to an early stage before process shutdown kicks in ?

We prolong the shutdown for as long the database needs to close already, otherwise we would see dataloss, no? I am not sure what else I can do here, I think there is an issue with the library maybe that returns before the DB has been closed? Can we file this against the library?

@deepak1556
Copy link
Collaborator Author

TryGhost/node-sqlite3#1455 covers it, I need to add some logs to our fork to understand where the failure is as next step.

@deepak1556 deepak1556 marked this pull request as ready for review April 7, 2021 07:31
@pixieaka
Copy link

pixieaka commented Apr 7, 2021

@deepak1556 How I can download vscode exploration builds?

@deepak1556
Copy link
Collaborator Author

deepak1556 commented Apr 7, 2021

There is no public page adding download links below,

Window x64 user setup
Linux x64 deb
Linux x64 rpm
Linux x64 snap
MacOS universal

@deepak1556 deepak1556 force-pushed the electron-12.x.y branch 3 times, most recently from f766125 to bcf2d68 Compare April 9, 2021 00:05
@deepak1556 deepak1556 requested a review from bpasero April 9, 2021 00:06
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides my feedback, I notice that we still use node.js 12 here:

build/azure-pipelines/darwin/product-build-darwin-sign.yml

build/azure-pipelines/exploration-build.yml Outdated Show resolved Hide resolved
@@ -11,7 +11,7 @@ parameters:
- name: VSCODE_QUALITY
displayName: Quality
type: string
default: insider
default: exploration
Copy link
Member

@bpasero bpasero Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo if merged to main

package.json Outdated Show resolved Hide resolved
src/vs/base/node/id.ts Outdated Show resolved Hide resolved
src/vs/base/node/macAddress.ts Outdated Show resolved Hide resolved
test/unit/electron/index.js Outdated Show resolved Hide resolved
@bpasero bpasero requested review from bpasero and removed request for bpasero April 9, 2021 10:46
@ninja-
Copy link

ninja- commented Apr 12, 2021

@deepak1556 thanks for these builds, I will try to use it as a daily and find any problems :)

Chrome dev builds are still too buggy at the moment for using wayland daily, but hopefully some of these bugs may not trigger while using vscode.

btw. I wouldn't recommend starting testing with a snap/flatpak builds because there have been issues with it like breaking hardware acceleration etc.

but even in deb build, I can't force this exploration build to use opengl?

code-exploration --ozone-platform=wayland --enable-features=UseOzonePlatform --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --status
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ignore-gpu-blacklist' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-gpu-rasterization' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-native-gpu-memory-buffers' is not in the list of known options, but still passed to Electron/Chromium.
[1170095:0412/230106.987817:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
[1170200:0412/230107.038234:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
Version:          Code - Exploration 1.56.0-exploration (dbd55768bc820fcf8ad2076b4befb6bfacf14f72, 2021-04-07T05:46:50.135Z)
OS Version:       Linux x64 5.11.11-051111-generic
CPUs:             AMD Ryzen 9 3900X 12-Core Processor (24 x 3800)
Memory (System):  31.30GB (5.57GB free)
Load (avg):       1, 1, 1
VM:               0%
Screen Reader:    no
Process Argv:     --ozone-platform=wayland --enable-features=UseOzonePlatform --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --no-sandbox
GPU Status:       2d_canvas:                  unavailable_software
                  gpu_compositing:            disabled_software
                  multiple_raster_threads:    enabled_on
                  oop_rasterization:          disabled_off
                  opengl:                     disabled_off
                  rasterization:              disabled_software
                  skia_renderer:              enabled_on
                  video_decode:               disabled_software
                  vulkan:                     disabled_off
                  webgl:                      unavailable_software
                  webgl2:                     unavailable_software

@ninja-
Copy link

ninja- commented Apr 23, 2021

ok I finally found the issue with opengl! it's because google changed argument name from GPU BLACKLIST to GPU BLOCKLIST...

@deepak1556 deepak1556 mentioned this pull request Apr 26, 2021
3 tasks
@deepak1556
Copy link
Collaborator Author

Stable 1.56 will be based on electron 12

@deepak1556 deepak1556 closed this Apr 29, 2021
@bpasero bpasero deleted the electron-12.x.y branch May 11, 2021 06:11
@bpasero bpasero restored the electron-12.x.y branch May 11, 2021 06:11
@deepak1556 deepak1556 deleted the electron-12.x.y branch May 26, 2021 09:29
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build: Darwin arm64 rebuild binaries should be in cache
7 participants