To prevent the issue of weights not being calculated in Spine, you can try the following steps:
Check Bone and Mesh Configuration: Ensure that no bones are completely outside the mesh boundaries and that bones do not intersect. If bones cross each other, auto weights cannot be computed.
Adjust Vertices: Sometimes, moving vertices slightly can resolve the problem due to floating point precision issues. If a vertex is very close to an edge, it might be considered on the wrong side, causing Spine to think edges are crossing.
Manual Weight Adjustment: If auto weights fail, you can manually adjust the weights using the Weights tool. Select the bones and vertices, and use the Direct mode to set precise weight values.
Use the Smooth and Prune Tools: After setting initial weights, use the Smooth tool to average weights with neighboring vertices for smoother deformations. The Prune tool can remove unnecessary small weights, reducing the number of vertex transforms.
Update Spine: Ensure you are using the latest version of Spine, as updates may contain fixes for known issues with weight calculation.
If the problem persists, consider sharing your project file with Esoteric Software for further assistance.