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

[PluginDirectory] - ensure that Abort of ScriptObserver waits for thread exit - fix crash&burn #15204

Merged
merged 1 commit into from Jan 7, 2019

Conversation

Memphiz
Copy link
Member

@Memphiz Memphiz commented Jan 5, 2019

This prevents bad access of already destroyed event object during a race condition.

Once of the Mac OS users was hit by that crash in a really reproducible manner. He also confirmed the fix.
Thx to @FernetMenta for the finding of the root cause.

This crash hits all platforms and might have happened whenever a plugin listing is opened or a movie is played via the plugin:// uri scheme

…ead exit to prevent bad access of already destroyed event object
@Memphiz Memphiz requested a review from fritsch January 5, 2019 21:36
@Memphiz Memphiz changed the title [PluginDirectory] - ensure that Abort of ScriptObserver waits for thread exit [PluginDirectory] - ensure that Abort of ScriptObserver waits for thread exit - fix crash&burn Jan 5, 2019
@yol
Copy link
Member

yol commented Jan 6, 2019

@Memphiz just a nit: as far as I am aware we usually don't add platform labels if something affects all platforms

Change itself looks good to me :-) also thanks @FernetMenta!

@yol yol added this to the Leia 18.0-rc5 milestone Jan 6, 2019
@MartijnKaijser MartijnKaijser merged commit 4abe349 into xbmc:master Jan 7, 2019
MartijnKaijser added a commit to MartijnKaijser/xbmc that referenced this pull request Jan 22, 2019
[PluginDirectory] - ensure that Abort of ScriptObserver waits for thread exit - fix crash&burn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants