electron: [Bug]: Linux: In french locale, crash on access of user-selected file with accent in filename

Preflight Checklist

Electron Version

19.0.6

What operating system are you using?

Ubuntu

Operating System Version

22.04, Arch Linux and Fedora Silverblue

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Open any file, no matter the characters in the filename

Actual Behavior

Start application with LANG=fr_FR.UTF-8, then with the file picker open a file with an accent in it (like tèst.txt), then try to grab the ArrayBuffer representation of the Blob returned on the ‘change’ event. See the attached fiddle to make this very easy.

We see this in the console, and the renderer window becomes unresponsive:

[17157:0701/162155.959753:ERROR:bad_message.cc(29)] Terminating renderer for bad IPC message, reason 2

If we listen to the ‘renderer-process-gone’ event, we see this:

Error: Reason: killed, Exit Code: 3

This simple text file is enough to trigger it: tèst.txt

Testcase Gist URL

https://gist.github.com/e8572fe7198586d84a8f1d0b2ae3224f

Additional Information

This was originally reported by a Signal Desktop user here: https://github.com/signalapp/Signal-Desktop/issues/5977#issuecomment-1159217063

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

This bug is still relevant

They will fix it by the year 50, when everyone switches to quantum computers. Here is a clear example of why Tauri is better, there are no such problems there, the problems have been there for 2 years and judging by the change log of the developers, they prioritize all possible crap except the important.

They are shooting themselves in the foot, why would a business build applications on an electron if it is all broken?

All Linux users whose native language is not English cannot fully work with Obsidian due to electron errors.

Still a problem

Hey! I had trouble with obsidian on Flatpak but when installing via the Arch extra repo it looks like it’s working. Just leaving it here if anyone has the same issue as me.

I tested with some older versions to see if this is a new regression.

This issue also exists in

  • 16.0.0
  • 16.2.8 (latest stable 16)
  • 17.0.0
  • 17.4.9 (latest stable 17)
  • 18.0.0
  • 18.3.5 (latest stable 18)

Behaves just as @scottnonnenberg-signal reports. LANG=fr_FR.UTF-8 was needed for me to reproduce; it did not happen in LANG=en_US.UTF-8