Resizing browser creates errors : DotNetObjectReference instance was already disposed

Dear Customer Support,


I have a question regarding the web console errors I am seeing across all syncfusion blazor components.

I am seeing these pop up on my production app when I resize my browser for razor pages with syncfusion blazor components. I originally thought it may have something to do with the life cycle management of any [Inject] objects and disposing etc.. After searching in various forums, I switched my webapi services to be transient as opposed to scoped. (for example, 

services.AddTransient<IBlobServiceRepository, BlobServiceRepository>();


I am on net 6.0, webassebly, using chrome browser mostly.



Then I decided to do another test on your sample demo apps provided, After resizing every component, I get the same error shown below. Can you please help me understand why this is occurring?







4 Replies

DG Durga Gopalakrishnan Syncfusion Team March 7, 2022 01:16 PM UTC

Hi John, 

Greetings from Syncfusion. 

We have ensured your reported scenario in chart and gauge. We are unable to reproduce the reported issue in both components(v19.4.0.54). We have already fixed the reported issue in our component. Please find the sample and video in which we tried to reproduce the reported issue below.   
    



If you are still facing the reported issue, please let us know the product version and provide us the sample in you are facing the reported issue. It will be helpful for us to analyze and assist you further.    

Regards, 
Durga G 



GE Gerome July 13, 2022 02:29 PM UTC

Hi,

I have similar error when i have for example 2 DataGrid and above 2 tabs, when i click quickly onto 1st tab then after the other tab then (not always, but quite often, suddenly) :

Uncaught (in promise) Error: System.ArgumentException: There is no tracked object with id '13'. Perhaps the DotNetObjectReference instance was already disposed. (Parameter 'dotNetObjectId') at Microsoft.JSInterop.JSRuntime.GetObjectReference(Int64 dotNetObjectId) at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime,fo, String argsJson) at Object.endInvokeDotNetFromJS (blazor.webassembly.js?v=Portail:1:3531) at Object.Rt [as endInvokeDotNetFromJS] (blazor.webassembly.js?v=Portail:1:60566) at Object.St [as invokeJSFromDotNet] (blazor.webassembly.js?v=Portail:1:60049) at _mono_wasm_invoke_js_blazor (dotnet..fi8apbhh45.js:9023:37) at do_icall (02e9db86:0x1929d) at do_icall_wrapper (02e9db86:0x184a2) at interp_exec_method (02e9db86:0xa5e5) at interp_runtime_invoke (02e9db86:0x94b3) at mono_jit_runtime_invoke (02e9db86:0x1dede6) at do_runtime_invoke (02e9db86:0x96181)
endInvokeDotNetFromJS@blazor.webassembly.js?v=Portail:1
Rt@blazor.webassembly.js?v=Portail:1
St@blazor.webassembly.js?v=Portail:1
_mono_wasm_invoke_js_blazor@dotnet..fi8apbhh45.js:9023
$do_icall@02e9db86:0x1929d
$do_icall_wrapper@02e9db86:0x184a2
$interp_exec_method@02e9db86:0xa5e5
$interp_runtime_invoke@02e9db86:0x94b3
$mono_jit_runtime_invoke@02e9db86:0x1dede6
$do_runtime_invoke@02e9db86:0x96181
$mono_runtime_try_invoke@02e9db86:0x968b5
$mono_runtime_invoke@02e9db86:0x98b42
$mono_wasm_invoke_method@02e9db86:0x2287ea
Module._mono_wasm_invoke_method@dotnet..fi8apbhh45.js:9946
managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet@managed__Microsoft_AeginInvokeDotNet:19
beginInvokeDotNetFromJS@blazor.webassembly.js?v=Portail:1
b@blazor.webassembly.js?v=Portail:1
invokeMethodAsync@blazor.webassembly.js?v=Portail:1
e.setColumnWidth@syncfusion-blazor.min.js:19
e.resizeColumn@syncfusion-blazor.min.js:19
t@syncfusion-blazor.min.js:19
e.findColumn@syncfusion-blazor.min.js:19
e.autoFitColumns@syncfusion-blazor.min.js:19
e.autoFit@syncfusion-blazor.min.js:19
i.contentReady@syncfusion-blazor.min.js:19
contentReady@syncfusion-blazor.min.js:19
invokeJSFromDotNet@blazor.webassembly.js?v=Portail:1
St@blazor.webassembly.js?v=Portail:1
_mono_wasm_invoke_js_blazor@dotnet..fi8apbhh45.js:9023
$do_icall@02e9db86:0x1929d
$do_icall_wrapper@02e9db86:0x184a2
$interp_exec_method@02e9db86:0xa5e5
$interp_runtime_invoke@02e9db86:0x94b3
$mono_jit_runtime_invoke@02e9db86:0x1dede6
$do_runtime_invoke@02e9db86:0x96181
$mono_runtime_try_invoke@02e9db86:0x968b5
$tp_cb@02e9db86:0x1fe1c9
$mono_background_exec@02e9db86:0xc970c
Module._mono_background_exec@dotnet..fi8apbhh45.js:10096
pump_message@dotnet..fi8apbhh45.js:6089
setTimeout (asynchrone)
_schedule_background_exec@dotnet..fi8apbhh45.js:9300
$mono_threads_schedule_background_job@02e9db86:0xc96ab
$mono_wasm_queue_tp_cb@02e9db86:0x1fe14e
$do_icall@02e9db86:0x19326
$do_icall_wrapper@02e9db86:0x184a2
$interp_exec_method@02e9db86:0xa5e5
$interp_runtime_invoke@02e9db86:0x94b3
$mono_jit_runtime_invoke@02e9db86:0x1dede6
$do_runtime_invoke@02e9db86:0x96181
$mono_runtime_try_invoke@02e9db86:0x968b5
$tp_cb@02e9db86:0x1fe1c9
$mono_background_exec@02e9db86:0xc970c
Module._mono_background_exec@dotnet..fi8apbhh45.js:10096
pump_message@dotnet..fi8apbhh45.js:6089
setTimeout (asynchrone)
_schedule_background_exec@dotnet..fi8apbhh45.js:9300
$mono_threads_schedule_background_job@02e9db86:0xc96ab
$mono_wasm_queue_tp_cb@02e9db86:0x1fe14e
$do_icall@02e9db86:0x19326
$do_icall_wrapper@02e9db86:0x184a2
$interp_exec_method@02e9db86:0xa5e5
$interp_runtime_invoke@02e9db86:0x94b3
$mono_jit_runtime_invoke@02e9db86:0x1dede6
$do_runtime_invoke@02e9db86:0x96181
$mono_runtime_try_invoke@02e9db86:0x968b5
$mono_runtime_invoke@02e9db86:0x98b42
$mono_wasm_invoke_method@02e9db86:0x2287ea
Module._mono_wasm_invoke_method@dotnet..fi8apbhh45.js:9946
managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet@managed__Microsoft_AeginInvokeDotNet:19
beginInvokeDotNetFromJS@blazor.webassembly.js?v=Portail:1
b@blazor.webassembly.js?v=Portail:1
invokeMethodAsync@blazor.webassembly.js?v=Portail:1
(anonymes)@blazor.webassembly.js?v=Portail:1
invokeWhenHeapUnlocked@blazor.webassembly.js?v=Portail:1
A@blazor.webassembly.js?v=Portail:1
N@blazor.webassembly.js?v=Portail:1
dispatchGlobalEventToAllElements@blazor.webassembly.js?v=Portail:1
onGlobalEvent@blazor.webassembly.js?v=Portail:1


DG Durga Gopalakrishnan Syncfusion Team July 15, 2022 02:23 PM UTC

Hi Gerome,

 

We have ensured your reported scenario by switching between tabs in latest version 20.2.38 with data grid and chart; unfortunately, we are unable to replicate an issue from our end. We have attached the tested sample and screenshot for your reference.

 

 

We request you to share the following information which will be helpful for further analysis and provide you the solution.

  • Try to reproduce the reported scenario in below sample.
  • Please share your sample (or) code snippet with full configurations.
  • Share the details if you have done any other customization in your sample.
  • Share your datasource file.
  • Share your package version.
  • Browser used and system configuration.

Please revert us if you have any concerns.

 

Regards,

Durga Gopalakrishnan.



DG Durga Gopalakrishnan Syncfusion Team July 15, 2022 02:25 PM UTC

Please find an attached sample.



Attachment: Tabs_5a88551c.zip

Loader.
Up arrow icon