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

PieChart Example causes arithmetic overflow #1103

Closed
mikes-gh opened this issue Mar 6, 2021 · 0 comments
Closed

PieChart Example causes arithmetic overflow #1103

mikes-gh opened this issue Mar 6, 2021 · 0 comments
Labels
bug Something does not work as intended/expected fixed Fix has been merged
Milestone

Comments

@mikes-gh
Copy link
Contributor

mikes-gh commented Mar 6, 2021

Describe the bug

Category: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost
EventId: 111
SpanId: 6191ff0d59552145
TraceId: 69f98e64a4586249a03e4fd955d25849
ParentId: 0000000000000000
RequestId: 80000acf-0400-7900-b63f-84710c7967bb
RequestPath: /_blazor
TransportConnectionId: TE9Xr6YYeqLcFONqBbBmlQ

Unhandled exception in circuit 'rBkwSHrxzegg77l8pD9r8XanK5noXH0PoqYr36sW2iw'.

Exception: 
System.OverflowException: Arithmetic operation resulted in an overflow.
   at MudBlazor.Docs.Examples.PieExample1.RandomizeData() in /home/vsts/work/1/s/src/MudBlazor.Docs/Pages/Components/Charts/Examples/PieExample1.razor:line 21
   at MudBlazor.Docs.Examples.PieExample1.RemoveDataSize() in /home/vsts/work/1/s/src/MudBlazor.Docs/Pages/Components/Charts/Examples/PieExample1.razor:line 36
   at Microsoft.AspNetCore.Components.EventCallbackWorkItem.InvokeAsync[T](MulticastDelegate delegate, T arg)
   at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(EventCallbackWorkItem callback, Object arg)
   at Microsoft.AspNetCore.Components.EventCallback`1.InvokeAsync(TValue arg)
   at MudBlazor.MudBaseButton.OnClickHandler(MouseEventArgs ev) in /home/vsts/work/1/s/src/MudBlazor/Base/MudBaseButton.cs:line 79
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

Expected Behaviour
No Exception

@mikes-gh mikes-gh added the bug Something does not work as intended/expected label Mar 6, 2021
mikes-gh pushed a commit to mikes-gh/MudBlazor that referenced this issue Mar 9, 2021
@mikes-gh mikes-gh added the fixed Fix has been merged label Mar 9, 2021
@mikes-gh mikes-gh added this to the 5.0.6 milestone Mar 9, 2021
@mikes-gh mikes-gh closed this as completed Mar 9, 2021
Garderoben pushed a commit that referenced this issue Mar 15, 2021
* added interpolation mechanism

* commit to continue work on laptop

* Cache bust 5.0.5

* first interpolation implementation

* spliced code up to reuse and add in documentation

* Add support for Required parameter to Select component (#1127)

* Add key to MudDialogInstance (#1137)

* Fix #1103 Arithmetic overflow in chart examples

* Fix #1144 Scroll to top example

* fixed initial Y value

* made splined width 100%

* added menu for all the different interpolation algorithms

* Added some base position/visibility classes.

* big cleanup

* cleanup notinterpolation constructor

* Docs: ScrollToTop removed inline <style> css from examples.

* quickly added latest suggestions

* Removed svg height from base scss.

* add action buttons to pickers

* add clear option to pickers

* renamed curveEnum to Interpolationoptions

* change drawer-content height to 100%

* fix #1153

* fix #994

* Docs: Removed docs specific component.

* Add application insights to website

* Add application insights to website

* fix #1169

* Add test today should be selected

* fix appbar/maincontent css in firefox esr

* Fix flaky async autocomplete test

* Fire onclick event in MudNavLink

* fix spelling error

* minor grammar fixes

* improve title grammar

* include subtitle  and description properties for the header

* add information regarding material design surfaces

* minor grammar and punctuation fixes

* Fixed Typo in FlexPage.razor

* MudSwitch removed Class from the internal switch class, Fix for #1163
HClausing pushed a commit to HClausing/MudBlazor that referenced this issue Mar 23, 2021
HClausing pushed a commit to HClausing/MudBlazor that referenced this issue Mar 23, 2021
* added interpolation mechanism

* commit to continue work on laptop

* Cache bust 5.0.5

* first interpolation implementation

* spliced code up to reuse and add in documentation

* Add support for Required parameter to Select component (MudBlazor#1127)

* Add key to MudDialogInstance (MudBlazor#1137)

* Fix MudBlazor#1103 Arithmetic overflow in chart examples

* Fix MudBlazor#1144 Scroll to top example

* fixed initial Y value

* made splined width 100%

* added menu for all the different interpolation algorithms

* Added some base position/visibility classes.

* big cleanup

* cleanup notinterpolation constructor

* Docs: ScrollToTop removed inline <style> css from examples.

* quickly added latest suggestions

* Removed svg height from base scss.

* add action buttons to pickers

* add clear option to pickers

* renamed curveEnum to Interpolationoptions

* change drawer-content height to 100%

* fix MudBlazor#1153

* fix MudBlazor#994

* Docs: Removed docs specific component.

* Add application insights to website

* Add application insights to website

* fix MudBlazor#1169

* Add test today should be selected

* fix appbar/maincontent css in firefox esr

* Fix flaky async autocomplete test

* Fire onclick event in MudNavLink

* fix spelling error

* minor grammar fixes

* improve title grammar

* include subtitle  and description properties for the header

* add information regarding material design surfaces

* minor grammar and punctuation fixes

* Fixed Typo in FlexPage.razor

* MudSwitch removed Class from the internal switch class, Fix for MudBlazor#1163
HClausing pushed a commit to HClausing/MudBlazor that referenced this issue Apr 5, 2021
* added interpolation mechanism

* commit to continue work on laptop

* Cache bust 5.0.5

* first interpolation implementation

* spliced code up to reuse and add in documentation

* Add support for Required parameter to Select component (MudBlazor#1127)

* Add key to MudDialogInstance (MudBlazor#1137)

* Fix MudBlazor#1103 Arithmetic overflow in chart examples

* Fix MudBlazor#1144 Scroll to top example

* fixed initial Y value

* made splined width 100%

* added menu for all the different interpolation algorithms

* Added some base position/visibility classes.

* big cleanup

* cleanup notinterpolation constructor

* Docs: ScrollToTop removed inline <style> css from examples.

* quickly added latest suggestions

* Removed svg height from base scss.

* add action buttons to pickers

* add clear option to pickers

* renamed curveEnum to Interpolationoptions

* change drawer-content height to 100%

* fix MudBlazor#1153

* fix MudBlazor#994

* Docs: Removed docs specific component.

* Add application insights to website

* Add application insights to website

* fix MudBlazor#1169

* Add test today should be selected

* fix appbar/maincontent css in firefox esr

* Fix flaky async autocomplete test

* Fire onclick event in MudNavLink

* fix spelling error

* minor grammar fixes

* improve title grammar

* include subtitle  and description properties for the header

* add information regarding material design surfaces

* minor grammar and punctuation fixes

* Fixed Typo in FlexPage.razor

* MudSwitch removed Class from the internal switch class, Fix for MudBlazor#1163
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as intended/expected fixed Fix has been merged
Projects
None yet
Development

No branches or pull requests

1 participant