Filtered grid crash app in WASM when user selected rows

My wasm app is on .net (9.0.5) and when I update Syncfusion.Blazor nuget package from 29.1.41 to version 29.2.4 

I have issue on datagrids, when user apply filter and then try to select row inisde grid app crash .

Error in consle looks like: 

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]

      Unhandled exception rendering component: Cannot wait on monitors on this runtime.


Here is one sample of my grid:



<SfGrid @ref="Grid" id="GridPPovratnica" EnableAutoFill="true" EnableVirtualization="false" AllowFiltering="true" AllowSorting="true" TValue="PrimkaListModel" AllowPaging="true" Height="100%" EnableAdaptiveUI="true" AdaptiveUIMode="AdaptiveMode.Desktop" AllowResizing="true">

    <GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.FilterBar" Mode="FilterBarMode.OnEnter" ImmediateModeDelay="100" ShowFilterBarStatus="false" ></GridFilterSettings>

    <GridPageSettings PageSize="@pageSize" PageSizes="pageSizes"></GridPageSettings>

    <GridEditSettings AllowEditing="true" AllowEditOnDblClick="false" AllowNextRowEdit="false" ShowConfirmDialog="false" Mode="EditMode.Batch"></GridEditSettings>

    <GridSelectionSettings Type="Syncfusion.Blazor.Grids.SelectionType.Multiple" CheckboxOnly="false" PersistSelection="false" ></GridSelectionSettings>

    <GridEvents CommandClicked="OnCommandClicked" OnActionFailure="@ActionFailure" OnRecordDoubleClick="RecordDoubleClickHandler" OnLoad="Load" TValue="PrimkaListModel"></GridEvents>

    <SfDataManager Url="/api/primke/ListaPovratnica" Adaptor="Adaptors.UrlAdaptor"></SfDataManager>

    <GridTemplates>

        <ToolbarTemplate>

            <SfToolbar>

                <ToolbarEvents Clicked="ToolbarClickHandler"></ToolbarEvents>

                <ToolbarItems>

                    <ToolbarItem Type="@ItemType.Button" PrefixIcon="e-align-middle icon" Id="sastavi" Text="Sastavite više povratnica u jednu"></ToolbarItem>

                </ToolbarItems>

            </SfToolbar>

        </ToolbarTemplate>

    </GridTemplates>

    <GridColumns>

        <GridColumn HeaderText="Detalji" AllowFiltering="false" TextAlign="TextAlign.Center" Width="90">

            <GridCommandColumns >

                <GridCommandColumn ButtonOption="@(new CommandButtonOptions() { CssClass="e-icon-calender e-icons" })" Title="Detalji"></GridCommandColumn>

            </GridCommandColumns>

        </GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.Par) HeaderText="Partner" Width="450">

        </GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.Datum) Format="d" Type="ColumnType.DateOnly" TextAlign="TextAlign.Right" Width="236">

            <HeaderTemplate>

                <div style="text-align: center;">

                    <span class="e-icon-calender e-icons headericon"></span> Datum

                </div>

            </HeaderTemplate>


            <FilterTemplate>

                @{

                    <SfDateRangePicker Placeholder="Odaberite period" ShowTodayButton="true" MaxDays="358" Width="500" ShowClearButton="true"

                    @bind-StartDate="dataRange.StartDate" @bind-EndDate="dataRange.EndDate" TValue="DateTime">

                        <DateRangePickerEvents TValue="DateTime" ValueChange="DateValueChangeHandler">

                        </DateRangePickerEvents>

                    </SfDateRangePicker>

                }

            </FilterTemplate>


        </GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.Broj) HeaderText="Broj" TextAlign="TextAlign.Right" Width="150"></GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.StatusOpis) Type="Syncfusion.Blazor.Grids.ColumnType.String" HeaderText="Status" TextAlign="TextAlign.Center" Width="185">

            <FilterTemplate >

                <SfDropDownList TValue="string" Width="100%" Placeholder="Status" ShowClearButton="true" TItem="string" DataSource="@CustomerIDData">

                    <DropDownListEvents ValueChange="CustomerIDOnChange" TValue="string" TItem="string"></DropDownListEvents>

                </SfDropDownList>

            </FilterTemplate>

        </GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.DocDobBroj) HeaderText="Broj doc dob" TextAlign="TextAlign.Right" Width="180"></GridColumn>


        <GridColumn Field=@nameof(PrimkaListModel.Skl) HeaderText="Skladište" Width="240"></GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.Napomena) HeaderText="Napomena" Width="170" AllowFiltering="true" ></GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.Izradio) HeaderText="Izradio" AllowFiltering="false" Width="170"></GridColumn>

        <GridColumn Field=@nameof(PrimkaListModel.Id) HeaderText="Id" Visible="false" IsPrimaryKey="true" ></GridColumn>





    </GridColumns>

</SfGrid>


      


4 Replies 1 reply marked as answer

AH Admir Hodžic May 20, 2025 11:12 AM UTC

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Cannot wait on monitors on this runtime. System.PlatformNotSupportedException: Cannot wait on monitors on this runtime. at System.Threading.Monitor.ObjWait(Int32 , Object ) at System.Threading.Monitor.Wait(Object , Int32 ) at System.Threading.ManualResetEventSlim.Wait(Int32 , CancellationToken ) at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 , CancellationToken ) at System.Threading.Tasks.Task.InternalWaitCore(Int32 , CancellationToken ) at System.Threading.Tasks.Task.InternalWait(Int32 , CancellationToken ) at System.Threading.Tasks.Task`1[[System.Object, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetResultCore(Boolean ) at System.Threading.Tasks.Task`1[[System.Object, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Result() at Syncfusion.Blazor.Grids.Internal.Selection`1[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].GetFilteredDataList() at Syncfusion.Blazor.Grids.Internal.Selection`1[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetHeaderCheckState(Row`1 row, String requestType) at Syncfusion.Blazor.Grids.Internal.Selection`1.<SelectByRow>d__74[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at Syncfusion.Blazor.Grids.Internal.Selection`1.<ValidateRowSelectionClick>d__83[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at Syncfusion.Blazor.Grids.Internal.Selection`1.<RowSelectionClickHandler>d__82[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at Syncfusion.Blazor.Grids.Internal.Selection`1.<ClickHandler>d__78[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at Syncfusion.Blazor.Grids.Internal.GridCellBase`1.<CellClickHandler>d__77[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at Syncfusion.Blazor.Grids.Internal.GridCell`1.<<BuildRenderTree>b__0_7>d[[blazor.Shared.KnjizenjePrimkiModeli.PrimkaListModel, blazor.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )
vt@
(anonymous)@
Fc@
$func172@
$func101@
$func92@
$func129@
$func2689@
$func2018@
$func2023@
$func2047@
$mono_wasm_invoke_jsexport@
Module._mono_wasm_invoke_jsexport@
gn@
(anonymous)@
beginInvokeDotNetFromJS@
invokeDotNetMethodAsync@
invokeMethodAsync@
(anonymous)@
R@
(anonymous)@
invokeWhenHeapUnlocked@
(anonymous)@
R@
I@
dispatchGlobalEventToAllElements@
onGlobalEvent@



This is error I get in console when user selected row on  data grid attached to remote data with custom filters.

Strange thig I this error get only in production mode, in debug mode I can't  repeat probem.


SK Sanjay Kumar Suresh Syncfusion Team May 21, 2025 05:22 AM UTC

Hi Admir Hodžic,


We have confirmed that this is a breaking issue and logged a defect report titled “Exception thrown during searching after Grid filtering action”. Thank you for taking the time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fix all validated defects (subject to technological feasibility and Product Development Life Cycle) and this fix will be included in our patch release which is expected to be rolled out on or before 27th  May 2025.


You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.     


https://www.syncfusion.com/feedback/67711/exception-thrown-during-grid-filtering-with-virtualization-using-odatav4-adapter

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization”


Until then we appreciate your patience.



Regards,

Sanjay Kumar Suresh


Marked as answer

AH Admir Hodžic May 27, 2025 07:21 AM UTC

This is fixed with version  29.2.7 .

Thanks a lot.



SK Sanjay Kumar Suresh Syncfusion Team May 27, 2025 01:55 PM UTC

Hi Admir Hodžic,


We are happy to hear that the your query has been resolved at your end. Please get back to us if you need any other assistance.


Regards,

Sanjay Kumar Suresh


Loader.
Up arrow icon