-
Notifications
You must be signed in to change notification settings - Fork 42
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
Memory error during "new Gtk.RGBA" #290
Comments
Thanks for the report, I had already seen a few of these errors but wasn't sure where they were coming from. I'll investigate what's going on. |
https://github.com/romgrk/node-gtk/issues/213 The error does not occur as a result of trying "G_SLICE=always-malloc", the solution in the above article. |
Got it. We can probably skip the issue by using |
Update on this, it seems that we had already migrated away from Line 186 in c3dc55d
This is bad news because it means the bug is upstream. After some debugging, it appears that GLib's slice allocator is choking at various points in this method, usually when handling the SlabInfo struct: https://github.com/GNOME/glib/blob/c0b339372cf3cf29cc8fee212a2debc41ea93cd2/glib/gslice.c#L1386 Here is one place where it aborts: https://github.com/GNOME/glib/blob/c0b339372cf3cf29cc8fee212a2debc41ea93cd2/glib/gslice.c#L1398 I'll see if I can get some feedback from GLib or I'll open an issue with them soon. |
When I run the code below, I get an error about 70000 iterations.
Output 1:
....
76352
76353
76354
76355
76356
76357
Segmentation fault
$
Output 2:
....
71441
71442
71443
71444
71445
71446
71447
71448
MEMORY-ERROR: [16117]: GSlice: assertion failed: sinfo->n_allocated > 0
Aborted
$
The text was updated successfully, but these errors were encountered: