Search Unity

Question MARS Companion Session Recording issues

Discussion in 'Unity MARS' started by wiltabone, Feb 9, 2021.

  1. wiltabone

    wiltabone

    Joined:
    Oct 30, 2015
    Posts:
    9
    I am experiencing a technical issue when downloading a session recording from the 'Companion Resources' interface. While the camera pose, plane finding data etc are successfully synced, the video file never downloads. Here is the console output:

    Couldn't find temp video file at path /Users/X/Library/Application Support/DefaultCompany/MarkerTest/Temp/Recording-637484921149307770.mp4
    UnityEngine.Debug:LogError(Object)
    Unity.MARS.Companion.Core.<>c__DisplayClass27_0:<ImportDataRecording>b__3(Boolean, String) (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Editor/CompanionResourceWindow/CompanionImportUtils.cs:573)
    Unity.MARS.Companion.Core.<>c__DisplayClass15_0:<DownloadVideo>b__0(Boolean, Int64, Byte[]) (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CompanionDataRecordingUtils.cs:103)
    Unity.MARS.Companion.CloudStorage.BytesRequest:Update() (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CloudStorage/GenesisCloudStorageModule.cs:359)
    Unity.MARS.Companion.CloudStorage.GenesisCloudStorageModule:UpdateRequests(Dictionary`2) (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CloudStorage/GenesisCloudStorageModule.cs:787)
    Unity.MARS.Companion.CloudStorage.GenesisCloudStorageModule:UpdateRequests() (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CloudStorage/GenesisCloudStorageModule.cs:765)
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at /Users/builduser/buildslave/unity/build/Editor


    Followed by:


    NullReferenceException: Object reference not set to an instance of an object
    Unity.MARS.Companion.Core.CompanionImportUtils+<>c__DisplayClass27_0.<ImportDataRecording>b__3 (System.Boolean success, System.String path) (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Editor/CompanionResourceWindow/CompanionImportUtils.cs:590)
    Unity.MARS.Companion.Core.CompanionDataRecordingUtils+<>c__DisplayClass15_0.<DownloadVideo>b__0 (System.Boolean success, System.Int64 responseCode, System.Byte[] response) (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CompanionDataRecordingUtils.cs:103)
    Unity.MARS.Companion.CloudStorage.GenesisCloudStorageModule+BytesRequest.Update () (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CloudStorage/GenesisCloudStorageModule.cs:359)
    UnityEngine.Debug:LogException(Exception)
    Unity.MARS.Companion.CloudStorage.BytesRequest:Update() (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CloudStorage/GenesisCloudStorageModule.cs:370)
    Unity.MARS.Companion.CloudStorage.GenesisCloudStorageModule:UpdateRequests(Dictionary`2) (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CloudStorage/GenesisCloudStorageModule.cs:787)
    Unity.MARS.Companion.CloudStorage.GenesisCloudStorageModule:UpdateRequests() (at Library/PackageCache/com.unity.mars-companion-core@0.3.7-preview/Runtime/Scripts/CloudStorage/GenesisCloudStorageModule.cs:765)
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:310)



    Not sure if anyone has some pointers please?

    OS: macOS Catalina
    Unity: 2019.4.5f1
     
  2. wiltabone

    wiltabone

    Joined:
    Oct 30, 2015
    Posts:
    9
    Any feedback please?
    Recordings from yesterday are transferring successfully but the older ones that I need from two days ago (bar one) are not. Is this therefore a problem from the app? Can I somehow manually extract the video data from somewhere else?

    All these videos (all under 20 MB) were successfully uploaded in the app so it's rather confusing why some download successfully and others trigger the above error.
     
    Last edited: Feb 10, 2021
  3. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    194
    Hi there! I'm sorry to hear that you're having trouble.

    Are you using the app on iOS or Android? Unfortunately, there is no way to get the video data off of an iOS device, but on Android, you should be able to locate the app storage and transfer the video file over manually. We store the data in the location specified by Unity's `Application.persistentDataPath` API. On Android, this is located at `/storage/emulated/0/Android/data/<packagename>/files` on most devices. You can read more here.

    You can also retry the upload by deleting the recording in the Companion Resource Manager in the Editor, refreshing the resource list in the app, and using the context menu for the video resource to upload the recording a second time.

    A few other users are experiencing issues uploading recorded videos, and we are investigating the problem. Do you mind sharing what region of the world you are in? The storage data center is located on the west coast of the US, so if you are far away from there, that may be causing the issue. We will get back to you when we have more information, or a timeline for the fix.
     
  4. wiltabone

    wiltabone

    Joined:
    Oct 30, 2015
    Posts:
    9
    Hi mtschoen.

    Thank you for the reply.
    I am using iOS and the approach you suggested seems to solve the problem for the time being! Thanks for that.

    I'm in Southern Europe region here, so that could be the issue as well.
    Looking forward to future updates.