-
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. |
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: