grid entities - segfault when iterating #72

Open
opened 2025-03-03 17:34:57 +00:00 by john · 0 comments
Owner

image

>>> grid
<Grid (x=10, y=10, w=800, h=600, center=(160, 112), zoom=2)>
>>> grid.entities
<UICollection (15 child objects)>
>>> print([e.pos for e in grid.entities])
Segmentation fault (core dumped)

expected behavior: grid.entities should cooperate with the iterator (UIEntityCollectionIter?) to allow ... for e in grid.entities to function.

![image](/attachments/f7ca4c69-f8ad-40c5-8f14-beadcac435d3) ``` >>> grid <Grid (x=10, y=10, w=800, h=600, center=(160, 112), zoom=2)> >>> grid.entities <UICollection (15 child objects)> >>> print([e.pos for e in grid.entities]) Segmentation fault (core dumped) ``` expected behavior: `grid.entities` should cooperate with the iterator (`UIEntityCollectionIter`?) to allow `... for e in grid.entities` to function.
john added the
Bugfix
label 2025-03-03 17:34:57 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#72
No description provided.