Export Fails when trying to record for playback using the Recording sample scene

Include the following details (edit as applicable):

  • Issue category: Lightship Maps / Semantic Segmentation / Multiplayer / Real-time Mapping-Depth / ARDK Documentation / Unity Example Package / Sample App aka ‘AR Voyage’ / ARDK Virtual Studio Tools / Developer Tools / Networking / VPS / Scanning Framework
  • Device type & OS version: Android / iOS / Other Ex. iPhone 8+ on iOS 13
  • Host machine & OS version: Mac / Windows / Linux / Other Ex. Mac on Big Sur x.x
  • Issue Environment : Unity Remote / Unity Mock / On Device / Dev Portal
  • Xcode version:
  • ARDK version: 3.8
  • Unity version: 2021.3.37f1

Description of the issue:
I installed the Recording sample scene for playback recording on my andriod phone. The start and stop of recording seems to work fine, but when i click on save and export. The export fails.

So i tried to run the Recording sample scene on the editor and ended up with the following 2 errors. Could you please guide me through this issues.
Error1:
InvalidOperationException: Sequence contains no matching element
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate)
(at <739dc5bce2d24b21aa5cf3ead562dcba>:0)
Niantic.Lightship.AR.Samples.RecordingDemo.StopScanning () (at Assets/Samples/Scanning/Scripts/RecordingDemo.cs:117)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <80e08c2cc04049bf931fc9038d04f397>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <583df70190f94511bd46f12943531dbc>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <583df70190f94511bd46f12943531dbc>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <583df70190f94511bd46f12943531dbc>:0)

Error2:
NullReferenceException: Object reference not set to an instance of an object
Niantic.ARDK.AR.Scanning.ScanArchiveBuilder…ctor (Niantic.ARDK.AR.Scanning.ScanStore+SavedScan scan,
Niantic.ARDK.AR.Scanning.UploadUserInfo uploadUserInfo)
(at Library/PackageCache/com.nianticlabs.lightship@2fa0ccfba7/Runtime/ScanManagement/ScanArchiveBuilder.cs:40)
Niantic.Lightship.AR.Samples.RecordingDemo.StartExporting () (at Assets/Samples/Scanning/Scripts/RecordingDemo.cs:131)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <80e08c2cc04049bf931fc9038d04f397>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <583df70190f94511bd46f12943531dbc>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <583df70190f94511bd46f12943531dbc>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <583df70190f94511bd46f12943531dbc>:0)

Hello! Could you provide us with some more details such as the device/s you are running the sample on and the versions of both the ARDK & Unity. Thank you!

Hi josh I am running the sample on my andriod phone samsung m30s andriod version 11.

I am using ardk version 3.8 and unity version 2021.3.37f1. Please let me know if further details are needed

Thanks

Hi Manoj,

I’m filling in for Josh for the day, they’ll be back tomorrow to continue assisting. May we also know what operating system you’re using Unity on?

Hi jesus,

I am working on windows 10. While the issue is being looked on, can you suggest me the ardk sample version along with the unity version where playback recording is working fine. I would like to try it, to progress with my testing.

Thanks

Thanks for the information! Running the playback in the editor will result in an error on a windows machine, thus we recommend using your device for the playback sample. Additionally, I just tested the latest version of the ARDK Samples (Version 3.9.0) on Unity 2022.3.37f1 and the exporting function worked successfully. I would recommend trying that combination of versions and if it still doesn’t work, could you please let me know. Thanks!

Thanks josh. I will try with the latest version of ardk and get back to you.