# IDE restarts during a start

**URL:** <https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761>\
**Category:** IDE 2.x\
**Created:** [January 24, 2023, 5:25pm UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761 "2023-01-24T17:25:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FernandoGarcia](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fernandogarcia/32/214937_2.png) [@FernandoGarcia](https://forum.arduino.cc/u/FernandoGarcia)\
**Post date:** [January 24, 2023, 5:25pm UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761/1 "2023-01-24T17:25:51Z")

</div>

Hi!

I have noticed the behaviour shown on video many times in IDE 2.0.3.

[![Imgur](https://europe1.discourse-cdn.com/arduino/original/4X/a/8/7/a87df750b79a9c9c9187df7448a88c3c286e191e.jpeg "IDE 2.0") ](https://www.flickr.com/photos/fefegarcia1/52646646086/)

Actually I'm using flatpak but I saw this in AppImage too.

Sometimes the initial code tab is duplicated and can't be closed.

I have the full log from terminal attached.

[full.log](https://forum.arduino.cc/uploads/short-url/97FJaD8HgG4HoQlC1bF4LBMOYi5.log) (51.8 KB)

Best regards.

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [January 24, 2023, 5:30pm UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761/2 "2023-01-24T17:30:31Z")

</div>

> [@FernandoGarcia](#):
>
> Sometimes the initial code tab is duplicated and can't be closed.

From another topic, you can get rid of the duplicate tab using the below instructions.

> [@Can't create a split view (edited)](https://forum.arduino.cc/t/cant-create-a-split-view-edited/1023920/21):
>
> - Press the **Ctrl** + **Shift** + **P** keyboard shortcut ( **Command** + **Shift** + **P** for macOS users) to open the " **Command Palette**".
> - Select the " **View: Reset Workbench Layout**" command from the menu.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [January 24, 2023, 11:21pm UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761/3 "2023-01-24T23:21:23Z")

</div>

Hi @FernandoGarcia. Thanks for your report and the valuable details you included. Unfortunately I didn't spot anything of interest in the logs, but this video is interesting.

At 0:23, the IDE window has the side and bottom panels open:

![image](https://europe1.discourse-cdn.com/arduino/original/4X/2/c/e/2ce0ad2e42f0a1e5e7e36137d526cbc8f0972b2d.jpeg)

But then at 0:24 it shows a window with the pulsing Arduino logo loading animation again, then finally the troubled "sketch\_jan24a" sketch opens at 0:32.

Was all of this in one Arduino IDE window, or did two windows load during this screencast?

Are you still able to reproduce the problem?

The Arduino IDE developers are tracking this bug here:

> <https://github.com/arduino/arduino-ide/issues/1791>
>
> \### Describe the problem
> 
> I included a library via the menu and somehow this r…esulted in another tab opening for the same file. When I try to delete the file nothing happens. I've tried to move the sketch to some other folder and then open and that seems to work (after it renames the parent folder), but when I move it back to the original folder the new tab reappears.
> 
> I'm on Ubuntu 22.04.1 LTS and the latest stable version of the IDE shown on the website at the time of writing (2.0.3). I also tested on the latest nightly and it occurs there too.
> 
> If you need log files or something, please let me know.
> 
> !\[image\](https://user-images.githubusercontent.com/31189070/209982612-ecc4ae19-0ac0-40a7-87c3-f10fe0d66655.png)
> 
> 
> \### To reproduce
> 
> I tried reproducing and couldn't. But the issue is still there, even when I open the project on the nightly build.
> 
> \### Expected behavior
> 
> Delete closes the tab. Or closing and reopening the ediitor...
> 
> \### Arduino IDE version
> 
> 2.04-nightly-20221229
> 
> \### Operating system
> 
> Linux
> 
> \### Operating system version
> 
> 22.04.1 LTS
> 
> \### Additional context
> 
> The fact that this occurs across builds and after moving things around makes me think this has something to do with some kind of cache or (sketch?) settings file somewhere, but I don't know for sure.
> 
> I also remember the save icon being on briefly. I have autosave on, so I'm not sure if this happened before or after the library was included.
> 
> \---
> 
> Additional reports:
> 
> \- https://github.com/arduino/arduino-ide/issues/656#issuecomment-1363100279
> \- https://forum.arduino.cc/t/ide-2-0-3-double-tabs/1066585/1
> \- https://forum.arduino.cc/t/ide-2-0-3-double-tabs/1066585/2
> \- https://forum.arduino.cc/t/ide-2-0-3-double-tabs/1066585/3
> \- https://forum.arduino.cc/t/new-year-new-problems/1072182
> \- https://arduino.stackexchange.com/questions/91777/how-to-get-rid-of-the-second-tab-in-arduino-ide-2
> 
> \---
> 
> Related:
> 
> \- Previous incarnations of the duplicate tab bug (resolved:
> - Issues:
> - https://github.com/arduino/arduino-ide/issues/1054
> - https://github.com/arduino/arduino-ide/issues/793
> - https://github.com/arduino/arduino-ide/issues/665
> - https://github.com/arduino/arduino-ide/issues/656
> - PRs:
> - https://github.com/arduino/arduino-ide/pull/1085
> - https://github.com/arduino/arduino-ide/pull/1024
> - https://github.com/arduino/arduino-ide/pull/1012
> \- https://github.com/arduino/arduino-ide/issues/482
> - This bug produces a similar fault, but is otherwise unrelated.
> 
> \### Issue checklist
> 
> \- \[X\] I searched for previous reports in \[the issue tracker\](https://github.com/arduino/arduino-ide/issues?q=)
> \- \[X\] I verified the problem still occurs when using the latest \[nightly build\](https://www.arduino.cc/en/software#nightly-builds)
> \- \[X\] My report contains all necessary details

But we have not been able to reproduce the duplicate tabs fault so I am interested in learning more about it

---

<div class="post-metadata">

**Author:** ![FernandoGarcia](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fernandogarcia/32/214937_2.png) [@FernandoGarcia](https://forum.arduino.cc/u/FernandoGarcia)\
**Post date:** [January 24, 2023, 11:50pm UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761/4 "2023-01-24T23:50:18Z")

</div>

> [@ptillisch](#):
>
> Was all of this in one Arduino IDE window, or did two windows load during this screencast?

It's a single window.

> Are you still able to reproduce the problem?

Yes, there's a restart every time.

I can reproduce the double tab a few times.

 ![Captura de tela de 2023-01-24 20.44.05](https://europe1.discourse-cdn.com/arduino/original/4X/b/7/3/b730c300645a7ce0009e93280207bd83270b79b9.png)

---

<div class="post-metadata">

**Author:** ![FernandoGarcia](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fernandogarcia/32/214937_2.png) [@FernandoGarcia](https://forum.arduino.cc/u/FernandoGarcia)\
**Post date:** [February 28, 2023, 12:40am UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761/5 "2023-02-28T00:40:18Z")

</div>

I can't see the restart in IDE 2.0.4 but I can see the the double tab yet.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [February 28, 2023, 1:56am UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761/6 "2023-02-28T01:56:18Z")

</div>

Thanks for the update @FernandoGarcia. I'm glad the restart problem is no longer occurring.

Regards,  
Per

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 27, 2023, 1:57am UTC](https://forum.arduino.cc/t/ide-restarts-during-a-start/1081761/7 "2023-08-27T01:57:03Z")

</div>

Closed on August 27, 2023, 1:57am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
