Goaler444
Goaler444

Reputation: 2621

Can't Understand Glib Error

I am making use of the glib 2.0 framework. After some time, my C program outputs this error:

GLib-CRITICAL **: g_hash_table_foreach_remove_or_steal: assertion `version == hash_table->version' failed

Can anybody tell me what this means in general? Google hasnt really helped much. Thank you

Upvotes: 2

Views: 1313

Answers (1)

dandan78
dandan78

Reputation: 13854

A Google search with the text you provided produced:

This usually indicates that you did a g_hash_table_remove() (or g_hash_table_insert(), g_hash_table_replace() or similar) while iterating over the same hash table. I didn't spot where this could happen.

Taken from here.

Hopefully, you now have enough information to find the error in your code.

Upvotes: 7

Related Questions