tag:blogger.com,1999:blog-5298160027330696474.post9087222236157969590..comments2024-02-08T08:59:46.535-08:00Comments on Arduino-er: My Arduino 1.6.3 cannot detect portErikhttp://www.blogger.com/profile/04983894331825656853noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5298160027330696474.post-60311231256400305432017-05-03T06:44:16.844-07:002017-05-03T06:44:16.844-07:00Hi. I saw something peculear happening in arduino-...<br />Hi. I saw something peculear happening in arduino-1.8.2, on ubuntu 16.04.02 LTS.<br />If I run ./arduino from the arduino home directory, while it gives the exception<br />Exception in thread "cc.arduino.packages.discoverers.serial.SerialBoardsLister" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0<br />at java.util.LinkedList.checkElementIndex(LinkedList.java:555)<br />at java.util.LinkedList.get(LinkedList.java:476)<br />at processing.app.Platform.resolveDeviceByVendorIdProductId(Platform.java:241)<br />at cc.arduino.packages.discoverers.serial.SerialBoardsLister.retriggerDiscovery(SerialBoardsLister.java:113)<br />at cc.arduino.packages.discoverers.serial.SerialBoardsLister.run(SerialBoardsLister.java:183)<br />at java.util.TimerThread.mainLoop(Timer.java:555)<br />at java.util.TimerThread.run(Timer.java:505)<br /><br />The peculear part is, it gives this exception only once and when the usb device is connected.<br /><br />Also if I run the command without the device connected, this error does not show up untill I attach the usb device.<br /><br />I have had this problem before, and sometimes it does not happen. Also when it does, my pc becomes useless for arduino for days togather.<br /><br />Note:<br />I tried all the tricks.<br />Adding user to dialout group,<br />running arduino as sudo<br />connecting disconnecting the usb port several times<br />etc etcVinshttps://www.blogger.com/profile/14252918893777703272noreply@blogger.com