Closed aerych closed 6 months ago
Following up: there was something weird with the state of the post list when this happened. There was a section for a failed post, then another section containing two different failed posts, and finally the section for published posts.
I'm also seeing the Attempted to create a revision of a revision
when creating new posts.
/cc @diegoreymendez
I haven't been able to reproduce this exact issue (with the weird state of the post list and the first couple lines in the logs above).
I do see the line Attempted to create a revision of a revision
when editing a failed post, or when starting a new post on a site that isn't syncing properly, so that's an issue but may not be directly related to the other errors described here.
The Attempted to create a revision of a revision
message is appearing because we have some faulty logic somewhere. It's not dangerous per-se, as the code is smart enough not to create the second revision, but it is an alert due to faulty logic.
The reason is that revisions shouldn't be allowed to live outside of the editor. When it closes, the revision should die with it.
Edit: a crash being the only reasonable cause for a revision to exist outside of the editor. At least the only one I can think of.
@rachelmcr - Any recent reports resembling this issue? I haven't seen a crash like this in a while now and was wondering if we can close this one for the time being.
The message Attempted to create a revision of a revision
is still coming up in app logs in some support issues, but mainly I have seen that around issues where there is a syncing problem (e.g. the oAuth token is expired and the posts aren't syncing). I haven't seen any recent reports where it was related to a failed post, or where it included the assertion failure from the original report here.
18 months later… has anything changed here? Perhaps Aztec has improved things?
@nheagy - This isn't really Aztec related. This seems to be an issue with the post list / post synchronization code.
It is still important, though.
A user has reported experiencing this issue (and I've confirmed it via the app logs) as of October 2020.
You can now open failed posts and posts in the middle of the sync process. Implemented in the scope of pcdRpT-6vS-p2.
When tapping to edit a post in a failed state, the following was logged to the console:
I think the last line,
Attempted to create a revision of a revision
maybe is the root issue?cc @bummytime
UPDATE 06/2020:
Attempted to create a revision of a revision
HAS BEEN UPDATED TOPost is already a revision, no need to create a new one
and still appears when updating a post failed to upload