Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

Forms 3.3 + Mac (Regression+Crash) Changing MainPage #4156

@Abhijit-Revamp

Description

@Abhijit-Revamp

Description

Crash after updating to 3.3 Stable. In Forms + Mac, changing Applications Main Page crashes. Working in 3.2

Steps to Reproduce

Steps for regression crash

  1. Create a new Project with Forms 3.2 + iOS (Android not required now)
  2. Add a MacOS cocoa project with Forms 3.2 dependency. Set this as default project.
  3. Make necessary changes in macOS files and ensure the MainPage is visible.
  4. Add a new SecondPage.XAML
  5. In App.xaml.cs, change the app's MainPage to SecondPage.XAML (just to verify its working)
  6. To the SecondPage add a button 'Click Me'. In the button handler add the following code
    var myApp = (App)Xamarin.Forms.Application.Current;
    myApp.MainPage = new MainPage();
  7. Run the macOS app, click the button 'Click Me'. Wait for few seconds >>CRASH <<

Expected Behavior

Specified page must be visible and application continues to work.

Actual Behavior

CRASH<<

Basic Information

  • Version with issue: 3.3.0.912450
  • Last known good version:3.2.0871581
  • IDE: Visual Studio for Mac
  • Platform Target Frameworks:
    • macOS: 10.11
  • Nuget Packages: forms 3.3.0.912450
  • Affected Devices:

Screenshots

Reproduction Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockerIssue blocks next stable release. Prioritize fixing and reviewing this issue.e/3 🕒3help wantedWe welcome community contributions to any issue, but these might be a good place to start!i/regressionp/macOSt/bug 🐛up-for-grabsWe welcome community contributions to any issue, but these might be a good place to start!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions