-
Notifications
You must be signed in to change notification settings - Fork 545
[Bug] hybrid aot crash on startup in android project #4115
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hello, I'm the original owner of the bug. Did you have time to have a preliminary look into this? Is there any suggestion for a workaround or possible solution? Thanks. |
@radekdoulik we'd need an advice if you can: is there any other way to strip IL code plus compiling to native (achieving the sort of obfuscation / IP protection that we need) without using hybrid AOT? This would enable us to workaround this problem. Thanks! |
Hello, I have the same problem with one of my customers apps. I described it here: |
I am sorry for the delay. I have tested the I will try it with older version to make sure I can reproduce it and thus that it was indeed fixed. |
Thanks a lot, we are currently on Commercial Xamarin.Android 10.1 (d16-4) |
hi @radekdoulik any thoughts about this boolean issue? (xamarin/Xamarin.Forms#9876) |
This is still an issue with VS 2019 16.5 Microsoft Visual Studio Professional 2019 Xamarin 16.5.000.521 (d16-5@b3ea41e) Xamarin.Android SDK 10.2.0.100 (d16-5/988c811) |
Hello @radekdoulik, any news on this matter? |
It's been almost half-a-year we can't publish with hybrid aot due to this bug.. A workaround, anyone?.. |
I've had a look at it and to me it looks like hybrid AOT is not stripping at all anymore. The compiler says it's stripping but then in the apk you find the dlls with all the code visibile. |
Please kindly read this thread https://forums.xamarin.com/discussion/comment/415044 |
Thanks. It says it has been fixed but then again it proposes a workaround (moreover a workaround that I can't apply to CI pipelines). All the AOT bugs on github aren't receiving much attention. Some have been open for months/years. |
Yes, looks like this get be passed through with a workaround, have been told that Hybrid is experimental and not an official feature so no wonder the priority is kinda low.. It's a shame since this experimental feature makes xamarin viable out-of-the-box for commercials products with requirement to security. |
I think the fix is still not live, tried today, crashed with stripped hybrid.. |
With support for Classic Xamarin.Android ended May 1st, 2024, this issue is likely no longer relevant. If this still persists in .NET 8+, please open a new issue with updated information based on |
Original Issue xamarin/Xamarin.Forms#8117
Description
Starting an android application made with xamarin.forms with hybrid aot and llvm enabled crashes at startup. The configuration worked with previous versions of VisualStudio. The same happens when building the application on a pipeline hosted on azure.
Steps to Reproduce
https://github.com/xamarin/Xamarin.Forms/files/3754036/App1.zip
Create an empty Xamarin.Forms project
Put the following configuration in the andorid csproj for Release:
Build, deply and run the application.
Expected Behavior
The application opens correctly.
Actual Behavior
The application crashes. Here is the log:
Basic Information
Version with issue: 4.2.0.709249 - it doesn't look like it is related to .Forms version
IDE: VS2019 16.3.5 windows - happens when buliding in azure cloud pipelines
Platform Target Frameworks:
Nuget Packages: None added
Affected Devices: tested on Samsung and Huawei 64bit devices.
The text was updated successfully, but these errors were encountered: