Closed raherin closed 1 month ago
I can reproduce it with support/test-not-null-int even in macOS debug build . It can be replicated even in qt6.6.0 build on macOS
In addition to the above conditions, I was able to reproduce app freezes with other data type and widget combinations with 'not null' constraints. I've created another project to reproduce this support/form-freeze-test
Using the example project, the following conditions caused freezing in the app:
Data type | Widget type | Contraint | Default | When did app freeze? |
---|---|---|---|---|
text | Value map | not null | no default | (1st feature edited after last sync) |
int32 | range | not null | no default | (1st feature edited after last sync) |
int32 | range | "number" >= 1 |
no default | (1st feature edited after last sync) |
text | attachment(photo) | not null | no default | (2nd feature edited after last sync) |
@raherin can you reproduce this even without 'not null' constraints?
@tomasMizera we also got app crashes on iPad. Though it needed to be in landscape mode so that you had to scroll to see the whole form. If it is in portrait mode and you do not need to scroll, the app does not crash. Also the app did not crash if values were entered to not null fields before scrolling. It only crashed when not null fields are empty and you scroll on the form.
Thanks @raherin for testing this out!
I can't reproduce the crash on the current 2024.2.0 RC. @raherin , can you please verify it also?
I have identified a condition where the app will freeze when there is a field with an integer data type that has a not null constraint and no default value is set. There are also two other specific conditions to cause the freeze. The form must be long enough that the user has to scroll to see all of the fields and it will not freeze until a second feature is created after editing or creating a feature and saving it. I have created an example project support/test-not-null-int to test the issue. To recreate the problem:
I have tested this on a Samsung A53 with Android 14 installed. At least one other user has reported a similar issue on their Android 14 device.