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

RichEditBox file upload crashes Desktop app #559

Closed
2 of 14 tasks
j0shuams opened this issue Sep 14, 2020 · 2 comments
Closed
2 of 14 tasks

RichEditBox file upload crashes Desktop app #559

j0shuams opened this issue Sep 14, 2020 · 2 comments

Comments

@j0shuams
Copy link

Describe the bug
When you try to upload a file in the RichEditBox page, the app crashes.
I believe this is an issue with not initializing the file picker* with a window handle.
*The file picker object in RichEditBoxPage.xaml.cs.
See Additional context for related links

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Use the winui3preview branch
  2. Open XamlControlsGallery.Desktop.sln in VS
  3. Build and run the app
  4. Navigate to Text > RichEditBox > 'A custom editor with RichEditBox'
  5. Click the file upload button

Expected behavior
A new window should open that allows the user navigation to a RTF file to open.

Actual behavior

The app crashes, shuts down.

Screenshots

Button that causes the crash:

image

Output window after call to PickSingleFileAsync()

image

Call stack with breakpoint on PickSingleFileAsync()

image

Output window upon crash:

image

Call stack upon crash:

image

Version Info

CsWinRT Version used: 0.1.0-prerelease.200629.3
WinUI Version used: 3.0.0-preview2.200713.0

Gallery version (found on Settings page):

1.2.27.0

Windows 10 version:

  • Insider Build (xxxxx)
  • May 2020 Update (19041)
  • November 2019 Update (18363)
  • May 2019 Update (18362)
  • October 2018 Update (17763)
  • April 2018 Update (17134)
  • Fall Creators Update (16299)
  • Creators Update (15063)
  • Anniversary Update (14393)

Device form factor:

  • Desktop
  • Mobile
  • Xbox
  • Surface Hub
  • IoT

Additional context
This is very similar to another issue that was reported

And a potential solution could be derived from this cswinrt example

@stmoy
Copy link
Contributor

stmoy commented Sep 14, 2020

@j0shuams - thank you for filing this issue!

CC: @MikeHillberg

@j0shuams
Copy link
Author

j0shuams commented Apr 3, 2021

@MikeHillberg This no longer repros with XCG on latest reunion bits FWIW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants