# Bug when duplicating a Verse device containing an array of device references

**URL:** <https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054>\
**Category:** Issues and Bug Reporting\
**Tags:** copy, reference, bug, serialization, paste, unreal-editor-for-fortnite, fortnite-creative, device, Array, fixed, UEFN, fortnite, verse\
**Created:** [September 22, 2025, 9:35pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054 "2025-09-22T21:35:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbarnoin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jbarnoin](https://forums.unrealengine.com/u/jbarnoin)\
**Post date:** [September 22, 2025, 9:35pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/1 "2025-09-22T21:35:46Z")

</div>

### Summary

When a Verse device that contains an array of device references is duplicated, the resulting copy does not reference the devices correctly.

It seems to result in hybrid references that refer to the correct transform, but the rest of the Actor from the wrong device, associated with one of the other array elements.

This occurs even if the array indirectly contains the device references, such as in an array of structs or classes that themselves contain the device reference.

We think it may have started with v37.00 due to some issues we’ve observed, but the repro steps below were only tested in v37.30.

I’ve noted some issues that may be related have been reported but I thought detailed repro steps could help get this fixed.

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Verse

### Steps to Reproduce

From a blank map, create a Verse file `ArrayReferencer.verse` with the following code:

```verse
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

Msg<localizes>(s:string) : message = "{s}"

ArrayReferencer := class(creative_device) :
    @editable var Buttons <private> : []button_device = array{}

    OnBegin<override>()<suspends> : void =
        for (ButtonIndex->Button : Buttons):
            Init(ButtonIndex, Button)

    Init <public> (ButtonIndex: int, Button: button_device) : void =
        ButtonVal := Round[Pow(2.0, (ButtonIndex+1)*1.0)] or 0
        OldVal := Button.GetMaxTriggerCount()
        NewVal := OldVal + ButtonVal
        Button.SetMaxTriggerCount(NewVal)
        Print("Init Button {ButtonIndex+1}. OldVal: {OldVal} + Val: {ButtonVal} => NewVal: {NewVal}. PosY: {Button.GetTransform().Translation.Y}")
        Button.SetInteractionText(Msg("Button {ButtonIndex+1}\nValue: {NewVal}\nPosY: {Button.GetTransform().Translation.Y}"))
        Button.InteractedWithEvent.Subscribe(ButtonCallback{ButtonIndex:=ButtonIndex, Button:=Button}.OnInteracted)

ButtonCallback := class:
    ButtonIndex : int;
    Button : button_device;
    OnInteracted(Agent : agent) : void =
        Print("OnInteracted Button {ButtonIndex+1}: PosY: {Button.GetTransform().Translation.Y}")

```

Place 3 button devices with distinct Y (or Left) positions, for instance:

```auto
Button1: (X=0.0,Y=-100.0,Z=100.0)
Button2: (X=0.0,Y=-200.0,Z=100.0)
Button3: (X=0.0,Y=-300.0,Z=100.0)

```

This will help see which transform we’re referencing.

In the verse, we’re reading and writing a value to each Button device’s `MaxTriggerCount`, just as a marker. The value `2<<(ButtonIndex+1)` is being added in order to provide for a simple bitfield to observe which Button references overlap.

Logs are provided to observe if the Buttons match as expected during startup and interacting, and details are written to their interaction text.

Place our `ArrayReferencer` device and add 3 array elements, and assign the 3 Button devices in order.

If we test at this point, the results described in the Expected result section are seen.

Now, duplicate the `ArrayReferencer` device in the outliner and delete the original.

Start a session and observe the startup logs, the Buttons’ interact messages, and the logs when interacting with the buttons.

### Expected Result

Startup logs:

```auto
Init Button 1. OldVal: 0 + Val: 2 => NewVal: 2. PosY: -100.000
Init Button 2. OldVal: 0 + Val: 4 => NewVal: 4. PosY: -200.000
Init Button 3. OldVal: 0 + Val: 8 => NewVal: 8. PosY: -300.000

```

Observe that Buttons 1, 2, 3, values 2, 4, 8, and positions -100, -200, -300 match.

Button `InteractedWithEvent` output when pressing each button:  
Button1: `Button 1: Value: 2 PosY: -100.000`  
Button2: `Button 2: Value: 4 PosY: -200.000`  
Button3: `Button 3: Value: 8 PosY: -300.000`

Observe that Buttons 1, 2, 3, values 2, 4, 8, and positions -100, -200, -300 match.

Button OnInteract output for each button:  
Button1: `OnInteracted Button 1: PosY: -100.000`  
Button2: `OnInteracted Button 2: PosY: -200.000`  
Button3: `OnInteracted Button 3: PosY: -300.000`

Observe that Buttons 1, 2, 3 trigger the corresponding registered callback.

### Observed Result

Startup logs:

```auto
Init Button 1. OldVal: 0 + Val: 2 => NewVal: 2. PosY: -100.000
Init Button 2. OldVal: 2 + Val: 4 => NewVal: 6. PosY: -200.000
Init Button 3. OldVal: 0 + Val: 8 => NewVal: 8. PosY: -300.000

```

Observe that the value for Button 2 is carried over from Button 1 and added up, despite the transform dereferenced from the same variable being that of a different Button device.

Button interaction text:  
Button 1: `Button 2: Value: 6 PosY: -200.000`  
Button 2: `Button 3: Value: 8 PosY: -300.000`  
Button 3: `INTERACT`

Observe that the button text does not match the intended button, and the last button text has not been set.

Button `InteractedWithEvent` output when pressing each button:  
Buttons 1 and 2 produce the same output - all 3 callbacks are triggered from either button (in a random order).

```auto
OnInteracted Button 2: PosY: -200.000
OnInteracted Button 1: PosY: -100.000
OnInteracted Button 3: PosY: -300.000

```

Button 3 does nothing, no callback seems registered.

### Platform(s)

Windows

### Additional Notes

One tentative explanation I have is that there exists an internal reference system that supports both Scene Graph components like the transform and the legacy Actor components, and it’s somehow getting out of sync between the two in serialized arrays during deserialization, resulting in these strange chimera references being created, mixing multiple target objects depending on the component being accessed.  
But that’s just a theory, I haven’t been able to think of an other explanation.

I’ve not created test cases around other devices than Button devices, but we’ve seen issues in practice with Mutator Zones and other things.

Testing using an array of classes or structs that contain the reference behave the same. The class/struct references are correct, only the device reference is problematic.  
I haven’t been able to reproduce any such issue if the device references are not in an array but are distinct variables in the Verse device.

The bug does not seem user-detectable from the editor, everything in the affected actor looks fine, and the issue only becomes apparent at runtime. Nothing obvious stands out in the serialized text when copying the device, but it’s hard to be sure.

I’ve seen some similar-ish reports in recent days but none included detailed enough repro steps, so I thought it was worth making sure a good repro was made available to help track this down.

---

<div class="post-metadata">

**Author:** ![jbarnoin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jbarnoin](https://forums.unrealengine.com/u/jbarnoin)\
**Post date:** [September 23, 2025, 5:31pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/3 "2025-09-23T17:31:01Z")

</div>

Additional note: I was able to reproduce an issue that we saw for the first time on 2025-08-08, the day after v37.00 dropped.  
The same editing process we used regularly did not cause trouble before v37.00, but suddenly caused the last mutator zone in a list to no longer associate with its callback (after duplication of a verse device).  
I reproduced what we saw then and the behaviour is the same as that described in this bug report, so I’m quite certain the issue was first introduced in v37.00.

---

<div class="post-metadata">

**Author:** ![hellobard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hellobard/32/1086696_2.png) [@hellobard](https://forums.unrealengine.com/u/hellobard)\
**Post date:** [September 23, 2025, 6:45pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/4 "2025-09-23T18:45:30Z")

</div>

Can confirm the same issue

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [September 24, 2025, 10:20am UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/5 "2025-09-24T10:20:15Z")

</div>

Thank you, we’re checking into this.

---

<div class="post-metadata">

**Author:** ![jbarnoin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jbarnoin](https://forums.unrealengine.com/u/jbarnoin)\
**Post date:** [September 24, 2025, 12:39pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/6 "2025-09-24T12:39:30Z")

</div>

Can’t edit any longer but small mistake to correct:  
In the Expected Results, where I say “Button `InteractedWithEvent` output when pressing each button:” I actually meant “Button interaction text”, the one that’s displayed when you look at the button. Got them confused.  
This mistake is not present in the Observed Results section, that one should be correct.

---

<div class="post-metadata">

**Author:** ![thrax207](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thrax207](https://forums.unrealengine.com/u/thrax207)\
**Post date:** [September 27, 2025, 2:40pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/8 "2025-09-27T14:40:39Z")

</div>

I have this exact same issue, I configured something in a device, tried to dupe it with a lot of button and triggers, and it’s completely messed up. It ‘looks’ correct in the device. But when I listen to InteractedWithEvent on triggers, I get completely different results which I do not expect.

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [October 14, 2025, 5:23pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/11 "2025-10-14T17:23:54Z")

</div>

FORT-978913 is ‘Closed’ as ‘Fixed’. The issue will be addressed in 38.00.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 21, 2026, 9:36pm UTC](https://forums.unrealengine.com/t/bug-when-duplicating-a-verse-device-containing-an-array-of-device-references/2659054/12 "2026-03-21T21:36:06Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
