Skip to content
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

[Windows] Application crash when call a DisconnectHandler while remove the view. #3787

Closed
Sasikumar3595 opened this issue Dec 16, 2021 · 2 comments · Fixed by #4177
Closed
Assignees
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 t/bug Something isn't working

Comments

@Sasikumar3595
Copy link

Description

We are creating a custom layout that holds a list of views and has an option to remove the views (removing view calls disconnect handler). Application crash while removing the view on windows, other platforms (Android, iOS, Mac) working fine.

Steps to Reproduce

DisconnectHandlerWindows.zip

  1. Run the sample
  2. click the remove label button
  3. application crash.

Version with bug

Preview 10 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041

Did you find any workaround?

No

Relevant log output

System.InvalidOperationException: 'NativeView cannot be null here'
@Sasikumar3595 Sasikumar3595 added the t/bug Something isn't working label Dec 16, 2021
@PureWeen PureWeen added the fatal label Jan 5, 2022
@jsuarezruiz jsuarezruiz self-assigned this Jan 18, 2022
@jsuarezruiz jsuarezruiz added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 labels Jan 18, 2022
@Sasikumar3595
Copy link
Author

Sasikumar3595 commented Jan 21, 2022

@Redth and @jsuarezruiz ,

We are still facing this issue in preview 12.

@Redth
Copy link
Member

Redth commented Jan 21, 2022

Yes, the fix was merged too late for preview 12, it will be in preview 13.

@ghost ghost locked as resolved and limited conversation to collaborators Feb 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants