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

The app crashed during release #1049

Open
1 of 4 tasks
Simone1223 opened this issue Feb 13, 2025 · 1 comment
Open
1 of 4 tasks

The app crashed during release #1049

Simone1223 opened this issue Feb 13, 2025 · 1 comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior

Comments

@Simone1223
Copy link

Describe the bug

Hello,

I am having difficulty using one of ‘SfNumericEntry’ controls and need your help as soon as possible.

I'll start by saying that I'm using CommunityToolkit.Mvvm, with this I declared an array of doubles with [ObservableProperty] named ‘fo_tpr’ (this contains 12 doubles initialized to 1).

The variable ‘fo_tpr’ was used in the SfNumericEntry control as follows:

<editors:SfNumericEntry Grid.Column="3" Grid.Row="1" Value="{Binding Fo_tpr[0]}"
                        CustomFormat="0" HorizontalTextAlignment="Center"
                        AllowNull="False" Minimum="1" Maximum="6"/>

Everything during debugging works perfectly, but when I move to release the app crashes.
After several attempts I arrived at declaring a double variable (not an array) and with this the problem was solved.

I have written to Syncfusion support and it seems that the code has been optimised in the release and this is preventing the app from working properly.
Is this behaviour correct? I understand that ‘Value’ wants a double variable not an array but is using ‘Fo_tpr[0]’ not the same?

Thanks in advance,

Simone

Regression

No response

Steps to reproduce

  1. Declare with [ObservableProperty] the variable double[] fo_tpr = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; in the viewmodel
  2. Add this in the xaml
  3. Launch the app in release mode

Expected behavior

The app that doesn't crash

Screenshots

No response

IDE and version

VS 2022

IDE version

17.12.5

Nuget packages

  • CommunityToolkit.Common
  • CommunityToolkit.Diagnostics
  • CommunityToolkit.HighPerformance
  • CommunityToolkit.Mvvm (aka MVVM Toolkit)

Nuget package version(s)

8.4.0

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

@Simone1223 Simone1223 added the bug 🐛 An unexpected issue that highlights incorrect behavior label Feb 13, 2025
@Simone1223 Simone1223 changed the title Value of SfNumericEntry control The app crashed during release Feb 13, 2025
@Simone1223
Copy link
Author

I would like to add that in the release I manage to start the application in debug (how is this possible??) and when the moment comes when the application should crash I get this exception: "System.ExecutionEngineException".

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior
Projects
None yet
Development

No branches or pull requests

1 participant