Skip to content

Crash during compilation on Windows if username contains accented characters (e.g. "é") – introduced in 3.1.0 #11163

Open
@ericpommierfdj

Description

@ericpommierfdj

Board

Lolin S2 Mini (ESP32-S2)

Device Description

Nothing

Hardware Configuration

Nothing

Version

v3.1.2

IDE Name

Arduino IDE 2.3.4

Operating System

Windows 11

Flash frequency

80 Mhz

PSRAM enabled

yes

Upload speed

115200

Description

Bug Summary

On Windows, if the current user's username contains an accented character (e.g. "Gérard"), version 3.1.0, 3.1.1 and 3.1.2 of the ESP32 Arduino core crash during compilation with this Rust panic:

thread 'main' panicked at 'assertion failed: (left != right) left: 0, right: 0: Failed to get path name. Error code: 3', main.rs:65:9 exit status 101

Affected Versions

  • ✅ 3.0.7 → Works fine
  • ❌ 3.1.0 → Fails
  • ❌ 3.1.1 → Fails
  • ❌ 3.1.2 → Fails

System

  • Windows 11
  • Arduino IDE 2.3.4
  • Board: Lolin S2 Mini (ESP32-S2)
  • User account name: Gérard → stored in path like C:\Users\Gérard

Steps to Reproduce

  1. Use a Windows user account with an accented character in the name (é, à, etc.)
  2. Install ESP32 core 3.1.0 or 3.1.1 via Board Manager
  3. Compile any sketch (even basic examples)
  4. Compilation fails immediately with panic

Notes

  • This issue was not present in 3.0.7 and earlier.
  • Likely related to newer tools based on Rust that do not handle UTF-8 paths properly under Windows.

Sketch

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}

Debug 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 exit status 101

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions