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

[Bug]: dialog.showOpenDialog() crashes the electron app. #40171

Closed
3 tasks done
iprathamjain opened this issue Oct 11, 2023 · 1 comment
Closed
3 tasks done

[Bug]: dialog.showOpenDialog() crashes the electron app. #40171

iprathamjain opened this issue Oct 11, 2023 · 1 comment

Comments

@iprathamjain
Copy link

iprathamjain commented Oct 11, 2023

Preflight Checklist

Electron Version

27.0.0

What operating system are you using?

Ubuntu 16.04 LTS

Operating System Version

Ubuntu 16.04 LTS

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

dialog.showOpenDialog() this should open a dialog to select a file, and get it's path.

Actual Behavior

Instead as soon as this function is called, the electron app crashes and exits automatically.

Testcase Gist URL

No response

Additional Information

Happening on ubuntu 16.04, but works properly on ubuntu 17 and 18.
This is the short code snippet

async function handleFileOpen() {
  const { canceled, filePaths } = await dialog.showOpenDialog();
  console.log(filePaths,canceled);
  if (!canceled) {
    return filePaths[0];
  }
}

This are logs I got when app got crashed-

[7252:1010/183035.184817:ERROR:browser_main_loop.cc(275)] Gtk: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
[7252:1010/183035.184886:ERROR:browser_main_loop.cc(275)] GLib-GObject: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
Segmentation fault (core dumped)
@codebytere
Copy link
Member

@iprathamjain Unfortunately Chromium no longer supports Ubuntu v16, and as a result Electron does not either. We've updated our documentation to reflect that.

@codebytere codebytere closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: 👍 Does Not Block Stable
Development

No branches or pull requests

2 participants