bitfoundation / bitplatform

Build all of your apps using what you already know and love ❤️
https://bitplatform.dev
MIT License
1.07k stars 222 forks source link

Culture change produces JS exception in Maui Win & Android #8715

Open techscx opened 1 week ago

techscx commented 1 week ago

Is there an existing issue for this?

Describe the bug

On some pages, e.g. profile page, changing the culture produces a JS exception in Maui Win & Android. The app is then sitting in the LoadingComponent without showing any content and not finishing the loading of the page.

Expected Behavior

There shouldn't be an exception.

Steps To Reproduce

Exceptions (if any)

Visual Studio Debugger: No exception thrown. Browser debug console: blazor.webview.js:1 JS object instance with ID 1 does not exist (has it been disposed?). Error: JS object instance with ID 1 does not exist (has it been disposed?). at w (https://0.0.0.0/_framework/blazor.webview.js:1:5273) at https://0.0.0.0/_framework/blazor.webview.js:1:3044 at new Promise () at g.beginInvokeJSFromDotNet (https://0.0.0.0/_framework/blazor.webview.js:1:3007) at https://0.0.0.0/_framework/blazor.webview.js:1:48020 at EventTarget. (:7:62) at EmbeddedBrowserWebView. (:1:43835) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args) at Bit.BlazorUI.BitFileUpload.DisposeAsync(Boolean disposing) at Bit.BlazorUI.BitFileUpload.DisposeAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.<>c__DisplayClass85_0.<g__HandleAsyncExceptions|1>d.MoveNext() NotifyUnhandledException @ blazor.webview.js:1 (anonymous) @ blazor.webview.js:1 (anonymous) @ VM15:7 (anonymous) @ VM14:1

.NET Version

8.0.400

Anything else?

No response

ysmoradi commented 6 days ago

Could you please let me know what's the version of the app you've installed from Google Play? You can see version in about page. And On which Android version / which specific device you're getting this error?

techscx commented 6 days ago

By now i get the error on IOS as well.

Windows: bitplatform 8.11.0 Application running both in dev and release mode from visual studio. NET 8.

IOS: Iphone 15 Prox Max IOS 18.0 Iphone 15 IOS 17.6.1 both and others running adminpanel 117.0.0

Android: Pixel 6 Android 14 adminpanel 117.0.0

techscx commented 2 days ago

Were you able to reproduce the behaviour?

Could you please let me know what's the version of the app you've installed from Google Play? You can see version in about page. And On which Android version / which specific device you're getting this error?

ysmoradi commented 2 days ago

We've improved culture management recently, wait for the new pre-release