Tokens from initial marking disappear
Bug #2038418 reported by
Jiri Srba
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TAPAAL |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Open the ERK example. Go to the simulator (press M), execute the transition r1 (double click it), and return back to the editor (press M again). Now all tokens from the initial marking disappeared.
Changed in tapaal: | |
assignee: | nobody → Kenneth Yrke Jørgensen (yrke) |
Changed in tapaal: | |
status: | New → Fix Committed |
To post a comment you must log in.
Based on testing, it seems to also affect when changing marking from history.
Looking in the debugger it seems the markings are saved as empty.
Traced the code back to NetworkMarking.Java line 34-36:
<code> resetNumberOfTo kens();
for (TimedPlace place : tapn.places()) {
place.
}
</code>
Git message is: "Fixed initial markings not updating" changed 2023-04-17.
Removing the change fixes the issue, but will properly bring back the old issue.
This might refer to bugs: /bugs.launchpad .net/tapaal/ +bug/1988664 or /bugs.launchpad .net/tapaal/ +bug/2016304
https:/
https:/
I guess we need to revisit this to find a proper fix.