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

displayDialogAsync fails randomly on Windows (never seen on MacOs) #5417

Open
ahthomsen opened this issue Feb 22, 2025 · 1 comment
Open
Labels
Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP Possible-Solution Similar-Issue

Comments

@ahthomsen
Copy link

Summary:
For users on Windows, we receive ongoing feedback that our add-in randomly fails to load when a dialogue view is opened. The issue happens randomly and only with some users.

Sometimes an error is shown like below:

Image

In other cases, the window just remains blank.

We have confirmed that the issue also remains if the application simply loads a single string "blank." (no HTML, JavaScript, or anything else).

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC desktop (Windows)
  • Host [Excel, Word, PowerPoint, etc.]: PowerPoint
  • Office version number: Version 2501
  • Operating System: Windows 11 Pro, 24H2
  • Browser (if using Office on the web): n/a

Expected behavior

No errors and a consistent experience.

Current behavior

With some users, the error takes place in 1-2% of cases, while for others, it is more like 10% of cases

Steps to reproduce

Office.context.ui.displayDialogAsync(
fullUrl,
{
height: size,
width: size,
displayInIframe: inFrame,
},

Using only URLs from the same domain as the host application

Link to live example(s)




Provide additional details




Context

Only fails on PC, seems like it mainly happens when larger presentations are opened (but cannot be confirmed).

Repairing and reinstalling Microsoft EdgeWebView2 Runtime seems to sometimes improve the issue, but does not solve it.

Useful logs

No logs can be found

Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

As a workaround, could you try adding the specific URL you are attempting to open in your AppDomain and test?

Reference:

Powered by issue-sentinel

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP Possible-Solution Similar-Issue
Projects
None yet
Development

No branches or pull requests

1 participant