Exit status 101

Hello,
after upgrading to version 2.3.3 I have a problem compiling my ESP32 module.
I have a problem with the message:

thread 'main' panicked at 'assertion failed: (left != right)
left: 0,
right: 0: Failed to get path name. Error code: 3', main.rs:65:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
exit status 101

Compilation error: exit status 101

Does anyone know how to solve the problem?

Thanks and have a nice day

From what? From IDE 1.x or from IDE 2.x (2.3.2?)?
Was that the only upgrade or did you also upgrade the board package and/or libraries?

Which operating system are you using.

What you can try is to downgrade the ESP32 board package in case that was also upgraded. If that works, you can upgrade it again; if that upgrade fails it has something to do with the board package.

Further I can't really help; here are some search results: esp32 thread 'main' panicked at 'assertion failed: (left != right) - Google Search

Note:
This might be IDE 2.x related (though not directly) and not hardware related and hence your topic has been moved to the IDE 2.x section of the forum.

From version 2.3.2 on Windows 10. I have already tried installing the original version 2.3.2 but the result is the same.

Yesterday when I was writing the program everything worked without problems and after the update this happened to me.

The problem was solved when I downgraded the esp board.

Thanks for help with my problem sterretje

I had the same problem if you use Windows 10 like me. I solved it! After a long time of trying, I figured out that the account name and computer name must be without diacritics. After changing without diacritics, I installed the esp32 boards (from Espressif system) in the latest version 3.1.1 without any problems.

1 Like

How did you rename the account name and computer name? The /users/'YourName' folder can't be changed or am I wrong?

I changed my username because I had the same problem (my name is José, I change it to Jose without the diacrytic accent) and it solves it. You have to be careful, doing that can damage your user sesion, so these are the steps you should follow. 1st. Be an administrator. 2nd. Create another user with administration privilegies. 3rd. Enter in that user sesison and change your user file name as you wish. 4th. Finally you have to change the register of the users on the computer, so open redegit and find this path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ there are the profiles path to each username, find yours and change the original one to the new path, for example: C:\Users\OldOne to C:\Users\NewOne in the profileImagePath
that's is all. Then you have to reset the computer, and be able to enter your session.
My recommendation is to create another user and just use the new user, doing the previus can damage your installation of some programs that path your username profile archives (I got the reinstall Arduino and repair some path issues because I did that, it's annoying but it's possible). That's it, be careful doing that seriously (I google it when I did it and it works but causes some issues as I said).

Thanks for sharing the solution you found @juanjgomezb!


I'll mention an alternative workaround for those who are encountering problems caused by characters in their Windows user folder name. This workaround might be preferrable to those who don't feel comfortable making the changes to the registry as is required to change the folder name. The alternative is to configure Arduino IDE to use different paths on your computer, which are not under the user folder (and that only contain basic ASCII characters):


:exclamation: These instructions will only work for Arduino IDE versions 2.3.4 or newer.


  1. Select File > Quit from the Arduino IDE menus if it is running.
    All IDE windows will close.
  2. Open the file at the following path in any text editor:
    C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
    
    (where <username> is your Windows username)
  3. Add the following content to the arduino-cli.yaml file (or replace the existing content if equivalent content is already present in the file):
    build_cache:
      path: <build cache folder path>
    directories:
        builtin:
            libraries: <built-in libraries folder path>
        data: <data folder path>
        user: <sketchbook folder path>
    
  4. Replace the <build cache folder path> placeholder with the path to the folder under which you want Arduino to store the cached data for compiling sketches.
    • :exclamation: For this, and for the paths in the subsequent instructions, make sure to chose a location that is not under any folders with names that contain anything other than basic ASCII characters (e.g., A-z, 0-9, _, -, ., ).
    • :warning: Arduino IDE periodically deletes contents of this folder (the files stored under it are only cached there for the sake of efficiency, and it can always regenerate the files on demand), so you should not use this folder to store any valuable files.
  5. Replace the <built-in libraries folder path> placeholder with the path to the folder under which you want Arduino to store some fundamental "built-in" Arduino libraries.
  6. Replace the <data folder path> placeholder with the path to the folder under which you want Arduino to store the boards platforms you install via Boards Manager, as well as some other data files.
  7. Replace the <sketchbook folder path> placeholder with the path you want to use as the Arduino sketchbook (the folder under Arduino IDE stores libraries you install via Library Manager and "Add .ZIP Library...", as well as a convenient location to save your sketches).
    • Unlike the other paths, you can also configure this one via Arduino IDE's preferences GUI. I thought I should include it in these instructions just to be comprehensive.
  8. Save the file.
  9. Move the files from this folder on your hard drive:
    C:\Users\<username>\AppData\Local\Arduino15\libraries
    
    (where <username> is your Windows username)
    to the folder you configured in step (5) above ("<built-in libraries folder path>").
  10. Move the files from this folder on your hard drive:
    C:\Users\<username>\AppData\Local\Arduino15
    
    to the folder you configured in step (6) above ("<data folder path>").
  11. If you configured a different sketchbook folder location in step (7) above, move the files from the previous sketchbook folder location to the new one.
  12. Start Arduino IDE.

I also found an alternative workaround, which is perhaps a bit risky so I don't necessarily recommend it, but maybe of interest to advanced users so I'll add a link to it:

https://forum.arduino.cc/t/arduino-ide-compilation-error-due-to-incorrect-directory-name/1356089/7#p-8081616-alternative-workaround-1

2 Likes

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