Unity 6 UnityPlayer.UnitySendMessage crash

Hi,

After migrating a Unity 2022 project to Unity 6 (6000.0.23f1), we encountered an issue with early calls to UnityPlayer.UnitySendMessage(...) from native Java code during app startup. These calls, which worked fine in previous versions, now cause a crash in Unity 6 with a null pointer dereference error (SIGSEGV).

Delaying the calls seems to resolve the issue.

Thanks!

Could you please report a bug with repro project attached? Thank you !

Ok, done.

https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-87181

I don’t have access to the portal ticket—has there been any discussion there? We are encountering the same issue, and delaying (even up to 10 seconds) doesn’t seem to resolve the issue.

You can track progress here.

It’s fixed but unclear yet what version we’ll see that fix in.

Thank you for sending; I’ll follow along!

Fixed in 6000.0.28f1 and 6000.1.0a4.