-
Notifications
You must be signed in to change notification settings - Fork 6
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
Crash while loading BHFST file #16
Comments
I'm the reporter; maybe this will subscribe me? |
The crash is happening because parsing the path fails, which is rather strange. It's very probably a bug in the foreign-function interface to DivvunSpell. What path is being passed from the Java/Kotlin side of things? |
Test: can @nlhowell see this answer? |
Can you tell me how to figure this out? This is created from a kbdgen project, so I don't interact much with the Java side |
Here's the line from the kbdgen build: [2020-05-07T11:50:56Z INFO kbdgen.gen.android] Adding 'ddo.bhfst' to 'app/src/main/assets/dicts'… |
And grepping the giella-ime output from kbdgen for bhfst, I find: ./app/build/intermediates/incremental/mergeDebugAssets/merger.xml: |
I'm%20using%20an%20LG%20G6%20(h870ds).%0A%0AAre%20.bhfst%20spellers%20working%20for%20you%3F%20Can%20you%20provide%20an%20APK%20with%20a%20working%0Abhfst%20speller%3F%20If%20it%20was%20generated%20from%20kbdgen%2C%20can%20you%20provide%20a%20working%0Akbdgen%20bundle%3F%20If%20you%20think%20it's%20my%20device%2C%20I%20would%20be%20happy%20to%20test%20these%20to%0Asee%20if%20we%20can%20pin%20down%20the%20problem.%0A%0AI%20see%20there%20are%20some%20new%20commits%20on%20%60develop%60%3B%20I'll%20try%20testing%20again...%0A%0A%0A%0A |
I'm using an LG G6 (h870ds). Are .bhfst spellers working for you? Can you provide an APK with a working I see there are some new commits on Oops, double-encoded; sorry. |
Was just checking a theory that it might be a 32-bit vs 64-bit issue, but this phone is 64-bit so probably not that. I'll be looking into this issue tomorrow. |
I haven't forgotten about this, other priorities had taken hold. I will be looking at this ~Wednesday. |
No worries! Thanks for keeping me informed :) |
I have found some potential issues with string handling of errors in the DivvunSpell bindings for Android (the length was never added as part of the callback, which might have caused some very strange side effects). I am unsure if this is related to your issue, but I'll have fixed that one soon. |
Well, I tried a couple of things: (3) Updating to the latest version of kbdgen It seems bhfst speller support was removed in Cheers, and thanks for your work on this, |
Any progress? Is there anything I can do to help? Cheers, |
@nlhowell unfortunately, not yet, and today is the midsummer public holiday in Sweden so I'm not even working. 😄 What I can tell you is, next week embedding BHFST files without needing to use our CI services will return to kbdgen. I have to debug some other Android issues at the same time, so I hope that the issue you're having will become evident. |
OK, no problem! Thanks for the quick response, and have a pleasant holiday! |
Any update on this? Cheers, |
@nlhowell oh wow, sorry for dropping the ball on this yet again. I'm on vacation now, but I'm re-adding the ability to add BHFST files to the Android build to kbdgen right now. (Ironically, I actually have time now, heh). I worry that changes to the Android codebase might make it ignore local BHFST files however, so that might be a bit of an issue, but one thing at a time I suppose. |
Hmm, indeed, the current version of the Android keyboard effectively requires that the BHFST files is a Pahkat package found in a specific directory within the app's data directory. (I have not been working on either of these codebases directly lately, so this is actually a bit of a surprise to me.) I will have a quick look tomorrow, as it shouldn't be hard to revert some of the logic and make this work for you. :) Also I mean tomorrow this time, nobody else is around to shift my priorities hahaha |
I would note @ftyers, that it might be worth discussing a support contract in the future if priority support becomes a need. As much as I've tried to make this a priority, without funding, resource availability is a bit of a challenge. If you're satisfied with the delays so far, no problem, otherwise, shoot me an email and we can discuss. 😄 |
@ftyers fair enough. I was under the impression that this was related to a project at Indiana University that you are supervising or otherwise responsible for. Sorry if I got my wires crossed. 🙂 |
I have confirmed the linked ddo.bhfst file works with the most recent develop branch of this repository and the develop branch of kbdgen. Try it out. |
The bhfst works with divvunspell:
Here is the bhfst file base-64 encoded:
ddo.bhfst.b64.txt
You can decode it using :
The text was updated successfully, but these errors were encountered: