Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
ericpommierfdj opened this issue Mar 22, 2025 · 4 comments
Labels
Area: Tools & Build System Issue is related to tools and/or the build system Status: In Progress ⚠️ Issue is in progress

Comments

@ericpommierfdj
Copy link

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.
@ericpommierfdj ericpommierfdj added the Status: Awaiting triage Issue is waiting for triage label Mar 22, 2025
@me-no-dev
Copy link
Member

Can you please provide screenshots and full output of the compilation?

@lucasssvaz
Copy link
Collaborator

lucasssvaz commented Mar 24, 2025

If you roll back the version to 3.0.7 does it compile properly ? AFAIK we don't have any tool that uses rust.

@ericpommierfdj
Copy link
Author

If you roll back the version to 3.0.7 does it compile properly ? AFAIK we don't have any tool that uses rust.

Yes, confirmed — 3.0.7 compiles without any issue using the same sketch and environment.
The error only happens with 3.1.0, 3.1.1 and 3.1.2.

The crash message mentions main.rs:65:9 and a panic in thread 'main', which looks very similar to a Rust binary panic.
Maybe it's not directly from your toolchain, but something being invoked during build?

I'm compiling using Arduino IDE 2.3.4 on Windows, and my username contains an accent (é).

I’ll provide detailed logs and a screenshot shortly.

@me-no-dev
Copy link
Member

The error comes from the GCC toolchain. We have reported it and will let you know when there is any result on it.

@Jason2866 Jason2866 added Status: In Progress ⚠️ Issue is in progress Area: Tools & Build System Issue is related to tools and/or the build system and removed Status: Awaiting triage Issue is waiting for triage labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Tools & Build System Issue is related to tools and/or the build system Status: In Progress ⚠️ Issue is in progress
Projects
None yet
Development

No branches or pull requests

4 participants