Skip to content
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

A fatal exception occurred. #31

Open
kalmolaskos opened this issue Feb 3, 2022 · 1 comment
Open

A fatal exception occurred. #31

kalmolaskos opened this issue Feb 3, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kalmolaskos
Copy link

Greetings!

I attempted to use the OPUS-CAT Tool but it seems that something is wrong with the file I have downloaded. Or then again I might be doing something wrong. Do you have any ideas on countering this issue?

opuscat

@TommiNieminen
Copy link
Collaborator

Hi,

This is related to the file database that OPUS-CAT uses to cache translated sentences (so that they can be generated in advance). For some reason, the database is in readonly state when OPUS-CAT is trying to edit it. This should normally be resolved by restarting the system, but if it reoccurs, something else is going on. It might be that the user permission setup on your system is somehow strange (the database is stored in your %localappdata% folder, and you should always have permissions for that).

You should be able to bypass the problem by disabling the database caching by editing the config file OpusCatMTEngine.exe.config (in the MT engine folder that you have unzipped). Search for this bit of code:

<setting name="CacheMtInDatabase" serializeAs="String">
               <value>True</value>

and change True to False:

<setting name="CacheMtInDatabase" serializeAs="String">
               <value>False</value>

I'll log this a bug, the caching should probably be disabled automatically in these cases.

@TommiNieminen TommiNieminen added the bug Something isn't working label Feb 9, 2022
@TommiNieminen TommiNieminen self-assigned this Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants