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]: File open and save dialog cannot open on Linux KDE since Electron 14 #31997

Closed
3 tasks done
Clansty opened this issue Nov 25, 2021 · 6 comments · Fixed by #32049
Closed
3 tasks done

[Bug]: File open and save dialog cannot open on Linux KDE since Electron 14 #31997

Clansty opened this issue Nov 25, 2021 · 6 comments · Fixed by #32049

Comments

@Clansty
Copy link

@Clansty Clansty commented Nov 25, 2021

Preflight Checklist

Electron Version

14, 15, 16

What operating system are you using?

Other Linux

Operating System Version

Linux PROGYNOVA 5.15.4-zen1-1-zen #1 ZEN SMP PREEMPT Sun, 21 Nov 2021 21:34:35 +0000 x86_64 GNU/Linux

What arch are you using?

x64

Last Known Working Electron version

13.6.2

Expected Behavior

dialog.showSaveDialogSync(getMainWindow(), {
        title: 'Choose save path',
        defaultPath: path.join(app.getPath('desktop'),
            formatDate('yyyy-MM-dd') + '.csv'),
        filters: [{
            name: 'Comma-separated values (CSV)',
            extensions: ['csv'],
        }],
    })

Save file dialog popup

Actual Behavior

Nothing happened, terminal output:

[66476:1125/204240.240014:ERROR:browser_main_loop.cc(269)] Gtk: gtk_native_dialog_run: assertion '!priv->visible' failed

Testcase Gist URL

No response

Additional Information

❯ neofetch
                   -`                    clansty@PROGYNOVA 
                  .o+`                   ----------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Kernel: 5.15.4-zen1-1-zen 
               `+oooooo:                 Uptime: 9 hours, 22 mins 
               -+oooooo+:                Packages: 1336 (pacman) 
             `/:-:++oooo+:               Shell: zsh 5.8 
            `/++++/+++++++:              Resolution: 1080x1920, 2560x1440 
           `/++++++++++++++:             DE: Plasma 5.23.3 
          `/+++ooooooooooooo/`           WM: KWin 
         ./ooosssso++osssssso+`          Theme: Breeze Light [Plasma], Breeze [GTK3] 
        .oossssso-````/ossssss+`         Icons: breeze [Plasma], breeze [GTK2/3] 
       -osssssso.      :ssssssso.        Terminal: konsole 
      :osssssss/        osssso+++.       Terminal Font: Hack 10 
     /ossssssss/        +ssssooo/-       CPU: Intel Xeon E5-1650 v2 (12) @ 3.900GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: NVIDIA GeForce GTX 960 
  `+sso+:-`                 `.-/+oso:    Memory: 9947MiB / 15932MiB 
 `++:.                           `-/+/
 .`                                 `/                           
                                                                 
@Clansty Clansty changed the title [Bug]: File open and save dialog cannot open on Linux since Electron 14 [Bug]: File open and save dialog cannot open on Linux KDE since Electron 14 Nov 25, 2021
@madosuki
Copy link

@madosuki madosuki commented Nov 26, 2021

I've got same issue on Electron 16.0 on Debian 11.

@vchernin
Copy link

@vchernin vchernin commented Nov 29, 2021

@tristan957 any ideas?

I tried looking at #31258, which is potentially related, but building electron has been a challenge :(

@tristan957
Copy link
Contributor

@tristan957 tristan957 commented Nov 29, 2021

@vchernin let me look into this...

@tristan957
Copy link
Contributor

@tristan957 tristan957 commented Nov 29, 2021

@tristan957
Copy link
Contributor

@tristan957 tristan957 commented Nov 29, 2021

Does this assertion happen in the async code path for you?

@Narcha
Copy link

@Narcha Narcha commented Feb 1, 2022

Looks like #31152 can be closed as well.

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

Successfully merging a pull request may close this issue.

6 participants