Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

"https://messages.google.com/web" results in ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed #1568

Open
5 tasks done
jenschurchill opened this issue Aug 31, 2023 · 3 comments
Labels

Comments

@jenschurchill
Copy link

Homework

Nativefier command

nativefier "https://messages.google.com/web" "$target" --icon "$HOME/Pictures/Icons/android-messages-logo.png" --name "Android Messages" --platform "linux" --tray --portable --honest --single-instance --disable-dev-tools

Steps to reproduce

For years, I have been generating a google messages app, using the following command...

nativefier \
	"https://messages.google.com/web" \
	"$target" \
	--icon "$HOME/Pictures/Icons/android-messages-logo.png" \
	--name "Android Messages" \
	--platform "linux" \
	--tray \
	--portable \
	--honest \
	--single-instance \
	--disable-dev-tools

Which now results, in a white-page, and errors:

[340658:0831/162758.368168:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[340658:0831/162758.374503:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[340658:0831/162802.299317:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

If I run it with just "https://messages.google.com", it works, but clicking the "Messages for web" link,
it results in a whitepage again, and the errors above.

Expected behavior

The website is presented.

Actual behavior

Whitepage, with the error: ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed

Debug info

Running in verbose mode! This will produce a mountain of logs and is recommended only for troubleshooting or if you like Shakespeare.

Hi! Nativefier is minimally maintained these days, and needs more hands.
If you have the time & motivation, help with bugfixes and maintenance is VERY welcome.
Please go to https://github.com/nativefier/nativefier and help how you can. Thanks.

Processing options...
rawOptions {
icon: '$HOME/Pictures/Icons/android-messages-logo.png',
i: '$HOME/Pictures/Icons/android-messages-logo.png',
_: [ 'https://messages.google.com/web', '' ],
name: 'Android Messages',
n: 'Android Messages',
platform: 'linux',
p: 'linux',
tray: 'true',
portable: true,
honest: true,
'user-agent-honest': true,
userAgentHonest: true,
'single-instance': true,
singleInstance: true,
'disable-dev-tools': true,
disableDevTools: true,
verbose: true,
c: false,
conceal: false,
'no-overwrite': false,
noOverwrite: false,
overwrite: true,
widevine: false,
'always-on-top': false,
alwaysOnTop: false,
'disable-context-menu': false,
disableContextMenu: false,
'full-screen': false,
fullScreen: false,
'hide-window-frame': false,
hideWindowFrame: false,
m: false,
'show-menu-bar': false,
showMenuBar: false,
maximize: false,
zoom: 1,
'clear-cache': false,
clearCache: false,
'block-external-urls': false,
blockExternalUrls: false,
'strict-internal-urls': false,
strictInternalUrls: false,
'disable-gpu': false,
disableGpu: false,
'enable-es3-apis': false,
enableEs3Apis: false,
'ignore-gpu-blacklist': false,
ignoreGpuBlacklist: false,
'disable-old-build-warning-yesiknowitisinsecure': false,
disableOldBuildWarningYesiknowitisinsecure: false,
'ignore-certificate': false,
ignoreCertificate: false,
insecure: false,
flash: false,
bounce: false,
counter: false,
'darwin-dark-mode-support': false,
darwinDarkModeSupport: false,
f: false,
'fast-quit': false,
fastQuit: false,
quiet: false,
'$0': 'nativefier',
targetUrl: 'https://messages.google.com/web',
out: ''
}
Inferred arch x64
Normalized URL https://messages.google.com/web to: https://messages.google.com/web
Running in verbose mode! This will produce a mountain of logs and is recommended only for troubleshooting or if you like Shakespeare.
Building app as portable. SECURITY WARNING: all data accumulated in the app folder after running it (including login information, cache, cookies) will be saved in the app folder. If this app is then shared with others, THEY WILL HAVE THAT ACCUMULATED DATA, POTENTIALLY INCLUDING ACCESS TO ANY ACCOUNTS YOU LOGGED INTO.

Performing async options post-processing.
Got icon from options. Using it, no inferring needed
Sanitized filename for Android Messages : AndroidMessages
options {
packager: {
appCopyright: undefined,
appVersion: undefined,
arch: 'x64',
asar: false,
buildVersion: undefined,
darwinDarkModeSupport: false,
dir: '/usr/local/lib/node_modules/nativefier/app',
electronVersion: '25.7.0',
icon: '$HOME/Pictures/Icons/android-messages-logo.png',
name: 'AndroidMessages',
out: '',
overwrite: true,
quiet: false,
platform: 'linux',
portable: true,
targetUrl: 'https://messages.google.com/web',
tmpdir: false,
upgrade: false,
upgradeFrom: undefined,
win32metadata: {
ProductName: 'Android Messages',
InternalName: 'Android Messages',
FileDescription: 'Android Messages'
}
},
nativefier: {
accessibilityPrompt: true,
alwaysOnTop: false,
backgroundColor: undefined,
basicAuthPassword: undefined,
basicAuthUsername: undefined,
blockExternalUrls: false,
bookmarksMenu: undefined,
bounce: false,
browserwindowOptions: undefined,
clearCache: false,
counter: false,
crashReporter: undefined,
disableContextMenu: false,
disableDevTools: true,
disableGpu: false,
diskCacheSize: undefined,
disableOldBuildWarning: false,
enableEs3Apis: false,
fastQuit: false,
fileDownloadOptions: undefined,
flashPluginDir: undefined,
fullScreen: false,
globalShortcuts: undefined,
hideWindowFrame: false,
ignoreCertificate: false,
ignoreGpuBlacklist: false,
inject: [],
insecure: false,
internalUrls: undefined,
lang: undefined,
maximize: false,
nativefierVersion: '52.0.0',
quiet: false,
processEnvs: undefined,
proxyRules: undefined,
showMenuBar: false,
singleInstance: true,
strictInternalUrls: false,
titleBarStyle: undefined,
tray: 'true',
userAgent: undefined,
userAgentHonest: true,
verbose: true,
versionString: undefined,
width: 1280,
height: 800,
minWidth: undefined,
minHeight: undefined,
maxWidth: undefined,
maxHeight: undefined,
widevine: false,
x: undefined,
y: undefined,
zoom: 1
}
}

Preparing Electron app...
Copying electron app from /usr/local/lib/node_modules/nativefier/app to /tmp/nativefier-19-25-7-app--345717-aeC08QVPuN07
Writing app config to /tmp/nativefier-19-25-7-app--345717-aeC08QVPuN07/nativefier.json {
accessibilityPrompt: true,
alwaysOnTop: false,
appBundleId: undefined,
appCategoryType: undefined,
appCopyright: undefined,
appVersion: undefined,
arch: 'x64',
asar: false,
backgroundColor: undefined,
basicAuthPassword: undefined,
basicAuthUsername: undefined,
blockExternalUrls: false,
bounce: false,
browserwindowOptions: undefined,
buildDate: 1693502707262,
buildVersion: undefined,
clearCache: false,
counter: false,
crashReporter: undefined,
darwinDarkModeSupport: false,
derefSymlinks: undefined,
disableContextMenu: false,
disableDevTools: true,
disableGpu: false,
disableOldBuildWarning: false,
diskCacheSize: undefined,
download: undefined,
electronVersionUsed: '25.7.0',
enableEs3Apis: false,
executableName: undefined,
fastQuit: false,
fileDownloadOptions: undefined,
flashPluginDir: undefined,
fullScreen: false,
globalShortcuts: undefined,
height: 800,
helperBundleId: undefined,
hideWindowFrame: false,
ignoreCertificate: false,
ignoreGpuBlacklist: false,
insecure: false,
internalUrls: undefined,
isUpgrade: false,
junk: undefined,
lang: undefined,
maximize: false,
maxHeight: undefined,
maxWidth: undefined,
minHeight: undefined,
minWidth: undefined,
name: 'AndroidMessages',
nativefierVersion: '52.0.0',
osxNotarize: undefined,
osxSign: undefined,
portable: true,
processEnvs: undefined,
protocols: undefined,
proxyRules: undefined,
prune: undefined,
quiet: false,
showMenuBar: false,
singleInstance: true,
strictInternalUrls: false,
targetUrl: 'https://messages.google.com/web',
titleBarStyle: undefined,
tray: 'true',
usageDescription: undefined,
userAgent: undefined,
userAgentHonest: true,
versionString: undefined,
width: 1280,
widevine: false,
win32metadata: {
ProductName: 'Android Messages',
InternalName: 'Android Messages',
FileDescription: 'Android Messages'
},
x: undefined,
y: undefined,
zoom: 1,
oldBuildWarningText: ''
}
No files to inject, skipping copy.
Updating /tmp/nativefier-19-25-7-app--345717-aeC08QVPuN07/package.json 'name' field to androidmessages-nativefier-11f104

Converting icons...
Building for Linux and icon is already a .png, no conversion needed
Copying icons if necessary
Copying icon $HOME/Pictures/Icons/android-messages-logo.png to /tmp/nativefier-19-25-7-app--345717-aeC08QVPuN07/icon.png

Packaging... This will take a few seconds, maybe minutes if the requested Electron isn't cached yet...
electron-packager Electron Packager 17.1.2
electron-packager Node v18.17.1
electron-packager Host Operating system: linux 6.4.12-200.fc38.x86_64 (x64) +0ms
electron-packager Packager Options: {"arch":"x64","asar":false,"darwinDarkModeSupport":false,"dir":"/tmp/nativefier-19-25-7-app--345717-aeC08QVPuN07","electronVersion":"25.7.0","icon":"$HOME/Pictures/Icons/android-messages-logo.png","name":"AndroidMessages","out":"","overwrite":true,"quiet":false,"platform":"linux","portable":true,"targetUrl":"https://messages.google.com/web","tmpdir":false,"upgrade":false,"win32metadata":{"ProductName":"Android Messages","InternalName":"Android Messages","FileDescription":"Android Messages"},"appBundleId":"com.electron.nativefier.androidmessages-nativefier-11f104"} +0ms
electron-packager Target Platforms: linux +0ms
electron-packager Target Architectures: x64 +0ms
electron-packager Inferring appVersion from version in /tmp/nativefier-19-25-7-app--345717-aeC08QVPuN07/package.json +0ms
electron-packager Application name: AndroidMessages +4ms
electron-packager Target Electron version: 25.7.0 +0ms
electron-packager Ignored path regular expressions: [
'/package-lock\.json$',
'/yarn\.lock$',
'/\.git($|/)',
'/node_modules/\.bin($|/)',
'\.o(bj)?$',
'/node_gyp_bins($|/)',
'/tmp/electron-packager'
] +0ms
electron-packager Downloading Electron with options {"platform":"linux","arch":"x64","version":"25.7.0","artifactName":"electron"} +0ms
Packaging app for platform linux x64 using electron v25.7.0
electron-packager Creating $HOME/Applications/android-messages/linux-x64-template-67ZFXF +3ms
electron-packager Extracting $HOME/.cache/electron/7909d151958d0c601851544a64140b26c71b8b5a2e8e44b8e6c1f1fe3a0f5b95/electron-v25.7.0-linux-x64.zip to $HOME/Applications/android-messages/linux-x64-template-67ZFXF +0ms
electron-packager Initializing app in $HOME/Applications/android-messages/AndroidMessages-linux-x64 from $HOME/Applications/android-messages/linux-x64-template-67ZFXF template +0ms
electron-packager Ignored paths based on the out param: [
'$HOME/Applications/android-messages/AndroidMessages-darwin-x64',
'$HOME/Applications/android-messages/AndroidMessages-darwin-arm64',
'$HOME/Applications/android-messages/AndroidMessages-darwin-universal',
'$HOME/Applications/android-messages/AndroidMessages-linux-ia32',
'$HOME/Applications/android-messages/AndroidMessages-linux-x64',
'$HOME/Applications/android-messages/AndroidMessages-linux-armv7l',
'$HOME/Applications/android-messages/AndroidMessages-linux-arm64',
'$HOME/Applications/android-messages/AndroidMessages-linux-mips64el',
'$HOME/Applications/android-messages/AndroidMessages-mas-x64',
'$HOME/Applications/android-messages/AndroidMessages-mas-arm64',
'$HOME/Applications/android-messages/AndroidMessages-mas-universal',
'$HOME/Applications/android-messages/AndroidMessages-win32-ia32',
'$HOME/Applications/android-messages/AndroidMessages-win32-x64',
'$HOME/Applications/android-messages/AndroidMessages-win32-arm64'
] +2s
electron-packager Validating bundled Electron app +0ms
electron-packager Checking for a package.json file +0ms
electron-packager Checking for the main entry point file +0ms
electron-packager Validation complete +1ms
electron-packager Renaming electron to AndroidMessages in $HOME/Applications/android-messages/AndroidMessages-linux-x64 +13ms

Finalizing build...
App built to $HOME/Applications/android-messages/AndroidMessages-linux-x64, move to wherever it makes sense for you and run the contained executable file (prefixing with ./ if necessary)
Menu/desktop shortcuts are up to you, because Nativefier cannot know where you're going to move the app. Search for "linux .desktop file" for help, or see https://wiki.archlinux.org/index.php/Desktop_entries

Nativefier version

52.0.0

Node.js version

v18.17.1

npm version

9.6.7

OS

Linux 6.4.12-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 23 17:46:49 UTC 2023 x86_64 GNU/Linux

@hurrrtin
Copy link

I too have this issue. I bought a new PC this week and the same issue happens to me in Windows 11 x64 (including using the base URL, which works fine until I click the /web link.) I dual boot ArchLinux, and an older compile works fine, and this used to work on my previous computer in Windows 11.

Nativefier Version
52.0.0

Node.js Version
18.17.1 x64

npm Version
9.8.1

URL:
https://messages.google.com/web

Compiled Verbose Output:
PS C:\Users\Will\Downloads\Messages-win32-x64> .\Messages.exe --verbose
PS C:\Users\Will\Downloads\Messages-win32-x64>
appArgs {
accessibilityPrompt: true,
alwaysOnTop: false,
arch: 'x64',
asar: false,
blockExternalUrls: false,
bounce: false,
buildDate: 1693517605452,
clearCache: false,
counter: false,
darwinDarkModeSupport: false,
disableContextMenu: false,
disableDevTools: false,
disableGpu: false,
disableOldBuildWarning: false,
electronVersionUsed: '25.7.0',
enableEs3Apis: false,
fastQuit: false,
fullScreen: false,
height: 800,
hideWindowFrame: false,
ignoreCertificate: false,
ignoreGpuBlacklist: false,
insecure: false,
isUpgrade: false,
maximize: false,
name: 'Messages',
nativefierVersion: '52.0.0',
portable: false,
quiet: false,
showMenuBar: false,
singleInstance: false,
strictInternalUrls: false,
targetUrl: 'https://messages.google.com/web',
tray: 'false',
userAgentHonest: false,
width: 1280,
widevine: false,
win32metadata: {
ProductName: 'Messages',
InternalName: 'Messages',
FileDescription: 'Messages'
},
zoom: 1,
oldBuildWarningText: ''
}
app.will-finish-launching
ready
getDefaultWindowOptions {
options: {
accessibilityPrompt: true,
alwaysOnTop: false,
arch: 'x64',
asar: false,
blockExternalUrls: false,
bounce: false,
buildDate: 1693517605452,
clearCache: false,
counter: false,
darwinDarkModeSupport: false,
disableContextMenu: false,
disableDevTools: false,
disableGpu: false,
disableOldBuildWarning: false,
electronVersionUsed: '25.7.0',
enableEs3Apis: false,
fastQuit: false,
fullScreen: false,
height: 800,
hideWindowFrame: false,
ignoreCertificate: false,
ignoreGpuBlacklist: false,
insecure: false,
isUpgrade: false,
maximize: false,
name: 'Messages',
nativefierVersion: '52.0.0',
portable: false,
quiet: false,
showMenuBar: false,
singleInstance: false,
strictInternalUrls: false,
targetUrl: 'https://messages.google.com/web',
tray: 'false',
userAgentHonest: false,
width: 1280,
widevine: false,
win32metadata: {
ProductName: 'Messages',
InternalName: 'Messages',
FileDescription: 'Messages'
},
zoom: 1,
oldBuildWarningText: '',
autoHideMenuBar: true,
tabbingIdentifier: undefined
},
webPreferences: {},
defaultOptions: {
autoHideMenuBar: true,
fullscreenable: true,
tabbingIdentifier: undefined,
title: 'Messages',
webPreferences: {
javascript: true,
nodeIntegration: false,
preload: 'C:\Users\Will\Downloads\Messages-win32-x64\resources\app\lib\preload.js',
plugins: true,
sandbox: false,
webSecurity: true,
zoomFactor: 1,
contextIsolation: false
}
}
}
app.browser-window-created
createMenu {
options: {
accessibilityPrompt: true,
alwaysOnTop: false,
arch: 'x64',
asar: false,
blockExternalUrls: false,
bounce: false,
buildDate: 1693517605452,
clearCache: false,
counter: false,
darwinDarkModeSupport: false,
disableContextMenu: false,
disableDevTools: false,
disableGpu: false,
disableOldBuildWarning: false,
electronVersionUsed: '25.7.0',
enableEs3Apis: false,
fastQuit: false,
fullScreen: false,
height: 800,
hideWindowFrame: false,
ignoreCertificate: false,
ignoreGpuBlacklist: false,
insecure: false,
isUpgrade: false,
maximize: false,
name: 'Messages',
nativefierVersion: '52.0.0',
portable: false,
quiet: false,
showMenuBar: false,
singleInstance: false,
strictInternalUrls: false,
targetUrl: 'https://messages.google.com/web',
tray: 'false',
userAgentHonest: false,
width: 1280,
widevine: false,
win32metadata: {
ProductName: 'Messages',
InternalName: 'Messages',
FileDescription: 'Messages'
},
zoom: 1,
oldBuildWarningText: ''
}
}
initContextMenu
app.browser-window-focus
mainWindow.focus
sendParamsOnDidFinishLoad.window.webContents.did-finish-load https://messages.google.com/web/
app.browser-window-blur

@jenschurchill
Copy link
Author

jenschurchill commented Sep 1, 2023

Found 2 workarounds...

  1. Downgrading to ver. 51 seems to work.

  2. With ver. 52, adding "--disableGpu" to options, also looks to work.
    Edit: ^^^ disable-gpu fails afterall, works for the QR code page, but gives whitepage and "ERROR:interface_endpoint_client.cc(697)] Message 0 rejected by interface blink.mojom.WidgetHost" errors after.

For me that becomes:

nativefier \
	"https://messages.google.com/web" \
	"$target" \
	--icon "$HOME/Pictures/Icons/android-messages-logo.png" \
	--name "Android Messages" \
	--platform "linux" \
	--tray \
	--portable \
	--honest \
	--single-instance \
	--disable-dev-tools \
	--disableGpu

@hurrrtin
Copy link

hurrrtin commented Sep 1, 2023

Thank you, jenschurchill! Downgrading to 51.0.0 fixes the issue for me as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants