Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Crash when checking license if chart is inside a slow carrousel. #5491

Open
claunia opened this issue May 4, 2024 · 5 comments
Open

Comments

@claunia
Copy link

claunia commented May 4, 2024

Blazorise Version

1.5.2

What Blazorise provider are you running on?

None

Link to minimal reproduction or a simple code snippet

    <Carousel Interval="5000">
        <CarouselSlide Name="1">
            <PieChart @ref="_chart1" style="padding: 40px" TItem="long"/>
        </CarouselSlide>
        <CarouselSlide Name="2">
            <PieChart @ref=_chart2" style="padding: 40px" TItem="long"/>
        </CarouselSlide>
    </Carousel>

@code
{
    PieChart<long>?       _chart1;
    PieChart<long>?       _chart1;

    protected override async Task OnInitializedAsync()
    {
        await
            Task.WhenAll(HandleRedraw(_chart1, GetChartDataset),
                         HandleRedraw(_chart2, GetChartDataset));
    }
}

Steps to reproduce

Using SSR put charts inside a carousel and put a long interval.

What is expected?

Charts drawing correctly.

What is actually happening?

NullReferenceException in

var chartsRowLimit = LicenseChecker.GetChartsRowsLimit();

What browsers do you see the problem on?

Chrome, Microsoft Edge, Safari, Firefox

Any additional comments?

No response

@claunia claunia added the Type: Bug 🐞 Something isn't working label May 4, 2024
@stsrki stsrki added this to 🔙 Backlog in Support via automation May 4, 2024
@stsrki stsrki added this to the 1.5 support milestone May 4, 2024
Copy link
Contributor

github-actions bot commented May 4, 2024

Hello @claunia, thank you for your submission. The issue was labeled "Status: Repro Missing", as you have not provided a way to reproduce the issue quickly. Most problems already solve themselves when isolated, but we would like you to provide us with a reproducible code to make it easier to investigate a possible bug.

@David-Moreira
Copy link
Contributor

Please provide a complete reproducible, as the snippet alone is not enough to reproduce the issue.

@claunia
Copy link
Author

claunia commented May 4, 2024

It looks like a race condition, as it does not happen with an interval of 2000.

Will take some time to prepare a more complete snippet.

@stsrki
Copy link
Collaborator

stsrki commented May 9, 2024

Hello @claunia, were you able to reproduce the error in a separate project?

@claunia
Copy link
Author

claunia commented May 10, 2024

Didn't have the time yet but I have not forgotten.

Need to finish project first sorry, will take some days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Support
  
🔙 Backlog
Development

No branches or pull requests

3 participants