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

Blazor UI Freezes on scroll #13722

Closed
muayyat opened this issue Mar 6, 2023 · 7 comments
Closed

Blazor UI Freezes on scroll #13722

muayyat opened this issue Mar 6, 2023 · 7 comments
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/android 🤖 s/needs-attention Issue has more information and needs another look

Comments

@muayyat
Copy link

muayyat commented Mar 6, 2023

Description

The entire UI freezes when fast scrolling in Blazor MAUI app.

Steps to Reproduce

  1. Create a new Blazor MAUI app on Visual Studio
  2. Build and launch on Emulator or publish to an actual android device
  3. Open the app and just scroll down

Expected Behaviour: Run smoothly
Actual Behaviour: Freezes completely until app closed and restarted

Configuration:

  1. Visual Studio for Mac 2022
  2. .NET 7.0.2
  3. Blazor MAUI

Related issues:

  1. Github Issue
  2. StackOverflow Question

Link to public reproduction project repository

https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/maui?view=aspnetcore-7.0&pivots=windows

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android API Level 29 and 33

Did you find any workaround?

No response

Relevant log output

No response

@muayyat muayyat added the t/bug Something isn't working label Mar 6, 2023
@Eilon Eilon added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Mar 6, 2023
@mkArtakMSFT
Copy link
Member

Maybe this is the issue that you're facing: #9882 ?
If so, you may want to manually update the WebView version to the one with the fix to solve the problem. Here are the docs for how to do that: https://learn.microsoft.com/aspnet/core/blazor/hybrid/security/security-considerations?view=aspnetcore-7.0#android

@mkArtakMSFT mkArtakMSFT added the s/needs-info Issue needs more info from the author label Mar 7, 2023
@ghost
Copy link

ghost commented Mar 7, 2023

Hi @muayyat. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@muayyat
Copy link
Author

muayyat commented Mar 9, 2023

Thanks, I have checked the links shared.

But this is a business application. You can’t tell customers to make some manual downgrades simply to use your app. Will really be helpful a lot if it will be fixed in a patch of .net 7 or in .net 8

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Mar 9, 2023
@mkArtakMSFT
Copy link
Member

@muayyat we think this may be an Android issue. To confirm that, can you please upgrade your Android System WevView to the latest version and see if the issue still reproduces. If so, would be great to get a recording of the behavior.

@mkArtakMSFT mkArtakMSFT added s/needs-info Issue needs more info from the author and removed t/bug Something isn't working s/needs-attention Issue has more information and needs another look labels Mar 9, 2023
@ghost
Copy link

ghost commented Mar 9, 2023

Hi @muayyat. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Mar 13, 2023
@ghost
Copy link

ghost commented Mar 13, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@muayyat
Copy link
Author

muayyat commented Mar 14, 2023

I figured out the freezing happens when:

  1. A code breaks anywhere in the blazor application
  2. Js Interop is involved and its invokation breaks

I was able to do away completely with JS and ensured on all ends the blazor never breaks.

This solved it.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity labels Mar 14, 2023
@mkArtakMSFT mkArtakMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/android 🤖 s/needs-attention Issue has more information and needs another look
Projects
None yet
Development

No branches or pull requests

4 participants