Comments (6)
Can you attach a logcat file with your crash?
https://learn.microsoft.com/en-us/xamarin/android/deploy-test/debugging/android-debug-log?tabs=windows
from maui.
I have a similar issue when changing Orientation, but in combination with the Community Toolkit Popup:
This results in the following Exception:
This came since a couple of Nightly builds and used to work previously, but strangely enough also in combination with changed Orientation. I donβt change it in Code-Behind, but normally in Simulator or on a real Device, both crash.
Was there a change having an impact on changed orientation, lately?
from maui.
@MAUIoxo that might be different
Can you log that with MCT?
from maui.
I can't, but in Debug Mode, at least for my issue, I got the following Stacktrace info:
Object reference not set to an instance of an object.
at CommunityToolkit.Maui.Core.Views.MauiPopup.SetShadowView(UIView& target)
at CommunityToolkit.Maui.Core.Views.MauiPopup.ViewDidLayoutSubviews()
at UIKit.UIApplication.UIApplicationMain(Int32 , String[] , IntPtr , IntPtr ) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 58
at UIKit.UIApplication.Main(String[] , Type , Type ) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94
at MacroOptimizerApp.Program.Main(String[] args) in D:\Development\C#\OptimizerApp\OptimizerApp\Platforms\iOS\Program.cs:line 13
from maui.
Update on the matter:
I got a suggestion to disable trimming (and AOT compilations respectively) and test again.
And so I did, combined with re-enabling the concurrent GC.
This solved the issue.
The more interesting part - even enabling trimming and AOT, I cannot reproduce the problem again.
I was able to reproduce it at will, by adding either screen orientation, or the concurrent GC option.
This is the log you requested:
log.txt
Anyway, I plan to accept my miracle and move on.
from maui.
Disabling AOT did not work for me. I finally created my own Popup
now which works in any Orientation
from maui.
Related Issues (20)
- Android Video Capture - MediaPicker.Default.CaptureVideoAsync is saving recorded videos to the Android Gallery HOT 2
- [iOS] OnSizeAllocated called repeatedly using On<iOS>() .SetUseSafeArea(true); HOT 2
- Building app on github actions is not updating AndroidManifest.xml
- OnIdiom doesn't respect Desktop setting on Windows HOT 7
- MAUI Essentials - Secure storage Legacy migration errors on some Android devices - Javax.Crypto.BadPaddingException HOT 3
- Windows adds a range of items to a CollectionView in reverse HOT 1
- ColectionView RemainingItemsThresholdReached is constatli coled
- VisualState Setters not working properly on Windows for a CollectionView HOT 1
- On Platform="Default" not working HOT 1
- XAML Compile Causes Failure at Run Time HOT 1
- ScrollView Orientation is not changed at Runtime in IOS and MAC HOT 1
- Disappearing MAUI templates and dotnet new install Microsoft.Maui.Templates does not work
- The keyboard overlaps with the Entry inside the ContentView when translating its x position to the right side. HOT 5
- FlyoutPage's menu icon not showing, when used in a NavigationPage on Android HOT 3
- CollectionView.Header is header is not scrollable in Android platform. HOT 2
- More problems with the Picker
- Problem updating CollectionView ItemSource, when the modification is triggered by one of the items in the list HOT 4
- Actually, I had a feeling this might have already been asked and it has: #2292
- FilePicker on iOS: double quotes (0x22) in picked json file replaced by 0xAB (Β«) the 1st time it is opened+read HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.