question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[UWP] Window resizing crash

See original GitHub issue

Steps to reproduce:

Version 1.6.1

  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>
  1. 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AndreiMisiukevichcommented, Aug 30, 2018

@JTOne123 thanks Will be available in next release (I’ll create it tomorrow, i think, or on weekend)

1reaction
JTOne123commented, Aug 28, 2018

yes, sure

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found