-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
Crash with offscreen webview on Linux/Windows #8599
Comments
Here is the stack trace with more symbols:
|
This also happens on Windows as well. |
@gerhardberger @brenca any ideas on this one? |
could you provide a sample code that reproduces this issue? also, I'm not sure, but it looks like you are trying to offscreen render a |
index.jsconst {app, BrowserWindow} = require('electron')
let win
app.once('ready', () => {
win = new BrowserWindow({
webPreferences: {
offscreen: true
}
})
win.loadURL(`file://${__dirname}/index.html`)
win.webContents.on('paint', (event, dirty, image) => {
console.log('paint')
})
win.webContents.setFrameRate(30)
}) index.html<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<webview src="https://github.com"></webview>
</body>
</html> |
it works fine on macOS, @brenca will check it out on Windows soon! |
Yeah, I only see the crash on Linux and Windows. |
After some digging, this seems to be something I can only solve with a libchromiumcontent patch (these lines are missing in the current state). Working on a fix. |
I am getting segfaults as well; could it be related or should I open a separate issue? (Ubuntu as well this, but the URLs it crashes on do not seem to have popups but they do work in offscreen=false mode). [996571.764538] electron[1808]: segfault at b8 ip 00007f14d7ac7e94 sp 00007ffe8755daf0 error 4 in libGL.so.1.2.0[7f14d7aa8000+70000] |
@tluyben Do you have a |
@brenca I am running nightmarejs which uses Electron. In debug mode it does not crash while in headless mode it does crash on some URLs. I will try to compile a list as well. |
@brenca I was getting similar core dumps as @tluyben running electron 1.7.6 through nightmare. It was opening www.yahoo.com. The fix in my case was to My final command-line is Fix found here: wechaty/wechaty#235 (comment) |
Electron version: 1.14.15
NodeJS version: v6.9.5
Operating system: Linux ip-172-31-47-144 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I have an app that creates a webview, loads a URL, and writes the current image to a file when ready. Setting offscreen: true so I can receive paint events causes Electron to segfault with the following stack trace:
The text was updated successfully, but these errors were encountered: