microsoft / microsoft/react-native-windows

AlertModule::showAlert crashes in Xaml Islands

Open
#4,194 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: Islands bug Platform: Desktop Workstream: Component Parity
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

Environment
  • Target Platform Version(s): 10.0.18362
  • Target Device(s): Desktop
  • Visual Studio Version: Visual Studio 2019
  • Build Configuration: Release
Steps to Reproduce
  1. Open packages\playground\windows\playground-win32.sln
  2. Hit F5 (Build solution & start debugging)
  3. Press CTRL+O (File->Open)
  4. Select "Samples\rntester" & click "OK"
  5. Click on "<Button>\nSimple React Native button component"
  6. Click on the button labeled "Press Me"
Expected Behavior

A ContentDialog would pop up.

Actual Behavior

Playground Win32 crashes The problem appears to be related to Xaml Islands; the ContentDialog needs to be told what XamlRoot to use, but the AlertModule has no context to use to find a root.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open packages\playground\windows\playground-win32.sln and reproduce the crash using the listed File->Open and button steps. Trace AlertModule::showAlert and the Xaml Islands ContentDialog path, focusing on how a XamlRoot can be obtained. Done means the same interaction shows the expected ContentDialog without crashing on the stated Windows target.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, react-native
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.