-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Model version is corrupted on Windows #1303
Comments
Thank you for opening this issue, @ykomatsu! I will look into it. |
@hannobraun Thanks!
|
Thanks for the update, @ykomatsu!
Okay, I feared something like that. The cause of the panic was that the version was not valid UTF-8. Now it no longer fails in that case, but replaces any of the non-UTF-8 with placeholder characters, which is what we're seeing in that error.
Maybe! But then I wonder, why does this seem to only happen on Windows? Another possibility is that something is going wrong with the environment variables that are supposed to transport the version during compilation.
Yes, this seems to be Windows-specific. It works fine on Linux too. Could you try to compile the code that handles the version on Windows, with extra debug output enabled? If you clone the Fornjot repository, you can run this from the repository root:
On my system, this includes the following lines of output from the build script of the
I wonder what that output is on Windows. |
version_pkg()
panics on Windows
|
Indeed, that looks correct. Thank you! I'll think some more about this and will get back to you once I have something else to test. If you want to look into this in the meantime, maybe sprinkling some |
I wonder if the linker removes the Could you try the following:
I'm not very familiar with Windows, but I expect that something along those lines should work. If the linker really removes the symbol, I guess we should get an error earlier in the process, when loading the symbol. But this might still be worth a try. |
Thanks!
|
Thank you for confirming, @ykomatsu! I think your I think I'll leave it at that. Given my lack of expertise in and access to Windows, this would be hard for me to debug. The current solution should work well enough as a stopgap. I hope at some point someone will come along to fix #1307. |
version_pkg()
panics on Windows.On Windows 11 with Visual Studio 2022:
The text was updated successfully, but these errors were encountered: