I have a form model with a detached repeat. There are no errors or warnings in the form model or domain model.
When I create an entry in the detached repeat, copy it and then try to work in the copy, the whole application (or SME) breaks down without any error message. The window just freezes and I cannot do anything but restart.
I just found out that it is somehow connected to computations in the data model, because the breakdown only happens, when I have filled all fields that are neccessary for the computations. But as there is no error message, I don’t have a clue where to look, as all computations look fine on first view.
Do you have any idea how I can get closer to the problem without just restarting to build the model and look at which point it breaks down?
I’m not 100% sure from your description…
Is the form engine preview crashing when you test your modeled detached repeat?
Or is the SME modeling environment crashing while you try to modify a detached repeat in your form model?
Hi, The preview is crashing, so the screen freezes and I can only close it. Then I see the SME but I can also do nothing but closing and restarting the SME. So both are kind of crashing/freezing.
Do you have any idea, how I could find the error here? Thanks in advance.
I just made some further investigations. It seems to have something to do with the following scenario:
- I create an instance of the repeat, where a field exists, that is computed from other fields and that is shown in the detail view and in a row in the overview of the repeat.
- I copy the instance of the repeat and do NOT save the instance or the model or anything.
- I go into the copy and try to change anything that is used for the computation mentioned in step 1.
Then the screen freezes.
Hi @clara-fleet-yew,
Thanks for the extra information. I created some minimal models and tried to reproduce your issue using the SME 10.6.1 (2023.06-ext6). Everything seems to be working fine in the Form Model Preview.
In these models I have a computed field in the repeat which takes the value from the field outside the repeat. I can copy repeat entries using the copy functionality (select copy checkox in the Repeat Editor). I can then modify these copies with no issues.
Can you give any more details about your models?
@erik-radiant-gorge can you give any more details about how we can analyse this behavior? Are there any logs we can check?
With the SME in the browser, you can check the browser console for errors.
I don’t think you can access that with the electron version, though.
With a freezing tab/window there is nothing you can do, I think. That case must be debugged in a proper development environment.
Having spoken to @clara-fleet-yew, we found tht the root of this issue was nested computed fields in the repeat.
A bug ticket, A12-16284, has been created to resolve this issue.
A workaround exists. Moving computed fields to be direct children of the repeatable group resolves the issue.
Hi all, the fix to the issue will be available in 2024.06-ext2 and 2023.06-ext9 versions.