Skip to content

cannot close an unsaved sketch window after edit. second attempt to close crashes the IDE #7208

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

Open
JM-FRANCE opened this issue Feb 11, 2018 · 11 comments
Labels
Component: IDE The Arduino IDE IDE 1.9.x Beta Related to the Arduino IDE Beta Build OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug

Comments

@JM-FRANCE
Copy link

Arduino 1.8.5 on Mac OS X 10.13.3 (High Sierra)

How to reproduce:

  • launch the IDE

  • open a new sketch --> window N°1

  • open a second sketch --> window N°2

  • type any text in the second window N°2 so that the sketch is marked as modified

  • press cmd-w to close the second window
    --> you get a modal dialog panel stating "Do you want to save changes to this sketch before closing"

  • answer "don't save"
    --> RESULT: the alert panel get discarded but the window N°2 is still opened

  • press cmd-w again to close the second window
    --> RESULT: the IDE crashes

@JM-FRANCE JM-FRANCE changed the title cannot close an unsaved sketch window after edit / crash cannot close an unsaved sketch window after edit. second attempt to close crashes the IDE Feb 11, 2018
@facchinm facchinm added Component: IDE The Arduino IDE Type: Bug OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE labels Feb 12, 2018
@facchinm
Copy link
Member

Hi @JAY-M-ERICSSON ,would you mind testing if this bug also applies to the Beta build (https://www.arduino.cc/en/Main/Software#beta) ? Thanks!

@technoblogy
Copy link

Arduino 1.8.5 on Mac OS X 10.13.3 (High Sierra)

I can confirm that I am getting this same behaviour of a window staying open after trying to close it, followed by a crash.

Also, I frequently get a crash when opening a sketch from the Sketchbook submenu, or creating a new sketch with New.

Also, the Open Recent submenu is sometimes unexpectedly empty.

The problem still occurs on the Beta in the link in the previous comment.

@00alis
Copy link
Contributor

00alis commented Feb 13, 2018

Just tested on High Sierra 10.13.3 and Arduino 1.8.5 and everything works fine for me.

@JAY-M-ERICSSON

answer "don't save"
--> RESULT: the alert panel get discarded but the window N°2 is still opened

In your steps to reproduce in here windows N 1 is still open, not the N 2. Then you try to close the window N 1 by pressing CMD+W, could you confirm?

@technoblogy
Copy link

For me the problem is very erratic. Sometimes I don't encounter a problem. Another day I might get a crash every time I try to open a sketch.

@JM-FRANCE
Copy link
Author

JM-FRANCE commented Feb 13, 2018 via email

@JM-FRANCE
Copy link
Author

Hey

just tested with PR-beta1.9-BUILD-37 and the problem is gone.

@ubidefeo
Copy link

ubidefeo commented Apr 5, 2019

I'm going to freshen this up :)
issue is still present in 1.8.9

@per1234
Copy link
Collaborator

per1234 commented Apr 5, 2019

@ubidefeo the discussion seems to indicate that it was resolved in the beta build of the Arduino IDE, but there is no mention of whether the fix was also in the master branch. I don't have an OSX system to try it out. Are you able to reproduce this when using the beta build?:
https://www.arduino.cc/en/Main/Software#beta
If so, I'll re-open the issue.

@ubidefeo
Copy link

ubidefeo commented Apr 5, 2019

@per1234
I haven't had this issue with 1.9 Beta

@technoblogy
Copy link

Please reopen this issue. I've just had a crash with 1.8.9 (release version) after attempting to open an old sketch from the Sketchbook menu, as described earlier in this thread. After restarting the Arduino app the sketch was opened.

@per1234 per1234 added the IDE 1.9.x Beta Related to the Arduino IDE Beta Build label Apr 14, 2019
@per1234
Copy link
Collaborator

per1234 commented Apr 14, 2019

Although the issue could technically be considered fixed, I remember now that facchinm told me the procedure is to leave issues that are only fixed in the ide-1.9.x-beta branch open until the fix is merged back into the master branch.

So I've added the IDE 1.9.x Beta label so that we can more easily find this after the merge and reopened it.

@per1234 per1234 reopened this Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE IDE 1.9.x Beta Related to the Arduino IDE Beta Build OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug
Projects
None yet
Development

No branches or pull requests

6 participants