Seems like the problem described in bug [#836] still persists (segments in team projects not getting saved properly). Luckily we've lost only one segment out of 350, so this really only happens during autosave (set to 60 mins).
At the same time my client stopped updating segments updated in other clients. They were still showing as unedited, but once I tabbed into them, they were translated (so the issue has been reversed for these). Unfortunately I don't have a log for these two instances though.
Although it's important to note that the other client suddenly stopped uploading (the local project was still saved). Switching between segments would always throw a null reference exception (obviously while trying to rebase):
15577: FINE: Rebase team sync
15577: Info: Rebase starten (TEAM_REBASE_START)
15577: FINE: Rebase and commit 'omegat/project_save.tmx'
15577: FINE: local file 'omegat/project_save.tmx' was changed
15577: Info: TMX-Datei C:\***\.repositories\prep\prepared2312054991325805128 wird gelesen (TMXR_INFO_READING_FILE)
15577: Info: Erstellt von: OmegaT (TMXR_INFO_CREATION_TOOL)
15577: Info: Version: OmegaT-4.1.0 (TMXR_INFO_CREATION_TOOL_VERSION)
15577: Info: Segmentierungsmethode: sentence (TMXR_INFO_SEG_TYPE)
15577: Info: Quellsprache: EN-US (TMXR_INFO_SOURCE_LANG)
15577: Info: Lesen der TMX-Datei vollstõndig (TMXR_INFO_READING_COMPLETE)
15577: FINE: remote file 'omegat/project_save.tmx' wasn't changed
15577: FINE: only local changes - just use local file 'omegat/project_save.tmx'
15577: Info: TMX-Datei C:\***\omegat\project_save.tmx wird gelesen (TMXR_INFO_READING_FILE)
15577: Info: Erstellt von: OmegaT (TMXR_INFO_CREATION_TOOL)
15577: Info: Version: OmegaT-4.1.0 (TMXR_INFO_CREATION_TOOL_VERSION)
15577: Info: Segmentierungsmethode: sentence (TMXR_INFO_SEG_TYPE)
15577: Info: Quellsprache: EN-US (TMXR_INFO_SOURCE_LANG)
15577: Info: Lesen der TMX-Datei vollstõndig (TMXR_INFO_READING_COMPLETE)
15577: FINE: Rebase and commit 'glossary/glossary.txt'
15577: FINE: local file 'glossary/glossary.txt' was changed
15577: FINE: remote file 'glossary/glossary.txt' was changed
15577: FINE: rebase and save 'glossary/glossary.txt'
15577: Fehler: Fehler beim Speichern der Projektdatei! (CT_ERROR_SAVING_PROJ)
15577: Fehler: java.lang.NullPointerException
15577: Fehler: at java.util.Objects.requireNonNull(Unknown Source)
15577: Fehler: at java.util.ArrayList.removeAll(Unknown Source)
15577: Fehler: at org.omegat.core.data.RealProject$2.rebaseAndSave(RealProject.java:975)
15577: Fehler: at org.omegat.core.team2.RebaseAndCommit.rebaseAndCommit(RebaseAndCommit.java:167)
15577: Fehler: at org.omegat.core.data.RealProject.rebaseAndCommitProject(RealProject.java:949)
15577: Fehler: at org.omegat.core.data.RealProject.teamSync(RealProject.java:815)
15577: Fehler: at org.omegat.core.Core.executeExclusively(Core.java:373)
15577: Fehler: at org.omegat.gui.editor.EditorController.commitAndDeactivate(EditorController.java:1264)
15577: Fehler: at org.omegat.gui.editor.EditorController.commitAndDeactivate(EditorController.java:1122)
15577: Fehler: at org.omegat.gui.editor.EditorController.iterateToEntry(EditorController.java:1316)
15577: Fehler: at org.omegat.gui.editor.EditorController.anyEntry(EditorController.java:1375)
15577: Fehler: at org.omegat.gui.editor.EditorController.nextEntry(EditorController.java:1379)
15577: Fehler: at org.omegat.gui.editor.EditorTextArea3.processKeyEvent(EditorTextArea3.java:311)
15577: Fehler: at java.awt.Component.processEvent(Unknown Source)
15577: Fehler: at java.awt.Container.processEvent(Unknown Source)
15577: Fehler: at java.awt.Component.dispatchEventImpl(Unknown Source)
15577: Fehler: at java.awt.Container.dispatchEventImpl(Unknown Source)
15577: Fehler: at java.awt.Component.dispatchEvent(Unknown Source)
15577: Fehler: at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
15577: Fehler: at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
15577: Fehler: at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
15577: Fehler: at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
15577: Fehler: at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
15577: Fehler: at java.awt.Component.dispatchEventImpl(Unknown Source)
15577: Fehler: at java.awt.Container.dispatchEventImpl(Unknown Source)
15577: Fehler: at java.awt.Window.dispatchEventImpl(Unknown Source)
15577: Fehler: at java.awt.Component.dispatchEvent(Unknown Source)
15577: Fehler: at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
15577: Fehler: at java.awt.EventQueue.access$500(Unknown Source)
15577: Fehler: at java.awt.EventQueue$3.run(Unknown Source)
15577: Fehler: at java.awt.EventQueue$3.run(Unknown Source)
15577: Fehler: at java.security.AccessController.doPrivileged(Native Method)
15577: Fehler: at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
15577: Fehler: at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
15577: Fehler: at java.awt.EventQueue$4.run(Unknown Source)
15577: Fehler: at java.awt.EventQueue$4.run(Unknown Source)
15577: Fehler: at java.security.AccessController.doPrivileged(Native Method)
15577: Fehler: at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
15577: Fehler: at java.awt.EventQueue.dispatchEvent(Unknown Source)
15577: Fehler: at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
15577: Fehler: at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
15577: Fehler: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
15577: Fehler: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
15577: Fehler: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
15577: Fehler: at java.awt.EventDispatchThread.run(Unknown Source)
15577: Info: Ereignis: Projektwechsel - "MODIFIED" (LOG_INFO_EVENT_PROJECT_CHANGE)
15577: Info: Ereignis: Neuer Eintrag aktiviert (LOG_INFO_EVENT_ENTRY_ACTIVATED)
15577: FINER: Time for find matches: 205
I had to manually check in the newer project, otherwise the changes would have been lost on reload (not sure why; they were discarded and then redownloaded since I've checked them in from my machine).
I also noticed that despite having downloaded r9510 (and an older build from last week), both still identify themselves as r9418 in the logs:
16829: Info: OmegaT-4.0.1_1_r9418 (Fri Dec 23 12:37:08 CET 2016) Locale de_DE
The downloaded version is the non-JRE version, launched through the batch file (with all old files being removed beforehand). Timestamps inside the jar file are up to date (i.e. earlier today, matching the ci page).
Diff:
Related
Bugs:
#836Can you still reproduce it?
Didier
I just got report about 15 segments lost in our pt_BR L10N project. OmegaT 4.1.2_1 is used by all localisers.
Can you check the local logs to try to understand what happened?
Didier
Will try once we get the next bigger file for the project.
Tracked an instance of this error. Sending the information to Didier.
Thank you for the information. I'm not sure it's directly related (i.e., you do have lost translations, but there isn't similar errors in the log).
Didier
I faced this erorr again today. No errors in the log. But I noticed this issue: https://yadi.sk/i/lztDNX-83RvAMy
Are the revision numbers (in the file names) and the timestamp of the files related to the recent issue?
I'm asking, because I do have these files left from time to time, but, in my case, it's not related to loss of translations.
Didier
They're always there for us, even if the issue doesn't appear. Same for duplicates in the glossary sub directory. From my experience, edits are still only lost if you edit something while an automatic save happens. Therefore we've set auto saves to 60 minutes and we're no longer losing segments (at least not at an excessive rate), but we still get far more leftover files than lost segments.
For reproduction: If possible, try throttling your upload so you can edit a few segments while auto-saving is in progress.
I don't think so.
[EDIT] not the same issue, but not deleting my post as it might delete the replies that followed.
Same issue here and I was wondering if it might have to do with the TMX merging operation?
I never see the window in which you're asked to pick translations when there are differences between segments in the local and remote project_save.tmx.
I'm using Omegat 4.1.3_2 without JRE on Windows. I also get lots of "tmx#oldbased" files
Last edit: Damien Rembert 2018-03-23
As far as I know, this window is only supposed to appear if there is a real conflict: i.e., two translastors have translated the same segment differently during the last save period.
Didier
Exactly. It's not really related to conflicts (whether they appear or not). From my observations the actual problem is OmegaT will simply ignore all changes to segments while uploading changes. This is a non-issue and possibly even almost impossible to track with fast internet, but if you're stuck at less than 1 mb/s upstream and the translation memory for the current project is reasonably sized, you'll potentially lose notable amounts of work, especially if you're running the default 3 minutes autosave window.
Due to this we basically disabled auto-saving by setting it to an hour, which is sad but the only realistic way to actually keep working with OmegaT, even though it means we're losing the ability to collaborate in "real time".
So, based on your experience, the lost segments are lost when typing during the upload?
Didier
If I edit something while saving/uploading is in progress, chances are high I'm losing those segments, correct. We haven't lost a single segment in 20 or 30k words if we're not using auto-saving and instead save while doing something else or taking a break.
How long does the save/upload process take for you?
Didier
Last edit: Didier Briel 2018-03-23
Hard to tell, can easily be a minute or two due to crappy upstream, but it even happens for my co-worker who's got like 10 mpbs up but a slower cpu, so hard to tell at which point something is lost.
Would it be possible to separate local saving and git/SVN?
Theoritically, yes.
But I feel it would be a bit of a pity to invest time and energy in that instead of solving the issue.
Didier
Would it be possible to measure the time it takes to save/upload and then notify the user in case this is a significant portion of the auto save intervall? While this wouldn't fix the issue, it might be helpful because even if you're not losing segments, usage sometimes might feel rather sluggish while saving.