Jump to content

Gena Editor Error (EnsureRunningOnMainThread) on scene startup


chiken
Go to solution Solved by Manny,

Recommended Posts

In Unity 2021.3.18f1, if you have multiple scenes that use gena and switch between them in the editor, a unity error shows up in the editor.

It doesn't seem to be a specific 2021 LTS version issue as I had this issue with the older 2021 LTS versions like 2021.3.13f1, but I didn't report this bug last time since I skipped upgrading gena due to this bug.

Gena Pro ver 3.4.7

InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread
UnityEngine.Object.EnsureRunningOnMainThread () (at <4014a86cbefb4944b2b6c9211c8fd2fc>:0)
UnityEngine.Object.GetInstanceID () (at <4014a86cbefb4944b2b6c9211c8fd2fc>:0)
UnityEngine.Object.IsNativeObjectAlive (UnityEngine.Object o) (at <4014a86cbefb4944b2b6c9211c8fd2fc>:0)
UnityEngine.Object.CompareBaseObjects (UnityEngine.Object lhs, UnityEngine.Object rhs) (at <4014a86cbefb4944b2b6c9211c8fd2fc>:0)
UnityEngine.Object.op_Equality (UnityEngine.Object x, UnityEngine.Object y) (at <4014a86cbefb4944b2b6c9211c8fd2fc>:0)
GeNa.Core.GeNaManager.Dispose () (at <da30f21bf64d4cf3acba488bc83ff301>:0)
GeNa.Core.GeNaManager.OnAfterDeserialize () (at <da30f21bf64d4cf3acba488bc83ff301>:0)

To reproduce this issue.

Ensure you have two scenes that uses Gena.

Method 1

1) Start Unity with the scene A already loaded that has Gena.

The error shows up

Method 2

1) When scene A is loaded in the unity editor, load scene B into the editor by double clicking it.

The same error shows up here.

Link to comment
Share on other sites

  • chiken changed the title to Gena Editor Error (EnsureRunningOnMainThread) on scene startup
  • Solution

Hello @chiken!

Thank you for reaching out to us regarding the bug you encountered with GeNa. I understand that you were encountering an error when switching between scenes in Unity 2021.3.18f1. I'm glad to inform you that we have been able to replicate the issue and have just fixed it in the latest version of GeNa Pro ver 3.4.7.
image.png

Please try updating to the latest version and let us know if you continue to encounter any issues. We apologize for any inconvenience this may have caused and appreciate your patience while we worked to resolve this issue.

GeNa Pro v3.4.8 Download

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...