[UWP] Window resizing crash
See original GitHub issueSteps to reproduce:
Version 1.6.1
- Resize the window (a few times)
<cvcontrols:ParentScrollView>
<StackLayout CompressedLayout.IsHeadless="true" Spacing="0">
<cvcards:CarouselView ItemsSource="{Binding ImageUrls}"
HorizontalOptions="FillAndExpand"
HeightRequest="313">
<cvcards:CarouselView.ItemTemplate>
<DataTemplate>
<ContentView>
<ffimageloading:CachedImage Source="{Binding ., Converter={c:FromImageUrlConverter}}"
LoadingPlaceholder="resource://loading.png"
ErrorPlaceholder="resource://error.png"
Aspect="AspectFill"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
WidthRequest="500"
HeightRequest="313"
DownsampleToViewSize="true">
</ffimageloading:CachedImage>
</ContentView>
</DataTemplate>
</cvcards:CarouselView.ItemTemplate>
<cvcontrols:IndicatorsControl/>
</cvcards:CarouselView>
</cvcontrols:ParentScrollView>
</StackLayout>
- Get the crash
Cannot change ObservableCollection during a CollectionChanged event.
at Xamarin.Forms.Platform.UWP.TaskExtensions.<>c.<WatchForError>b__2_1(Object e)
at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Why App crash when Image height change in UWP?
BG is resized -> BG_SizeChanged is called -> L/R are resized in the BG_SizeChanged method -> BG is resized (since it takes up...
Read more >UWP: crash on window resize · Issue #199
UWP MainPage, is that resizing the window causes a crash. Horizontal scaling seems to work OK, if a little laggy, but vertical scaling ......
Read more >Strange bug that happens when resizing UWP apps
I've experienced loads of random issues with UWP apps, like them not loading the first time - the splash screen just stays there....
Read more >Window resizing, from corner resize handles, crashes ... - GitLab
Window resizing, from corner resize handles, crashes on Windows 10, but not in Linux, specifically Pop!_OS. Background. I originally encountered ...
Read more >LayoutCycleException on closing a window - Microsoft Q&A
Hello, Some user installations seem to crash with a LayoutCycleException. ... I can now resize the new window with the PrintPage as I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JTOne123 thanks Will be available in next release (I’ll create it tomorrow, i think, or on weekend)
yes, sure