Summary: | TM doesn't work due to: requested database does not belong to the calling thread | ||
---|---|---|---|
Product: | [Applications] lokalize | Reporter: | Robert Kratky <kratky> |
Component: | translation memory | Assignee: | Simon Depiets <sdepiets> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | shafff, valtermura |
Priority: | NOR | ||
Version: | 19.12 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/sdk/lokalize/commit/8ce6b3d89598b6bc7570d11e7063b08394b3c0c9 | Version Fixed In: |
Description
Robert Kratky
2020-01-18 17:18:39 UTC
I have a similar problem: I have 3 TMs created some years ago but now they neither auto-update when I translate, nor update when I try to add translated files manually. Operating System: KDE neon Testing Edition KDE Plasma Version: 5.18.4 KDE Frameworks Version: 5.70.0 Qt Version: 5.14.2 Kernel Version: 5.3.0-51-generic OS Type: 64-bit I've seen this error in the past but I've never seen any side effects, would you be able to post your TM somewhere so I can have a look? It's in ~/.local/share/lokalize After that, would it be possible for you to regenerate your TM and see if there's still an issue? (In reply to Simon Depiets from comment #2) > I've seen this error in the past but I've never seen any side effects, would > you be able to post your TM somewhere so I can have a look? It's in > ~/.local/share/lokalize > After that, would it be possible for you to regenerate your TM and see if > there's still an issue? Hi, for me it's currently solved, using these steps: - close the project with the TM not working - delete the TM from ~/.local/share/lokalize - reopen the project and open file already translated and file to translate Now the TM adds and suggests correctly, and the pairs' count increases normally. Git commit 8ce6b3d89598b6bc7570d11e7063b08394b3c0c9 by Simon Depiets. Committed on 14/06/2020 at 03:16. Pushed by sdepiets into branch 'master'. Use thread specific names for connection Names There seems to have been two issues with TM connections. The first was that the TM connection was closed on project change (while they are actually all opened for stats purposes). The second was that the connection names where not thread specific, which could cause issues, and it will now be the case. Related: bug 422251 M +4 -2 src/project/project.cpp M +41 -27 src/tm/jobs.cpp https://invent.kde.org/sdk/lokalize/commit/8ce6b3d89598b6bc7570d11e7063b08394b3c0c9 I have made some changes in the handling of TM connections, could you build from master and give it a try ? |