# \[Iris\] Crash for SubObject with only COND\_InitialOnly properties 

**URL:** <https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339>\
**Category:** Multiplayer & Networking\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [May 22, 2025, 1:49pm UTC](https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339 "2025-05-22T13:49:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 22, 2025, 1:49pm UTC](https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339/1 "2025-05-22T13:49:13Z")

</div>

Hello,

we’ve run into an issue with SubObjects which only contain “InitialOnly” properties.

When creating a SubObject which only contains replicating properties with the condition COND\_InitialOnly, we get a crash in FNetBitStreamWriter::InitBytes and when starting PIE the below check triggers.

`UE_NETBITSTREAMWRITER_CHECKF((ByteCount >= 4) && (ByteCount & 3) == 0, TEXT("Buffer capacity needs to be a multiple of 4 and at least 4."));`We can make a change in FReplicationInstanceOperationsInternal::QuantizeObjectStateData to also check “Object.Protocol-\>ChangeMaskBitCount \> 0”, and this seems to fix the crash. But we’re not sure if this is the correct way to fix the issue?

Additionally, objects which only contain COND\_InitialOnly properties should ideally not be considered for poll (in UObjectReplicationBridge::BuildPollList they still get marked for poll when the owner is marked for poll).

Thanks for your time,

Kind regards,

Céleste

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 22, 2025, 1:49pm UTC](https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339/2 "2025-05-22T13:49:17Z")

</div>

**Steps to Reproduce**  
Create a replicating SubObject with only COND\_InitialOnly properties. Then mark a property dirty on one of the properties after object creation.

---

<div class="post-metadata">

**Author:** ![akoumandarakis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/akoumandarakis/32/1087813_2.png) [@akoumandarakis](https://forums.unrealengine.com/u/akoumandarakis)\
**Post date:** [May 22, 2025, 5:46pm UTC](https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339/3 "2025-05-22T17:46:00Z")

</div>

Hi,

Thank you for the report and the potential fix!

This is a known issue with Iris, although with other bug fixes taking priority, I can’t provide an estimate as to when this may be fixed. In the meanwhile, I’ve included the information you’ve provided here on our internal tracker for the issue.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE%5C-189391)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Thanks,

Alex

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 23, 2025, 7:13am UTC](https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339/4 "2025-05-23T07:13:48Z")

</div>

Hello Alex,

Thanks for that! But what about the issue where objects which only have COND\_InitialOnly properties are still being polled? Is that intentional, or is that also a bug?

Kind regards,

Céleste

---

<div class="post-metadata">

**Author:** ![akoumandarakis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/akoumandarakis/32/1087813_2.png) [@akoumandarakis](https://forums.unrealengine.com/u/akoumandarakis)\
**Post date:** [May 23, 2025, 4:07pm UTC](https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339/5 "2025-05-23T16:07:02Z")

</div>

Hi,

Apologies for not addressing this in my first reply. I have been able to confirm that FObjectPoller::PushModelPollObject will be called for the subobject, which does seem unexpected.

In cases where a replication condition should apply to the whole object, I believe it is recommended to set this condition when adding it to the registered subobjects list:

`AddReplicatedSubObject(MyTestSubobject, COND_InitialOnly);`I tested this out, and I was still able to observe the initial-only object being polled on each update. Despite this polling, I also found that a subobject with this condition doesn’t appear to be replicated to the client at all.

Given that a COND\_InitialOnly subobject will replicate as expected in the existing replication system, I’ve opened a new issue for this, UE-289553, which should be visible in the public tracker in a day or so. On that issue, I’ve also brought up how the subobject will be constantly polled.

Thanks,

Alex

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [November 3, 2026, 9:21am UTC](https://forums.unrealengine.com/t/iris-crash-for-subobject-with-only-cond-initialonly-properties/2570339/6 "2026-11-03T09:21:04Z")

</div>

an object with only initial only props still enters the poll list when the owner dirties, then quantize sees an empty change mask and the bit writer asserts on a zero sized buffer. the crash is in the empty state path rather than in the property data.

as a stopgap, register the subobject with COND\_InitialOnly on the registered list and avoid dirtying its props after creation, or add one always replicated sentinel bool so the mask is never empty. the long term fix is the engine side guard on ChangeMaskBitCount that was proposed in the thread.

you can also look at Iris Readiness Kit, an Iris replication plugin that flags initial only subobjects that crash or poll needlessly under Iris before activation: [Iris Readiness Kit — Audit Your Project Before Enabling Iris Replication | Fab](https://www.fab.com/listings/867dcb9a-60fd-4044-a4fe-aa89a737ca4a) there’s a shorts playlist on iris filtering basics too: [https://www.youtube.com/playlist?list=PLWrCzz951TwA](https://www.youtube.com/playlist?list=PLWrCzz951TwA)
