Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix command-line export looping infinitely #11875

Merged
merged 1 commit into from
Oct 11, 2017

Conversation

endragor
Copy link
Contributor

@endragor endragor commented Oct 6, 2017

EditorProgress calls Main::iteration which calls MessageQueue::flush
which may result in _fs_changed being called again. This fixes the loop
Godot enters in such case.

Fixes #11189

EditorProgress calls Main::iteration which calls MessageQueue::flush
which may result in _fs_changed being called again. This fixes the loop
Godot enters in such case.

Fixes godotengine#11189
@endragor
Copy link
Contributor Author

endragor commented Oct 6, 2017

There is also a problem with MessageQueue - it may send same notifications multiple times in case MessageQueue::flush is called from a notification handler (which is the case whenever EditorProgress is used).

The comment here implies that MessageQueue::flush is supposed to be reentrant, but read_pos is a local variable, so advancing it doesn't really change anything. Is read_pos supposed to be a field? @reduz

@groud groud added this to the 3.0 milestone Oct 6, 2017
@reduz
Copy link
Member

reduz commented Oct 9, 2017

this one makes sense to me

@akien-mga akien-mga merged commit 490722c into godotengine:master Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translation csv reimport causes segfault when run from command line
4 participants