-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Realsense viewer and librealsense failing with "failed to convert special folder: errno=42" #13513
Comments
Hi @warmist Have you visited the advice about the errno=42 error at #13037 please? #13457 (comment) has instructions for finding on a Windows computer and deleting the realsense-config.json configuration file mentioned in that link. |
Hi @MartyG-RealSense. Thanks for answering. Yes, i've seen both of them. Also i've looked into all the duplicates. #13037 does not apply because "problem due to an uninitialized json variable" cannot happen as it's before file loading. It's an error when resolving (and transforming) the path to appdata folder. There is no "realsense-config.json" file anywhere in appdata (also related: apps shouldn't write to appdata and should create a folder). #13457 (comment) yes, i've looked into hidden files as well. Also you can access the folder faster if you type "%appdata%" into explorer path (i.e. the part where it has "C:\etc...") I'll try to setup a minimal repro as i feel this issue might be hard to reproduce without setting up a windows machine with username with unicode chars in it. |
Here is minimal reproduction: https://gist.github.com/warmist/e0b1927387864566db2804c50d0cf512 In my environment |
Further research shows that |
I had a discussion with my Intel RealSense colleagues about the 'failed to convert special folder: errno=42' error earlier in 2024, so I will follow up on it and pass your kindly provided information to them for their consideration. |
Hi @warmist Do you require further assistance with this case, please? Thanks! |
Thank you for asking. I don't need assistance, however i wonder if (and when) this will be fixed? |
I have sent a follow-up message to my Intel RealSense colleagues about this issue. |
My Intel RealSense colleagues have provided some further advice about the errno=42 error. Given that the problem seems to be related to certain characters being used in a Windows user account name, I asked whether creating a secondary Windows user account with a name that has no special characters might help. This was their response. You can try to run it as Administrator instead of switching the account. On Windows 11, it also has a feature to run the app as a different user. That option can be enabled with the instructions at the link below: https://winaero.com/how-to-run-apps-as-different-user-in-windows-11/ |
@MartyG-RealSense Thank you for the reply. Sadly we cannot do that as we are using realsense as a lib and we cannot ask users of your software to create secondary accounts or run as administrator. Also running programs as adminstrator on windows does not change the appdata folder as it still uses same |
Hi, |
@Nir-Az Thanks. I will do a PR if we fix it for ourselves before you get to it. |
Hi @warmist Do you require further assistance with this case, please? Thanks! |
Ah thanks for asking, i've moved on from that job position. Couldn't test if the fix helps sorry. |
It's no trouble at all. Thanks very much for the update. As you have moved jobs, I will close this issue. Thanks again! |
Source of error is this line:
librealsense/third-party/rsutils/src/special-folder.cpp
Line 81 in e1688cc
wcstombs_s returns value 42 which is EILSEQ i.e. it fails to convert wide string to multibyte string.
There are numerous issues closed with this but nobody dug down to the source. It seems that this only happens if your username has unicode characters.
The text was updated successfully, but these errors were encountered: