MonoPosixHelper error

Include the following details (edit as applicable):

  • Issue category: Lightship Maps
  • Device type & OS version: Android
  • Host machine & OS version: Windows
  • Issue Environment : On Device
  • ARDK version: 3
  • Unity version: 2022.3.26

Description of the issue:

[Based on Lightship Example: Third-Person Camera Sample/OrbitCamera]

When deployed to an Android device, following errors logged by the Android Logcat:

2024/07/15 13:50:20.101 1516 2088 Error Unity [E] [MapsAsync] System.AggregateException: One or more errors occurred. (MonoPosixHelper assembly: type: member:(null)) —> System.DllNotFoundException: MonoPosixHelper assembly: type: member:(null)

2024/07/15 13:50:20.101 1516 2088 Error Unity at (wrapper managed-to-native) System.IO.Compression.DeflateStreamNative.CreateZStream(System.IO.Compression.CompressionMode,bool,System.IO.Compression.DeflateStreamNative/UnmanagedReadOrWrite,intptr)

2024/07/15 13:50:20.101 1516 2088 Error Unity at System.IO.Compression.DeflateStreamNative.Create (System.IO.Stream compressedStream, System.IO.Compression.CompressionMode mode, System.Boolean gzip) [0x0004a] in <9c36e86018ed40ba840b6061ef84dd1c>:0

2024/07/15 13:50:20.101 1516 2088 Error Unity at System.IO.Compression.DeflateStream…ctor (System.IO.Stream compressedStream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen, System.Boolean gzip) [0x0002d] in <9c36e86018ed40ba840b6061ef84dd1c>:0

2024/07/15 13:50:20.101 1516 2088 Error Unity at System.IO.Compression.DeflateStream…ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode) [0x00000

Symptom:
LightshipMap prefab is not displayed/rendered

Other notes:

  • Setup Lightship on another project. Deployed to Android with same settings as the first project. No errors were observed
  • On the first project, created a default scene with LightshipMap prefab added to the scene. When deployed, same error emerges.

I am not sure how to resolve this issue
Any advice would be appreciated!

Issue resolved:

Resolved by switching build scripting backend from Mono to IL2CPP

It took 10 minutes to convert. Perhaps the missing dll got built during the conversion?

Hi Natalie,

Glad you were able to resolve the issue. I can’t speak for why it took so long to convert from Mono to IL2CPP but switching to it is required to build AR projects