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

[Wasm] Runtime crash when clipboard access has been refused #19365

Open
jhanvi03 opened this issue Jan 29, 2025 · 2 comments
Open

[Wasm] Runtime crash when clipboard access has been refused #19365

jhanvi03 opened this issue Jan 29, 2025 · 2 comments
Labels
area/canary 🐤 Categorizes an issue or PR as relevant to canary testing difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform triage/untriaged Indicates an issue requires triaging or verification

Comments

@jhanvi03
Copy link

jhanvi03 commented Jan 29, 2025

Current behavior

On any web browser when the user clicks on 'Paste Text from Clipboard' button, the app crashes.
The crash happens only when the Clipboard access is blocked. Alothough with the same setting upon clicking on other buttons doesn’t lead to crash.

Screen.Recording.2025-01-29.at.12.28.44.PM.mov

Expected behavior

App should not crash

How to reproduce it (as minimally and precisely as possible)

  1. Open Gallery canary on any web browser
  2. Navigate to Menu -> Non-UI features
  3. click on 'Paste Text From Clipboard' button
  4. Observe the app crash

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)


Package Referenced version Updated version
Uno.CommunityToolkit.WinUI.UI.Controls 7.1.200 7.1.204
Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.200 7.1.204
Uno.Core.Extensions.Compatibility 4.0.1 4.1.1
Uno.Core.Extensions.Disposables 4.0.1 4.1.1
Uno.Sdk 5.6.20 5.7.0-dev.27

Package Referenced version Updated version
Uno.CommunityToolkit.WinUI.UI.Controls 7.1.200 7.1.204
Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.200 7.1.204
Uno.Core.Extensions.Compatibility 4.0.1 4.1.1
Uno.Core.Extensions.Disposables 4.0.1 4.1.1
Uno.Sdk 5.6.20 5.7.0-dev.27

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@jhanvi03 jhanvi03 added area/canary 🐤 Categorizes an issue or PR as relevant to canary testing difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform triage/untriaged Indicates an issue requires triaging or verification labels Jan 29, 2025
@jeromelaban
Copy link
Member

@jhanvi03 I've not reproducing this. Did you have something in the clipboard at that time? Maybe that's where the issue lies.

When posting issues with crashes, also paste the contents of the browser debugger console, thanks!

@jhanvi03
Copy link
Author

@jeromelaban,It breaks when Clipboard access is denied. On both mac and windows.

Image

Here are the logs:

unogallerycanary.z27.web.core.windows.net-1738177678662.log

@jeromelaban jeromelaban changed the title [Gallery][WASM Canary][Non-UI Features] App crashes when clicking on 'Pase Text from Clipboard' button [Wasm] Runtime crash when clipboard access has been refused Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/canary 🐤 Categorizes an issue or PR as relevant to canary testing difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants