Closed usaszerelem closed 4 years ago
Arduino quit unexpectedly when opening the Serial Monitor.
Clean uninstalled and reinstalled. I load my sketch, try to do anything with it and crashes. Here is the crash dump.
same for me. Worked until I updated to Catalina
Facing same issue. Worked with previous OS. Is there a temporary solution ?
The temporary solution is to use Arduino IDE 1.8.10, the last version before OpenJDK was introduced. You can download it here: https://www.arduino.cc/en/Main/OldSoftwareReleases
I'm not very knowledgeable on this subject, but I believe you will encounter the
"Arduino" can't be opened because Apple cannot check it for malicious software.
issue with Arduino IDE 1.8.10 due to it not being notarized. There is an explanation of the workaround for that here: https://github.com/arduino/Arduino/issues/9314#issuecomment-541461214
I am having a similar bug on Catalina - the splash screen opens and it runs initialisation etc, but once the splash screen closes, the IDE never appears.
I have tried 1.8.10 as per @per1234 's suggestion, but this also did not work for me. I can't find the logs that OP links, and in fact my /Users/me/Library/Arduino15/logs/application.log is completely empty - should I be looking elsewhere?
I have new 2019 iMac. I update new Java and download latest Arduino. No blinking Arduino Uno LED blinking lights avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
@screenmac that is off topic for this issue and likely for this issue tracker in general.
This issue tracker is only to be used to report bugs or feature requests. Your topic is more appropriate for the Arduino Forum. I'm sure we'll be able to help you with your problem over there.
Please do this:
I am having a similar bug on Catalina - the splash screen opens and it runs initialisation etc, but once the splash screen closes, the IDE never appears.
I have tried 1.8.10 as per @per1234 's suggestion, but this also did not work for me. I can't find the logs that OP links, and in fact my /Users/me/Library/Arduino15/logs/application.log is completely empty - should I be looking elsewhere?
I was able to fix this by downloading the latest hourly build, and when I ran into the security bug on opening it (detailed (here)[https://github.com/arduino/Arduino/issues/9713]), I just right click -> open on the icon (to bypass the Apple check)
Downgrading to Arduino IDE 1.8.10 got me back up and running. I am on OS X 10.15.3 (19D76)
. I've not tried the latest hourly build
@gvarisco it looks like Apple is not enforcing the notarization yet... Do you have any insights? Getting rid of the bugs provoked by AdoptJDK would be quite important.
Had the same issue. Going back to 1.8.10 fixed it for the moment. Anyway opening 1.8.10 gives me the following message, maybe it helps:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at cc.arduino.view.NotificationPopup.updateLocation(NotificationPopup.java:244)
at cc.arduino.view.NotificationPopup.
So active editor is null in that case? Editor ed = base.getActiveEditor();
Here is why it happens and how to work around it until an official solution is introduced: When you place the IDE on one screen and the Serial monitor on another, any attempt to move between the two windows or dragging the serial monitor crashes the application immediately. Two avoid this, place both windows on the same screen, and you shouldn't encounter these crashes.
This bug also happens when attaching a HDMI new screen or any changing of the video output. As an educator that is constantly switching between screens while teaching Arduino, this is a very annoying problem. Arduino IDE will crash every time I toggle between mirroring my own screen and using at as an external screen. I can confirm that this bug happens on OSX 10.15.2 and OSX 10.15.4 also.
Downgrading to Arduino IDE 1.8.10 also got me back up and running. I am on OS X 10.15.4. IDE 1.8.12 was unusable once I tried to load sketches. OK for checking libraries. Just crashed when I tried to load a sketch. I do have an HDMI monitor in addition to my laptop screen.
MacOS 10.15.4 same as above. I will try IDE 1.8.10!!! thank you!!!
Here is why it happens and how to work around it until an official solution is introduced: When you place the IDE on one screen and the Serial monitor on another, any attempt to move between the two windows or dragging the serial monitor crashes the application immediately. Two avoid this, place both windows on the same screen, and you shouldn't encounter these crashes.
Exactly I have found if I attempt to move any of the sketch or serial monitor windows to a different screen it crashes. Mac OS10.15.4 IDE 1.8.12 - Under Mission Control I run that Displays have separate spaces. I'm yet to try disabling that and seeing if it makes a difference
FWIW, I am running macOS 10.15.4 and using Arduino IDE version 1.8.12. It crashes only when using an external display, i.e. moving any Arduino IDE window between displays. Without using the external display, the application has not yet crashed for me.
Hi, This is a known problem and has to do with the version of SQL. solution: reverting back to IDE 1.8.10.
Leen van Gent
On 18 May 2020, at 05:16, Maurice notifications@github.com wrote:
FWIW, I am running macOS 10.15.4 and it crashes only when using an external display, i.e. moving any Arduino IDE window between displays. Without using the external display, the application has not yet crashed yet for me.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
MBP 16, macOS Catalina 10.15.4 After installing a board in Arduino, the app crashed and would crash every time I open it up. Tried to reinstall, nothing. Even tried the 1.8.10 version, nothing. Then I used App Cleaner to remove the Arduino App, and reinstalled. Voilá! It works!
After trying to install again the board, closed the app. Trying to open the App again, it keeps crashing. Used App Cleaner to clean the /Library/Arduino15 folder. Now the App opens. After closing (library is back in place) , the App doesn't open anymore. I don't really want to keep cleaning the Library folder every time I need to open the Arduino App.
I'm having the same problem, MacOS 10.15.5, latest non-beta Arduino version (from last week. Can't find the version number), brand new MacBook Air with nothing else on it yet. At first it worked fine (I added a library for Move38 Blinks and played around with that for a while) and now a few days later (perhaps because I closed the app) the app opens, shows the loading screen, and immediately closes/crashes.
Can verify that using AppCleaner to remove the /Library/Arduino15 folder makes it work again. Annoying though.
Same issue. Mac 10.15.5, was work for few days. Today I try to make my own library in the Arduino library folder and still works fine. After I restart my computer then Arduino not able to open any more. Even though remove the Arduino folder or download Arduino again.
By the way, I don't have any Arduino related folder under /Library.
Oh, just realize it's ~/Library, not /Library. After delete the folder then it's able to open now.
But I cannot open Board Manager anymore. Cannot download esp8266, still blocked.
java.lang.NullPointerException java.lang.RuntimeException: java.lang.NullPointerException at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483) at processing.app.Base$9.onIndexesUpdated(Base.java:1400) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:148) ... 1 more Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at cc.arduino.contributions.packages.ui.ContributedPlatformTableCellJPanel.update(ContributedPlatformTableCellJPanel.java:222) at cc.arduino.contributions.packages.ui.ContributedPlatformTableCellRenderer.getTableCellRendererComponent(ContributedPlatformTableCellRenderer.java:47) at javax.swing.JTable.prepareRenderer(JTable.java:5729) at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2114) at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2016) at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1812) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) at javax.swing.JComponent.paintComponent(JComponent.java:780) at javax.swing.JComponent.paint(JComponent.java:1056) at javax.swing.JComponent.paintChildren(JComponent.java:889) at javax.swing.JComponent.paint(JComponent.java:1065) at javax.swing.JViewport.paint(JViewport.java:728) at javax.swing.JComponent.paintChildren(JComponent.java:889) at javax.swing.JComponent.paint(JComponent.java:1065) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579) at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502) at javax.swing.RepaintManager.paint(RepaintManager.java:1272) at javax.swing.JComponent._paintImmediately(JComponent.java:5158) at javax.swing.JComponent.paintImmediately(JComponent.java:4969) at javax.swing.RepaintManager$4.run(RepaintManager.java:831) at javax.swing.RepaintManager$4.run(RepaintManager.java:814) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789) at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738) at javax.swing.RepaintManager.access$1200(RepaintManager.java:64) at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) at java.awt.Dialog.show(Dialog.java:1084) at java.awt.Component.show(Component.java:1671) at java.awt.Component.setVisible(Component.java:1623) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:1005) at processing.app.Base.openBoardsManager(Base.java:1414) at processing.app.Base$10.actionPerformed(Base.java:1441) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125) at java.awt.MenuItem.processActionEvent(MenuItem.java:669) at java.awt.MenuItem.processEvent(MenuItem.java:628) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:357) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:345) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:763) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) java.lang.NullPointerException at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483) at processing.app.Base.openBoardsManager(Base.java:1418) at processing.app.Base$10.actionPerformed(Base.java:1441) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125) at java.awt.MenuItem.processActionEvent(MenuItem.java:669) at java.awt.MenuItem.processEvent(MenuItem.java:628) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:357) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:345) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:763) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
We had a problem on our package_index.json that caused the error and prevented the IDE to start. Now the package_index has been fixed, but to recover a working installation you must delete once again the package_index.json with the cache folder and restart the IDE as usual.
Windows:
Mac:
Linux:
Please note that the problem that prevents the IDE to start has already been fixed and it's ready for the next release, that's the reason why the Nightly/Beta Builds are not affected, and also the reason why we did not detect this problem earlier, sorry about that!
Thank you @facchinm. A couple of nights ago I was working happily with Arduino 1.8.12 on my MacBook with MacOS 10.15.3, then yesterday I tried to use it and it just loaded the splash screen and crashed as others have said. I deleted the app and reloaded - same problem until I saw your email at the bottom of the page - deleted the files and it is working again. Tony
Crashes a lot on MAC, why this issue is closed?
Clean uninstalled and reinstalled. I load my sketch, try to do anything with it and crashes. Here is the crash dump.
ArduinoIDECrash.txt