-
Notifications
You must be signed in to change notification settings - Fork 1.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
Android .MAUI Hello World Projects crashed after Time Zone change and crossing country borders in Release Mode #15786
Comments
This is fixed by: dotnet/android#7956 It recently shipped in VS 17.7 Preview 2. You could also try the workaround here to preserve Let us know if that works, and we should be able to close this. Thanks! |
Hi @hghgsat. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi,
first tests results – just tested manually change of time zone:
* VS 2022 17.7 preview 2 -> timezone change works in .NET7 but not in .NET6
* Workaround -> timezone change works in .NET7 but not in .NET6
Need to do country border crossing test, intensive tests regarding network provider changes.
Currently our project was set up to .NET6 since this has LTS.
Thx for you quick response.
Harry
Von: Jonathan Peppers ***@***.***>
Gesendet: Donnerstag, 22. Juni 2023 20:11
An: dotnet/maui ***@***.***>
Cc: HGS: Harald Gergits ***@***.***>; Author ***@***.***>
Betreff: Re: [dotnet/maui] Android .MAUI Hello World Projects crashed after Time Zone change and crossing country borders in Release Mode (Issue #15786)
This is fixed by: dotnet/android#7956<dotnet/android#7956>
It recently shipped in VS 17.7 Preview 2. You could also try the workaround here to preserve Android.Runtime.AndroidEnvironment.TimeZoneChanged:
dotnet/android#7953<dotnet/android#7953>
Let us know if that works, and we should be able to close this. Thanks!
—
Reply to this email directly, view it on GitHub<#15786 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC5DIPKW7G7DWSOCQ6A7LPLXMSDETANCNFSM6AAAAAAZP24H4M>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
The workaround should solve the issue in all versions of .NET 6+, it sounds like it isn't setup quite right. How did you add the file to your project? This doc shows how to do it: https://github.com/dotnet/linker/blob/ba65e934dcb8cfbc81a494e890927f9a5d31deac/docs/data-formats.md#descriptor-format In either case, it might just be better to move to .NET 7 as the .NET 6 mobile workloads are out of support: |
Hi @hghgsat. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
workaround works for our apps using .net6 and .net7, works too using vs 17.7 Preview 2 in .net6/7. |
Description
If you create a new .NET MAUI Project (Form with button increases number) and run the App
in release mode in Emulator and smartphone, app crashes when time zone is changed in Settings -> Time -> Select Time zone.
This do not happen (even no excption) while running the app in debugger / debug mode.
Crash happens while crossing country borders too or
sometimes when the network provider is changed due do roaming users.
Bugreports (look for timezone_changed and has died or death) using Bullit/CAT S75
Bugreport Nokia N7
Steps to Reproduce
happens when crossing country borders too (sine time zone could change) or
network provider change (leaving the country) for roaming users.
happens only using android (app crashes),
sometimes android emulator kills too (hardly to reproduce).
ios works as expected (no crash)
Link to public reproduction project repository
https://github.com/hghgsat/DotNetMauiAndroidTimeZoneChangeBug
Version with bug
7.0.49
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Tested Android 12, Android 13
Did you find any workaround?
no workaround found
SDK-Version: 7.0.304
but happens using SDK-Version: 6.0 too
Installierte Workload-ID Manifestversion Installationsquelle
maui-android 7.0.86/7.0.100 VS 17.6.33815.320
android 33.0.46/7.0.100 VS 17.6.33815.320
maccatalyst 16.4.7067/7.0.100 VS 17.6.33815.320
wasm-tools-net6 7.0.7/7.0.100 VS 17.6.33815.320
wasm-tools 7.0.7/7.0.100 VS 17.6.33815.320
ios 16.4.7067/7.0.100 VS 17.6.33815.320
maui-ios 7.0.86/7.0.100 VS 17.6.33815.320
maui-windows 7.0.86/7.0.100 VS 17.6.33815.320
maui-maccatalyst 7.0.86/7.0.100 VS 17.6.33815.320
Since our app is mainly used traveling around (gps livetracking) and
crossing country borders we can not use .NET Maui for this project.
But any other (non gps apps) will crash too when crossing borders.
Relevant log output
The text was updated successfully, but these errors were encountered: