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

[syncfusion_flutter_gauges] ArgumentError: Invalid argument(s): 98.50746268656715 #2288

Open
duocnguyen6799 opened this issue Feb 17, 2025 · 1 comment
Labels
gauges Gauges component open Open

Comments

@duocnguyen6799
Copy link

duocnguyen6799 commented Feb 17, 2025

Bug description

Error message
ArgumentError: Invalid argument(s): 98.50746268656715

Steps to reproduce

  1. Initialize a SfLinearGauge with a range or value that triggers the issue.
  2. Run the app and allow the gauge to render.
  3. Observe the ArgumentError in the console.
    Note: The error does not always occur, but it appears frequently under certain conditions, suggesting an unstable behavior.

Code sample

Code sample
SfLinearGauge(
        key: ValueKey('slider-${_viewState.currentValue}'),
        animateAxis: true,
        showTicks: false,
        showAxisTrack: false,
        showLabels: false,
        isAxisInversed: isRTLMode(),
        minimum: _viewState.sliderMin.toDouble(),
        maximum: _viewState.sliderMax.toDouble(),
        markerPointers: [
          _currentIndicator(),
          if (_viewState.currentGoal != null) ...[
            _currentGoalIndicator(),
          ],
          _newGoalIndicator(),
        ],
)

Screenshots or Video

Screenshots / Video demonstration Image Image

On which target platforms have you observed this bug?

iOS

Flutter Doctor output

Stack trace on Sentry.io
linear_gauge_range_renderer.dart in RenderLinearRange._getRangeOffsets at line 351 within syncfusion_flutter_gauges
In App
linear_gauge_range_renderer.dart in RenderLinearRange.paint at line 460 within syncfusion_flutter_gauges
In App
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
box.dart in RenderBoxContainerDefaultsMixin.defaultPaint at line 3159 within flutter
linear_gauge_render_widget.dart in RenderLinearGauge.paint.<fn> at line 1067 within syncfusion_flutter_gauges
In App
object.dart in PaintingContext.pushLayer at line 487 within flutter
object.dart in PaintingContext.pushClipRect at line 547 within flutter
linear_gauge_render_widget.dart in RenderLinearGauge.paint at line 1064 within syncfusion_flutter_gauges
In App
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
box.dart in RenderBoxContainerDefaultsMixin.defaultPaint at line 3159 within flutter
flex.dart in RenderFlex.paint at line 1096 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
box.dart in RenderBoxContainerDefaultsMixin.defaultPaint at line 3159 within flutter
stack.dart in RenderStack.paintStack at line 654 within flutter
stack.dart in RenderStack.paint at line 670 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
basic.dart in _RenderColoredBox.paint at line 7819 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
proxy_box.dart in RenderProxyBoxMixin.paint at line 136 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
shifted_box.dart in RenderShiftedBox.paint at line 76 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
box.dart in RenderBoxContainerDefaultsMixin.defaultPaint at line 3159 within flutter
stack.dart in RenderStack.paintStack at line 654 within flutter
stack.dart in RenderStack.paint at line 670 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
proxy_box.dart in RenderProxyBoxMixin.paint at line 136 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
shifted_box.dart in RenderShiftedBox.paint at line 76 within flutter
object.dart in RenderObject._paintWithContext at line 3268 within flutter
object.dart in PaintingContext.paintChild at line 251 within flutter
box.dart in RenderBoxContainerDefaultsMixin.defaultPaint at line 3159 within flutter
stack.dart in RenderStack.paintStack at line 654 within flutter
stack.dart in RenderStack.paint at line 670 within flutter...
@VijayakumarMariappan VijayakumarMariappan added gauges Gauges component open Open labels Feb 17, 2025
@hien-elfie
Copy link

I'm facing the same issue, please helppppppp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gauges Gauges component open Open
Projects
None yet
Development

No branches or pull requests

3 participants