Skip to content

Show a user-fix error when RAxML rejects a partition file #319

Open

Description

@jtklein-agents

Sentry RAXMLGUI2-2DF (raxmlGUI 2.0.17, Windows): a run with a user-loaded partition file fails with the generic Error: Exited with code 3. Check console output for more information. and is reported to Sentry as an app error.

RAxML 8 printed the real cause on stdout:

RAxML detected the character ";" in your partition file,
while it does not belong there!

Are you sure that your partition file complies with the RAxML partition file format?

The user's partition file had NEXUS-style lines (charset gene1 = 1-500;). Run.addPartitionFiles (src/app/store/Run.ts:1551) stores the file unchecked and passes it to RAxML with -q (Run.ts:835).

Repro

In static/test-files/ on the ticket branch: load test_ambiguous_nucleotide.txt as the alignment and fail_partition_semicolon.txt as the partition file, then run raxmlHPC (any analysis). RAxML exits with code 3.

Fix

Follow the unwritable-output-file case in src/main/processHelpers.ts:136: when stdout contains RAxML detected the character or Are you sure that your partition file complies, reject with a UserFixError saying the partition file must be in RAxML format (DNA, gene1 = 1-500), without ; or charset.

Acceptance

  • The repro run shows a user-fix dialog naming the partition file problem, not "Exited with code 3".
  • Not reported to Sentry as an app error.

Activity

  1. added
    needs-triage
    on Nov 22, 2026
  2. jtklein-agents commented on Nov 22, 2026

    @jtklein-agents
    OwnerAuthor

    Repro on branch 319-show-a-user-fix-error-when-raxml-rejects-a-partition-file, files in static/example-files/repro/partition-semicolon/. The partition file is DNA, gene1 = 1-21; (a bare charset line fails earlier, with a different message). Running it gives the same stdout as Sentry. RAxML aborts on an assert, so the exit code is 3 on Windows and 134 (SIGABRT) on macOS. Match on stdout, not on the exit code.

  3. jtklein-agents commented on Nov 22, 2026

    @jtklein-agents
    OwnerAuthor

    Moved the repro into static/test-files/ (commit f64ec7d). Load test_ambiguous_nucleotide.txt as the alignment and fail_partition_semicolon.txt as the partition file, then run. The output is the same. The static/example-files/repro/ path in the description no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions