-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
UPX compression broken for Windows native images produced with 22.x #4340
Comments
Would be kind of cool to generate binaries for windows, from linux as such, too. :D (A bit like the libui project came up with cross-platform native GUI). |
Hi - I have been hit by this exact issue with GraalVM 22.0.0.2 Java 11 CE on Windows 10. The upx/upx#559 issue describes some workarounds for changes in the GraalVM source code. For an end-user, are there any command-line arguments to native-image which will disable the use of WindowsImageHeapProviderFeature? Are there any other workarounds? |
I can confirm using 7zip to remove the com/oracle/svm/core/windows/WindowsImageHeapProviderFeature.class entry within the lib/svm/builder/svm.jar file fixes my issue. It would be nice if this can be solved in the official distribution though. |
as per discussion in oracle/graal#4340. The UPX-compressed native image will make the demos work properly in Windows, while the uncompressed one crashes when trying to load some .dll files at runtime.
I have been hit by this exact issue with GraalVM 22.1.0 Java 11 CE on Windows10. |
We are also hitting this issue. @pejovica @peter-hofer you developed/approved PR #4051 which breaks the compatibility with apparently any kind of exe compression as explained here upx/upx#559 (comment) would be great to get your feedback on this issue. @fernando-valdez does not seem to be active on github so I wonder why he got this issue assigned. Is anyone actively developing graalvm actually monitoring/aware of this issue? |
as per discussion in oracle/graal#4340. The UPX-compressed native image of the helloworld app will work properly in Windows, while the uncompressed one crashes when trying to load some .dll files at runtime.
Uses workaround for UPX issue with 22.2.0, see oracle/graal#4340
Uses workaround for UPX issue with 22.2.0, see oracle/graal#4340 Co-authored-by: ikappaki <[email protected]>
Removing I unsuccessfully tried removing |
Hi @fernando-valdez, You appear to be assigned to this issue, woudl it be possible to provide us with an indication whether this is likely to be looked at or perhaps suggest otherwise? We are currently stuck on older graalvm versions on MS-Windows waiting for a resolution on this issue. Thanks |
While investigating UPX issues upx/upx#559 and upx/upx#670 we noticed that sometimes using a low compression level actually makes the compressed exe work. Could you try if using |
@markus-oberhumer I can confirm that both |
For me |
If this issue is still relevant in the latest GraalVM versions, please create a new issue for it and follow the template provided. Thank you |
Hello, I used |
I am unable to use upx with a graal native image on OSX aarch as well. ( no level from 1 to best work ) echo $? |
Describe the issue
See upx/upx#559
And #4051 (comment)
as originally reported by @joerg-wille
I face the exact same issue as well.
The text was updated successfully, but these errors were encountered: