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

[interfaces] Fix crash on Kodi exit caused by double freed AsyncCallbackMessage #16178

Merged
merged 1 commit into from May 26, 2019

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented May 20, 2019

This fixes a crash during Kodi shutdown. Crash is caused by a dangling python addon callback message while descructing the global instance which holds the callback messages:

Screenshot 2019-05-20 at 19 50 25

Screenshot 2019-05-20 at 19 51 13

My suggestion for a fix is not to instanciate a Ref in RetardedAsyncCallbackHandler::~RetardedAsyncCallbackHandler, but to use a raw pointer here.

@jimfcarroll by any chance, if you are around, is this fix correct and acceptable?

@ksooo ksooo added Type: Fix non-breaking change which fixes an issue Backport: Needed v19 Matrix labels May 20, 2019
@ksooo ksooo requested a review from jimfcarroll May 20, 2019 18:38
@ksooo
Copy link
Member Author

ksooo commented May 22, 2019

@MilhouseVH could you include this PR in your builds to get some feedback?

@MilhouseVH
Copy link
Contributor

Will do.

@ksooo
Copy link
Member Author

ksooo commented May 26, 2019

No negative feedback from Milhouse users. Let's merge this.

@ksooo ksooo merged commit d69497c into xbmc:master May 26, 2019
@ksooo ksooo deleted the fix-dangling-addon-callbcks-crash branch May 26, 2019 08:53
@ksooo ksooo added this to the Matrix 19.0-alpha 1 milestone May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants