Skip to content

Don't crash when closing Mudlet (PTBs only)#4723

Merged
vadi2 merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_preventCrashesOnExitIn_TTimerUnit_destructor
Jan 31, 2021
Merged

Don't crash when closing Mudlet (PTBs only)#4723
vadi2 merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_preventCrashesOnExitIn_TTimerUnit_destructor

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Jan 31, 2021

This should close #4682.

Signed-off-by: Stephen Lyons slysven@virginmedia.com

This should close Mudlet#4682.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven requested a review from a team as a code owner January 31, 2021 00:20
@SlySven SlySven requested a review from a team January 31, 2021 00:20
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jan 31, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@Delwing
Copy link
Copy Markdown
Contributor

Delwing commented Jan 31, 2021

Just checked. fixes issue.

@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Jan 31, 2021

@zhenzh try memory profiling against this as well. We found another thing that wasn't being deleted when it should have been.

@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Jan 31, 2021

Merging this one in to get rid of the crash!

@vadi2 vadi2 changed the title BugFix: prevent crashes on exit in TTimerUnit destructor Don't crash when closing Mudlet (PTBs only) Jan 31, 2021
@vadi2 vadi2 merged commit 0fa38ae into Mudlet:development Jan 31, 2021
@SlySven SlySven deleted the BugFix_preventCrashesOnExitIn_TTimerUnit_destructor branch January 31, 2021 17:57
@SlySven
Copy link
Copy Markdown
Member Author

SlySven commented Jan 31, 2021

@zhenzh try memory profiling against this as well. We found another thing that wasn't being deleted when it should have been.

Not entirely true - it was being deleted - but a pointer that pointed at it was not - so when the container class tried to clean it up - it wasn't there to be cleaned up. Hence the crash.

Chris7 pushed a commit to Chris7/Mudlet that referenced this pull request Jan 2, 2022
This should close Mudlet#4682.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
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.

Crash in PTB closing profile

3 participants