fiddle icon indicating copy to clipboard operation
fiddle copied to clipboard

Electron Fiddle start fails with segmentation fault

Open jabaa opened this issue 1 year ago • 10 comments

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 avatar May 17 '24 20:05 jabaa

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

jabaa avatar May 18 '24 11:05 jabaa

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)

nitinsdg avatar May 23 '24 06:05 nitinsdg

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 avatar May 24 '24 18:05 codebytere

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

jabaa avatar May 24 '24 20:05 jabaa

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.

aadcg avatar May 25 '24 14:05 aadcg

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.

jabaa avatar May 25 '24 19:05 jabaa

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

aadcg avatar May 28 '24 16:05 aadcg

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.

jabaa avatar May 29 '24 20:05 jabaa

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

aadcg avatar May 30 '24 08:05 aadcg

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

jabaa avatar May 30 '24 16:05 jabaa

Hi @jabaa, can you test the latest release (v0.36.4) and see if this is still a problem for you? Thanks!

dsanders11 avatar Jul 24 '24 23:07 dsanders11

@dsanders11 It seems to work now. Thank you.

jabaa avatar Aug 10 '24 19:08 jabaa