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
dialog crashes electron when changing accepted extension #13097
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
I tried to reproduce this bug, but I could not. |
Thank you for additional explanation. I could not find the format select list on the dialog... I will check out on the debug build of electron and check out the callstack. |
I had a similar issue, and upgrading to 2.0.1 or later fixed it: |
Hi! thanks for the warning. |
Hi again! |
First of all, thanks for this amazing tool. You guys rock!
this might have something to do with #13048
If there is something else, I couldn't find it...
as for the Issue:
Expected Behavior
Once I open the Electron dialog, all files, except are grayed except for the selected extension. If I want to change the extension, ill go to the selection box under the files and change it. It should change the selectable files from the file list.
Actual behavior
I'm using a dialog inside the renderer code. I'm limiting the accepted extension in the openFile action and giving the user the choice of changing it. As soon as I change the extension, Electron freezes for a couple seconds and the closes, no error message given.
To Reproduce
It happened to me every single time (I hope I'm not making a mistake...). Just copy the code in the renderer part of electron (I didn't test in the main code) and try to change the accepted extension
Code:
Test: I tried it on a "clean" electron (this one: [electron-quick-start]). You can either just copy this into renderer.js or clone this repo: electron error and follow the same steps as for electron-quick-start:
if you guys need anything else, please tell me
PS: not sure if this is relevant, but when the dialog opened (before the crash), this was printed in the console:
The text was updated successfully, but these errors were encountered: