I just installed presage from the Windows installer package and when I run the demo applications in MINGW64 it is throwing error messages. It looks like is expecting a path that's different than the default path in the installer. It also did not add a start menu folder, and appears to be missing registry entries. Furthermore, when I tried to use the DLL Visual Studio gives a warning message about not being compiled in MSIL. It seems like the installer is not using the best settings?
Error messages are below:
$ ./presage_demo_text.exe
Presage Textual Demo
This program is intended as a demonstration of Presage ONLY.
The Presage project aims to provide an intelligent predictive text entry platform.
Its intent is NOT to provide a predictive text entry user interface.
Think of Presage as the predictive backend that sits behind a shiny user interface and does all the predictive heavy lifting.
[DefaultAbbreviationExpansionPredictor] Could not open abbreviations file: c:\presage_x64_install\share\presage/abbreviations_en.txt
[DatabaseConnector] Unable to create/open database: c:\presage_x64_install\share\presage/database_en.db
[PredictorRegistry] unable to open database file
[PredictorRegistry] Predictor DefaultSmoothedNgramPredictor failed to initialize.
[PredictorRegistry] Unable to initialize predictor: DefaultSmoothedNgramPredictor
terminate called after throwing an instance of 'PredictorRegistry::PredictorRegistryException'
what(): Unable to initialize predictor: DefaultSmoothedNgramPredictor
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
$ ./presage_csharp_demo.exe
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at presage.Presage.read_presage_registy_key()
at presage.Presage.set_presage_dll_directory()
at presage.Presage..ctor(callback_get_past_stream_t get_past_stream_cb, callback_get_future_stream_t get_future_stream_cb, String config)
at presage_csharp_demo.presage_csharp_demo.Main()
Segmentation fault
Severity Code Description Project File Line Suppression State
Warning There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "presage.net", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
Hi Phylaxer,
Thanks for this bug report.
It's been a while since you originally reported this bug (apologies for not getting back sooner). I can no longer reproduce the issues you describe with the latest Windows x64 installer. I believe the reported issues are fixed in the latest Windows 64-bit release installer, which is available here: https://sourceforge.net/projects/presage/files/presage/0.9.2%7Ebeta/win64/presage-0.9.2%7Ebeta20150909-64bit-setup.exe/download
I'm marking this bug as closed-fixed. Please reopen if you still have any of the problems you described above with the latest Windows x64 installer.
Thank you,
- Matteo