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

Garbage Collection frees needed objects #82

Closed
mjakeman opened this issue Oct 23, 2020 · 1 comment · Fixed by #106 or #238
Closed

Garbage Collection frees needed objects #82

mjakeman opened this issue Oct 23, 2020 · 1 comment · Fixed by #106 or #238
Assignees
Labels
bug Something isn't working

Comments

@mjakeman
Copy link
Member

We have several instances where delegates and callbacks get garbage collected when the computer is low on RAM. A typical error message looks something like this:

Process terminated. A callback was made on a garbage collected delegate of type 'GObject!GObject.WeakNotify::Invoke'.
   at Gtk.Global.main()
   at Gtk.Global.main()
   at Gtk.Global.Main()
   at GtkDemo.Program.Main(System.String[])

Once #52 is merged, I will try look into this along with some other changes to lifecycle code (e.g. ToggleRefs), so not very pressing at the moment.

@mjakeman mjakeman added the bug Something isn't working label Oct 23, 2020
@mjakeman mjakeman self-assigned this Oct 23, 2020
@mjakeman mjakeman mentioned this issue Dec 18, 2020
8 tasks
@mjakeman
Copy link
Member Author

Reopening as this is still present in develop and in #127.

Let's try and address this as part of #119.

@mjakeman mjakeman reopened this Dec 26, 2020
@mjakeman mjakeman mentioned this issue Dec 26, 2020
@badcel badcel changed the title Garbage Collection Garbage Collection frees needed objects Jan 16, 2021
@mjakeman mjakeman linked a pull request Feb 18, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant