Menu

#1312 CORE_SRX_ERROR_LOADING_SEGMENTATION_CONFIGUnexpected

6.0.2
open
nobody
None
5
23 hours ago
2026-01-02
No

I'm running OmegaT-6.0.2_0_dda2c9e, and I've got a project with project specific segmentation rules. If I open OmegaT the first time, there's an CORE_SRX_ERROR_LOADING_SEGMENTATION_CONFIGUnexpected error. But the project specific segmentation rules work.

If I then close OmegaT, and restart it, it restarts without those project specific segmentation rules.

Attached also the logs of a third subsequent restart.

This of course makes 6.0.2 unusuable for projects with project specific segmentation rules... So hopefully this is an easy fix? ;)

Attached also the "correct" segmentation.conf, which I luckily managed to retreive from the Google Drive versioning. (I made these segmentation rules when I was brand new to regex, so I assume they're not optimal, but I don't think that would be the issue?)

4 Attachments

Discussion

  • Erik De Boeck

    Erik De Boeck - 2026-01-26

    Any takers? :)

     
    • Hiroshi Miura

      Hiroshi Miura - 2026-01-27

      OmegaT 6.0.2 and 6.1.0 drop supporting segmentation.conf because of highest dangerous security issue.

      OmegaT has a converter that is com from DGT OmegaT project, and it may be incomplete.

      You can convert your custom rule into SRX using the migrator
      https://github.com/omegat-org/segmentation-migrator

      It has a security hole because it uses legacy logic to read a legacy segmentation.conf, but it should read well and write segmentation.srx that should recognized by OmegaT.

       
      • Erik De Boeck

        Erik De Boeck - 2026-01-27

        I'd love to, but I'm having trouble finding the mentioned omegat-segmentation-migrator-fat.jar or omegat-segmentation-migrator.zip files...

         
  • Hiroshi Miura

    Hiroshi Miura - 2026-01-27

    @t_cordonnier Please check the XSLT you contributed to convert into SRX.

     
  • Hiroshi Miura

    Hiroshi Miura - 2026-01-27

    The tool is not released yet. I have convert your segmentation.conf with the tool. If it works, I will proceed the project.

     
    • Erik De Boeck

      Erik De Boeck - 2026-01-28

      Alas... It doesn't throw any errors or exceptions, but it doesn't work either...

      For fun I randomly added gibberish scattered around segmentation.srx (inside tags, before the first tag, in the final tag), and there are no complaints. So it looks like nothing is actually done with segmentation.srx. It isn't read.

      Could that be?

      (I'm using OmegaT-6.0.2_0_768deab.)

       

      Last edit: Erik De Boeck 2026-01-28
      • Erik De Boeck

        Erik De Boeck - 23 hours ago

        I came up with a quick and dirty fix: I wrote a .ps1 file that copies the segmentation.conf file into the omegat\ directory every time before starting OmegaT:

        Copy-Item `
          "C:\Users\Erik\Google Drive\Scheidsrechteren\Vertalingen\OmegaT\segmentation.conf" `
          "C:\Users\Erik\Google Drive\Scheidsrechteren\Vertalingen\OmegaT\IFAF Engels-Nederlands\omegat\" `
          -Force
        java -jar "C:\PortbleApps\OmegaT\OmegaT_6.0.2_Without_JRE\OmegaT.jar"
        

        But that doesn't solve the issue, obviously.

         

        Last edit: Erik De Boeck 23 hours ago

Log in to post a comment.