Delete all of your collections so it's a blank slate. Put 3 pictures in one directory.
Mark all 3 pictures. Exit dopus. Run dopus. Go back to the directory with 3 pictures. View the first picture, it will not show as marked. Cycle to the next picture, it shows as marked. Cycle to the previous picture and it will now show as marked.
Exit dopus. Run dopus. Go back to the directory with 3 pictures. View the first picture, it does not show as marked. Click "m" once to mark the picture. Nothing happens. This is because the picture is already marked so the code disagrees with itself.
Is Preferences / Viewer / Behavior / Check for marked pictures when viewer is opened turned on or off? It should be on if you want it to notice something is marked when re-opening the viewer.
Ya, it's on. I tried completely deleting my /dopusdata folder so everything would be factory reset. That didn't resolve the problem.
There are a couple strange observations. In this capture, you see the File menu in the upper left, the "Marked" graphic should be right below it but it isn't. But notice in the right click dropdown, it knows the picture is marked.
Finally, if I turn on "Display marked pictures pane when an image is marked" the problem goes away. Right when I load the image the marked graphic is there. I don't really like the marked picture pane so I'm not sure this solves anything but just offering this piece of info.