Please help!

Hi

I have a blazor wasm application running with ver 20.1.0.50, all runs fine until I open one blazor component that use sfsidebar

when I close the sidebar in console I get this error

blazor.webassembly.js:1 Uncaught (in promise) Error: System.ArgumentException: There is no tracked object with id '421'. Perhaps the DotNetObjectReference instance was already disposed. Arg_ParamName_Name, dotNetObjectId

   at Microsoft.JSInterop.JSRuntime.GetObjectReference(/Int64 )

   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(/JSRuntime , DotNetInvocationInfo , String )

    at Object.endInvokeDotNetFromJS (blazor.webassembly.js:1:3531)

    at Object.Rt [as endInvokeDotNetFromJS] (blazor.webassembly.js:1:60566)

    at Object.St [as invokeJSFromDotNet] (blazor.webassembly.js:1:60049)

    at _mono_wasm_invoke_js_blazor (dotnet.6.0.4.d48sma0fil.js:1:191322)

    at 008f7502:0x14930

    at 008f7502:0x738a

    at 008f7502:0x62a2

    at 008f7502:0x1820cd

    at 008f7502:0x6f6d4

    at 008f7502:0x6fe05



this message does not affect the performance of the application, but I can't find why it appears


Please help!


4 Replies

KR Keerthana Rajendran Syncfusion Team April 21, 2022 04:27 PM UTC

Hi Jose luis Barajas,


We prepared a Blazor WASM sample by rendering Sidebar in the 20.1.0.50 version which is working fine. We suspect that this issue might be specific to your application. Refer to the following blog for more details on this issue.


https://github.com/dotnet/aspnetcore/issues/19814


Here, we are attaching the sample for your reference.


In addition, we like to know whether you are using the .Net 6 framework. If possible, kindly modify the attached sample to replicate the issue so that we can serve you better.


Regards,

Keerthana R



KR Keerthana Rajendran Syncfusion Team April 21, 2022 04:28 PM UTC

Sample attached 


Attachment: Blazor_WASAM_SideBar_7ff09f47.zip


GE Gerome July 13, 2022 02:34 PM UTC

Hello,

i can confirm as well, same issue using for example 2 DataGrid with 2 tabs, each tab is responsible of loading Datagrid, then not always but quite frequently a crash occurs mentionning 'DotNetObjectReference'...

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


IL Indhumathy Loganathan Syncfusion Team July 14, 2022 10:16 AM UTC

Hi Gerome,


We have created a separate ticket (391942) for the DataGrid related query. Please track the ticket for further technical assistance.


Regards,

Indhumathy L


Loader.
Up arrow icon