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 or Xaml Island app crashes on pressing the clear button in the hex Input textbox in ColorPicker

See original GitHub issue

Describe the bug

If a ColorPicker element is declared with the muxc namespace as in the following snippet, then the entire app crashes without any exception trace on clicking the clear button on the hex input box. This can also be reproduced on the Xaml Controls Gallery repository.

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Run Xaml Controls Gallery and open the Color Picker page (https://github.com/microsoft/Xaml-Controls-Gallery/blob/master/XamlControlsGallery/ControlPages/ColorPickerPage.xaml, reproduced on commit https://github.com/microsoft/Xaml-Controls-Gallery/commit/9e87c2feace4da6a2eef66aa07181a0c0cf1ce0b)
  2. Click on the X button on the hex input textbox

Expected behavior

String gets cleared.

Screenshots

GIF that shows the crash on Xaml Controls Gallery. winUICrash

Version Info

NuGet package version:

Microsoft.UI.Xaml 2.5.0-prerelease.200812001

Windows app type:

UWP Win32
Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2020 Update (19041) Yes
November 2019 Update (18363) Yes
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

Link to issue on PowerToys repository: https://github.com/microsoft/PowerToys/issues/6022. We are using WinUI in a Xaml Island, and hence require the pre-release version with the latest changes.

After a lot of trial and error, I found that this seems to happen only if the ColorPicker is referenced with the muxc prefix. If I removed muxc: and used <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls"/> in the App.xaml ResourceDictionary, I could no longer reproduce the crash. When the crash occurs, the application exits with error code 0xc000041d.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Felix-Devcommented, Aug 31, 2020

@ranjeshj Yes, already added one. Will also look into creating test coverage for this. If it’s fine with you I’d create a PR tomorrow.

1reaction
ranjeshjcommented, Sep 1, 2020

@ranjeshj when can we expect a pre-release with this fix?

@arjunbalgovind assuming the fix goes in before the next pre-release, it should be available in the next pre-release (couple of weeks time).

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is causing UWP app to intermittently crash and throw ...
The culprit is a button control with the following property setting: ... Start without Debugging by hitting Ctrl-F5 the new app will crash ......
Read more >
TextBox Class (Windows.UI.Xaml.Controls) - UWP
TextBox includes a clear all button ("x") that appears when text is entered in the box. When a user clicks the "x", the...
Read more >
W3layouts cms exploit
external command, a usable application, or a batch file. ... create a Uri android studio creating calendar android studio delete text file android...
Read more >
ecprice › Public › wordlist.ranked
... low reply customer december compare movies include college value article york man card jobs provide food source author different press learn sale...
Read more >
https://huggingface.co/jeniya/BERTOverflow/commit/...
... +Application +##ee +perfect +security +##Text +obvious +remote +global +##ueue +##ank +##fort +aspx +##urther +displayed +receiv +haven +lock +buttons ...
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