No luck getting the Simple App to run

Hello!

I followed the instructions found here step by step. My scene has a cube and a Magic Leap provided Main Camera prefab.

  • Build succeeds but doesn't seem to work on Magic Leap 2. Don't see cube even when parented to the Camera

  • Upon entering Play Mode in Unity with Magic Leap 2 connected in Application Simulator, Unity crashes every time

Unity Editor version: 2022.2.0b9
ML2 OS version: B3E.220619.08-R.107
MLSDK version: 0.53.3
Host OS: MacOS Monterey (Macbook Pro 13-inch, M1, 2020)

Error messages from logs:

Obtained 23 stack frames.

Thread 0x17e8c7000 may have been prematurely finalized

#0 0x000001af6c2768 in CFRelease.cold.1

Thread 0x17e8c7000 may have been prematurely finalized

#1 0x307700033164d32c in -[OsxH264VTImpl Uninit]

Thread 0x17e8c7000 may have been prematurely finalized

#2 0x0000033164ddb8 in ml::codec::OsxH264VT_Destroy(ml::codec::OsxH264VT*)

Thread 0x17e8c7000 may have been prematurely finalized

#3 0x0000033164c608 in ml::codec::EncoderH264OsxVT::~EncoderH264OsxVT()

Thread 0x17e8c7000 may have been prematurely finalized

#4 0x0000033164c7f0 in ml::codec::EncoderH264OsxVT::~EncoderH264OsxVT()

Thread 0x17e8c7000 may have been prematurely finalized

#5 0x0000033164c184 in ml::codec::CodecFactoryOSX::CreateEncoder(ml::codec::CodecDescription const&)

Thread 0x17e8c7000 may have been prematurely finalized

#6 0x0000033163c080 in ml::graphics::ResourceSharingService::CodecResourceSerializer::Init(ml::rss::ResourceSerializer const&, std::__1::shared_ptr<ml::graphics::DriverInterface::RenderDeviceContext>)

Thread 0x17e8c7000 may have been prematurely finalized

#7 0x000003315c6204 in ml::graphics_shim::Client::CreateGraphicsResources(std::__1::shared_ptr<ml::graphics::DriverInterface::RenderDevice>, std::__1::shared_ptr<ml::graphics::DriverInterface::RenderDeviceContext>, MLGraphicsOptions const*)

Thread 0x17e8c7000 may have been prematurely finalized

#8 0x000003315c17d0 in MLGraphicsCreateClientVk

Thread 0x17e8c7000 may have been prematurely finalized

#9 0x000003315e58b0 in MLZIGraphicsCreateClientMTL

Thread 0x17e8c7000 may have been prematurely finalized

#10 0x000002aaf166b4 in GraphicsCreateClientMTL

Thread 0x17e8c7000 may have been prematurely finalized
1 Like

You need to update to the latest OS. The OS you're on is months old.

1 Like