The issue was that the `grease_pencil_foreach_id` did not walk the parent object pointers which meant they were pointing to garbage memory. The fix makes sure to walk all the parent pointers.
The issue was that the `grease_pencil_foreach_id` did not walk the parent object pointers which meant they were pointing to garbage memory. The fix makes sure to walk all the parent pointers.