Closed dmitrypuzyrev closed 2 years ago
In the second case the problem is, that the assigned number wasn't present in the data set.
So far, there is no mechanism to create this entry, because a ChangedRodNumberAction
is used instead of a combination of DeleteRodAction
and CreateRodNumberAction
.
The first case seems to be caused by multiple threads executing change_data(...)
and therefore are trying to change the same data.
This condition can occur when multiple actions are logged.
In the second case the problem is, that the assigned number wasn't present in the data set. So far, there is no mechanism to create this entry, because a ChangedRodNumberAction is used instead of a combination of DeleteRodAction and CreateRodNumberAction.
You are right, there is not much sense in this operation, but it's easy to mistype while assigning the number. So it would be nice to have an error notification instead of crash :)
The GUI crashed twice during number exchange. First time I am not sure what exactly caused it, I think the provided number was less than 12 and the program crashed after one of the "number conflict dialogue" options was selected:
Second time I tried to assign a larger number to the existing rod and the program crashed: