Skip to content

0.8.1: outlines are kept on the face, not looked up by memory id - #4

Merged
juw12 merged 1 commit into
mainfrom
agent/outline-cache
Nov 23, 2026
Merged

juw12 merged 1 commit into
mainfrom
agent/outline-cache

Conversation

@juw12

@juw12 juw12 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

test_true_outline_rejects_bbox_only_overlap failed now and then (896 mm2 instead of 1200; Windows 3.10 once, Ubuntu 3.13 once on 23 Nov, passing when run again).

Cause: face_outline kept outlines in a module table keyed by (id(face.shape), part, face_id). Python gives the id of a freed object to a new one, so a face of a later model could be handed the outline of an earlier model's face with the same part and face numbers. In the web app, which loads one model after another in one process, that is a wrong contact area, not only a flaky test.

Fix: the outline is kept on the PlanarFace (outline, outline_built). A test loads a plate and a holed plate with the same part and face numbers eight times in a row and checks each area.

…(the outline cache was keyed by id()); the outline is kept on the face
@juw12
juw12 merged commit 8f0efa9 into main Nov 23, 2026
10 checks passed
@juw12
juw12 deleted the agent/outline-cache branch November 23, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant