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

Electron Fiddle start fails with segmentation fault #1597

Open
jabaa opened this issue May 17, 2024 · 10 comments
Open

Electron Fiddle start fails with segmentation fault #1597

jabaa opened this issue May 17, 2024 · 10 comments
Labels
❓ more-information-needed We need a bit of information before we can work on this

Comments

@jabaa
Copy link

jabaa commented May 17, 2024

I can't start Electron Fiddle on Kali Linux. I've installed the .deb package. When I start it with a link or in the GUI, nothing happens. When I start it from terminal, I get a segmentation fault:

$ electron-fiddle 
Creating main window
MESA-INTEL: warning: Haswell Vulkan support is incomplete
zsh: segmentation fault  electron-fiddle

I've also tried the AppImage package:

$ ./Electron.Fiddle-0.36.3-x64.AppImage 
MESA-INTEL: warning: Haswell Vulkan support is incomplete
Creating main window
zsh: segmentation fault  ./Electron.Fiddle-0.36.3-x64.AppImage

I don't see, how I could debug the problem. What could be the reason?

@jabaa
Copy link
Author

jabaa commented May 18, 2024

Same problem with a fresh Debian 12.5. After a restart it started once with Debian, but not again. Now, I get

$ electron-fiddle
MESA-INTEL: warning: Haswell Vulkan support is incomplete
Creating main window
Content: 30-x-y template loading
Content: 30-x-y downloading template
Segmentation fault

@nitinsdg
Copy link

I am also getting same issue of segmentation fault in ubuntu 22, below is error message. Any help is appreciated.

Creating main window
MESA-INTEL: warning: Haswell Vulkan support is incomplete
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
Segmentation fault (core dumped)

@codebytere
Copy link
Member

Could you please attach a crash dump to help us get more information? You can collect them by adding the following snippet to your main process code, before app.whenReady:

const { app, crashReporter } = require('electron')
console.log(app.getPath('crashDumps'))
crashReporter.start({ submitURL: '', uploadToServer: false })

Then reproduce the crash, zip up the crash dumps directory and attach it here. Thanks!

@codebytere codebytere added the ❓ more-information-needed We need a bit of information before we can work on this label May 24, 2024
@jabaa
Copy link
Author

jabaa commented May 24, 2024

@codebytere What and where is the main script? electron-fiddle looks like a compiled binary.

@aadcg
Copy link

aadcg commented May 25, 2024

Could you please attach a crash dump to help us get more information? You can collect them by adding the following snippet to your main process code, before app.whenReady:

const { app, crashReporter } = require('electron')
console.log(app.getPath('crashDumps'))
crashReporter.start({ submitURL: '', uploadToServer: false })

Then reproduce the crash, zip up the crash dumps directory and attach it here. Thanks!

Running a fiddle with main.js populated as you instruct above outputs the following. The files at /tmp/... are gone.

Saving files to temp directory...
Saved files to /tmp/electron-fiddle-68331-MHLGpjIpctpO
Electron v29.4.0 started.
LaunchProcess: failed to execvp:
/home/aadcg/.config/Electron
[69076:0525/174237.585693:FATAL:zygote_host_impl_linux.cc(202)] Check failed: . : Invalid argument (22)

Electron exited with signal SIGTRAP.

@jabaa
Copy link
Author

jabaa commented May 25, 2024

I'm not sure if my issue was unclear. I can't even start the program electron-fiddle. The IDE doesn't open. I'm not talking about running a fiddle.

@aadcg
Copy link

aadcg commented May 28, 2024

@jabaa it is clear to me. I would like to request re-opening #1598.

@jabaa
Copy link
Author

jabaa commented May 29, 2024

But I think it's unclear to @codebytere. How can I add a JavaScript code snippet if I can't even start the program? I think, your problem is different and probably unrelated to this problem. I can run Electron applications like VS Code or https://github.com/electron/electron-quick-start. I only can't start the program electron-fiddle. You can't run Electron applications if I correctly understand.

@aadcg
Copy link

aadcg commented May 30, 2024

@jabaa I can run Electron applications, but I can't run fiddles.

@jabaa
Copy link
Author

jabaa commented May 30, 2024

@codebytere aadcg can start electron-fiddle and we can't. That are two different, probably unrelated problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ more-information-needed We need a bit of information before we can work on this
Projects
None yet
Development

No branches or pull requests

4 participants