We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Leaving page with toast object on it throwing error in colsole

On pages with toast control, when user navigate away from page console throws error 
Same error we have in ver 44 with RichText Editor , now in 46 version RichText working but Toast is broken.
It is becoming so annoying working with Syncfusion Blazor components.
From version to version functions that has been worked falling apart randomly.
To be more spicy in browser console there is no any clue what was wrong
From messages like this
System.ArgumentException: There is no tracked object with id '1'. Perhaps the DotNetObjectReference instance was already disposed. (Parameter 'dotNetObjectId')
   at Microsoft.JSInterop.JSRuntime.GetObjectReference(Int64 dotNetObjectId)
   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
Error: System.ArgumentException: There is no tracked object with id '1'. Perhaps the DotNetObjectReference instance was already disposed. (Parameter 'dotNetObjectId')

There is no way to figure which control throws error, you need to test controls one by one to figure what went wrong, and then to wait for days to patch bug and pray that there is no new ones.

Reporo for this you can try on demo page 
Swic from demo to source tab take a look at browser console






4 Replies

IS Indrajith Srinivasan Syncfusion Team February 6, 2020 02:52 PM UTC

Hi Admir, 
 
We regret for the inconvenience caused, 
 
We have validated your reported query and able to reproduce the issue from our end. The reported issue occurs only if the toast is open state and do the routing before hide it. We are making progress towards the memory leak issue for our Blazor components that leads this script error with dynamic DOM components alone. 
 
Currently, we are validating this issue with priority and update you with further details in two business days (10-02-2019). 
 
Regards, 
Indrajith 



IS Indrajith Srinivasan Syncfusion Team February 10, 2020 02:21 PM UTC

Hi Admir, 
 
We have validated your reported query and able to reproduce the issue from our end. We have confirmed Script error from toast component while disposing of toast as a bug from our end and logged the report for the same and the fix will be included in our upcoming patch release scheduled to be roll-out on 19th February. 
 
You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/11954/ 
 
Regards, 
Indrajith 



IS Indrajith Srinivasan Syncfusion Team February 20, 2020 09:50 AM UTC

Hi Admir,    
    
We regret for the inconvenience caused, 
  
We couldn’t include the fix for “Script error from toast component while disposing of toast” with our weekly patch released on 19th February, due to complexity on resolving the reported issue from our end. We will include the fix in our next patch release scheduled to roll-out on 26th February 
 
We appreciate your patience until then. 
    
Regards, 
Indrajith 



IS Indrajith Srinivasan Syncfusion Team February 26, 2020 10:27 AM UTC

Hi Admir,  
 
Thanks for your patience, 
 
We have resolved the reported issue “Script error from toast component while disposing of toast” with Toast and the fix is now available with the package version 17.4.51.  
 
  
Can you please upgrade your package to this latest version to resolve the issue from your end ? 
 
Regards, 
Indrajith 


Loader.
Live Chat Icon For mobile
Up arrow icon