Skip to content

Crash when deleting character (incorrect record of number of characters) #128

@weevil-see

Description

@weevil-see

Hard facts:
Mesquite version 4.01 (build 1092) 9 July 2025
Running under Java 21.0.8; virtual machine by Arch Linux on Linux 6.12.48-1-MANJARO (architecture: amd64)

While working on a morphological matrix, I tried to color characters by assigning groups. Probably (!) I tried to delete a character. Suddenly a window opened announcing a crash (I forgot to screenshot that).
I dismissed the window and tried to save the file as a new file ("Basiprionotini.nex.2025_08_22.bak" in the log). The process took forever, so I had to restart my computer eventually (Mesquite wouldn't close otherwise). The GUI was not responsive as well, and scrolling through the matrix very slow with graphical glitches. I made a screenshot (graphical glitches not visible in the screenshot):
Image

Log file:
Mesquite_Log_(Previous#3).txt
The file I tried to save ("Basiprionotini.nex.2025_08_22.bak" in the log):
Basiprionotini2025_08_22.txt
I am not sure if the file is corrupted or not. Apparently it was saved successfully even though the process was terminated. At least it opens in Mesquite.
I then tried to delete a character to see if it will reproduce the crash. I think it did:
Deleting the character from the menu (marked in red):
Image
Deleting the character is producing the crash:
Image
I clicked "report crash and continue", apparently that worked:
Image

This is a screenshot from the nexus file. I think what caused the problem is that the number of characters NCHAR and the actual number of characters do not match, for whatever reason.
Image

Question: Can I safely adjust NCHAR to match the number of existing characters, or would the file then still be corrupted as the Numbers of the characters are not continuous from 1 to 31?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions