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

ide crashes without notice if unprivileged user has cyrillic username on windows 8 #3836

Open
mugiseyebrows opened this issue Sep 22, 2015 · 7 comments
Labels
Component: IDE The Arduino IDE Help wanted Arduino would especially appreciate assistance from the community on this item OS: Windows Specific to the Windows version of the Arduino IDE Type: Bug

Comments

@mugiseyebrows
Copy link

I have Пользователь user account on windows 8 and arduino installer created directory C:\Users\Џ®«м§®ў вҐ«м with (AppData and Documents directories inside) which is obviously character encoding issue. When ide starts without elevated permissions it crashes without notice on "preparing boards" stage. It works if "run as administrator" used though. I run arduino_debug.exe and it shows "access denied" (отказано в доступе) error:
arduino_ide_error
And it gives me a clue: Пользователь user account has no write permissions for Џ®«м§®ў ⥫м. icacls "C:\Users\?R<м§Rў в?<м" /grant Пользователь:(OI)(CI)F (with administrator rights of course) solves this issue (I didnt type in ?R<м§Rў в?<м, i tabbed it, dont know why its different this time).
I encounter this issue on two machines with win8 so I guess its not just me.
Windows 8.1 x64, arduino 1.6.5 installed with installer, (I have jre 1.8.0_60 x64, jdk 1.8.0_60 x64 on this machine if that maters (I assume arduino uses its own java env))

@ffissore ffissore self-assigned this Sep 22, 2015
@ffissore
Copy link
Contributor

thanks @mugiseyebrows, i'm looking into it

@ffissore ffissore added this to the Release 1.6.6 milestone Sep 22, 2015
@ffissore
Copy link
Contributor

@mugiseyebrows I'm finding a hard time at trying to reproduce the issue. Is your windows in Russian?

@mugiseyebrows
Copy link
Author

@ffissore Oh, sorry, I forgot to mention that. Yes, its in Russian.

@mugiseyebrows
Copy link
Author

I guess it's actually nsis issue. Is installation script in repository? I can't find it.

@ffissore
Copy link
Contributor

No, it does have to do with the installer. Apparently, Windows Registry is storing your username using a charset the IDE can't convert to UTF8, which is strange, since the native API is using wchar_t which is the correct type in this case (AFAIK). This one will take a while to solve and help from some windows expert is needed. In the meanwhile, create a portable folder in the IDE folder (something like c:\program files\Arduino\portable). The IDE will store everything but the sketchbook under portable: this will work around your problem BUT it will also mean that, next time you install the IDE, you will lose your settings, unless you back them up

@ffissore ffissore added Help wanted Arduino would especially appreciate assistance from the community on this item OS: Windows Specific to the Windows version of the Arduino IDE labels Sep 25, 2015
@ffissore ffissore removed this from the Release 1.6.6 milestone Sep 25, 2015
@mugiseyebrows
Copy link
Author

Seems like duplicate of #3360
CP866 -> CP1251 'Пользователь' -> 'Џ®«м§®ў вҐ«м'
Batch files on russian windows talks in CP866 by default, and other things talks in CP1251, which leads to confusions all the time.

@ffissore
Copy link
Contributor

#3360 was fixed by fetching data directly from the windows registry, instead of executing regedit from the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Help wanted Arduino would especially appreciate assistance from the community on this item OS: Windows Specific to the Windows version of the Arduino IDE Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants