-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Problem initializing aspell provider #385
Comments
I can't see how this can be a problem with the Enchant code per se, there's nothing going on here that isn't tested by the regular tests (in particular, creating an Aspell provider). I agree, it's a mystery how the type is set to 0; is it possible that the code is somehow mixing modules from different versions of Enchant? You don't have to worry about Vala, you can look at the generated C, which is fairly straightforward. In this case, setting |
I tried building KVIrc from source and running it. It detected my Enchant, and I have Aspell installed and configured for English. In the languages preferences, I can see all my Enchant dictionaries listed as expected. I don't really understand how to make spell-checking work, so maybe I'm not triggering the crash: when I press |
I can now confirm I've managed to put breakpoints in the right place, and the Aspell back-end initialises fine (along with all the rest). I am using Enchant 2.8.0, but there's no reason I can see why 2.7.3 should behave differently. |
So, we had confirmation from the user that everything works fine in normal conditions. Honestly i'm not eager to debug why our memory management fails with GObjects, so by now we are adding a workaround forcing the spellchecker module to be never unloaded from memory. This should avoid the problematic condition. Thank you for your help in trying to understand what was wrong here. Feel free to close the issue |
Sounds like a failure in finalization then, either in KVIrc or in libenchant, though the manifestation is still weird. I would suspect |
Hello, we are using libenchant to provide spellchecking support in KVIrc.
We recently received info about a crash related to a failure in initializing libenchant while using the aspell provider.
Our code is calling
new enchant::Broker();
to instantiate a new Broker and this leads to a crash with the following trace:I tried to have a look at the code, but i'm not fluent in Vala/glib and was not able to figure out why g_type_create_instance is created with type=0x0.
The text was updated successfully, but these errors were encountered: