-
Notifications
You must be signed in to change notification settings - Fork 40
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 when importing files from directory with too long path on Windows #8
Comments
some add. info: seems also happening if path + filename in total get too long |
Can you try the binaries from here: |
@combolek what fix did you make? It can be also related to special chars (here the ö) |
Hi, thanks for the download @combolek . But the given executable has the same problem. Indeed i've overseen the special character Ö which is typical in europe. In general UTF-8 might be good solution because many countries have à á â and other chars in their daily used names. I now renamed the folder and it works (but in my case a bad solution) |
Ok @vmario89, I'm not saying you shouldn't use UTF-8 characters, but just trying to isolate what makes the program crash |
hi @Gregwar, yes the "ö" in path is the problem. I tested it with "C:\Users\mario\Seafile\cloud.123456-STLEXPOR.DD\Gedöns\123456Design\chainy_v2.stl" -> fail regards, Mario |
I was all wrong, ignore me. |
For the native MSVC build the following workaround works for me:
@vmario89 can you try these binaries? But even if this works, it's only a partial solution because it cannot handle command line arguments (so it won't work for the plater.exe command line app). Also, I think the official build uses mingw (?) and this solution does not work then either. |
Set the process locale to UTF-8 on Windows using an embedded manifest. Note this only works on Windows 10 Version 1903 and later.
Set the process locale to UTF-8 on Windows using an embedded manifest. Note this only works on Windows 10 Version 1903 and later.
I figured out a better way to fix it, see PR #30. It requires Windows 10 1903 or later but it also handles paths on the command line. @vmario89 can you try these updated binaries? |
Set the process locale to UTF-8 on Windows using an embedded manifest. Note this only works on Windows 10 Version 1903 and later.
Stopped crashing for me with your latest updated binaries @combolek |
Great, thanks for testing. Let's hope PR #30 will be merged. |
It is done |
Oh nice! Would it be possible to provide a recent binary download / release set? regards, Mario :) |
Did you try the ones from the link above? |
Hi,
Plater.exe crashes unexspectedly when pressing the "Add part(s)" button. The fix seems to put the files to some directories up to shorten the path. I am using Windows 10 64 Bit Pro Version.
I made some testings where i put the file chainy_v2.stl some dirs up until it works instead crashing. I just renamed the paths because they contained some info i dont want to publish here.
maybe somebody has an idea how to fix it.
regards, Mario
The text was updated successfully, but these errors were encountered: