Garbage Collection Verse Runtime Errors

Summary

Since the first-person device went live this morning, we are seeing several new occurrences of Verse runtime errors related to garbage collection.

It is unclear why our objects would be being garbage collected early, as we do not manually free memory manually.

An example of the verse runtime error is as follows:
Verse unrecoverable error: ErrRuntime_Internal: An internal runtime error occurred. There is no other information available. (Internal error encountered: Attempted to access weapon_mastery_manager_2147482646 via property __verse_0x00000000__7, but weapon_mastery_manager_2147482646 is not valid (pending kill or garbage).)

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Assets

Steps to Reproduce

UNKNOWN

Expected Result

Objects are not garbage collected early

Observed Result

Objects are garbage collected early

Platform(s)

All

1 Like

Having this same problem

Also seeing this, I believe in my case it happens when the round ends. I have some classes that loop the entire round and access another Verse device. Then when round ends garbage collection removes the devices in a random order causing the loop to try to access a device that no longer exists. I’m not sure if it effects the gameplay or not as I have not had the errors happen to me while playing. However in my case a short term fix was to gracefully end the loops using an IsRunning logic and calling to the devices setting IsRunning to false to break from the loops before ending the round.