Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Error when following Unity SDK Integration

Discussion in 'Unity Simulation' started by wwaero, Jul 17, 2020.

  1. wwaero

    wwaero

    Joined:
    Feb 18, 2020
    Posts:
    32
    Hey maybe I missed a step but I'm hitting this error when testing out the simulation packages. What am I missing?

    DllNotFoundException: turbojpeg
    JpegEncoder.Encode (System.Byte[] raw, System.Int32 width, System.Int32 height, System.Int32 pixelSize, UnityEngine.Experimental.Rendering.GraphicsFormat textureFormat, System.Int32 quality, JpegEncoder+Flags flags) (at Library/PackageCache/com.unity.simulation.capture@0.0.10-preview.8/Runtime/Plugins/JpgEncoder/JpegEncoder.cs:255)
    Unity.Simulation.CaptureImageEncoder.EncodeArray (System.Array data, System.Int32 width, System.Int32 height, UnityEngine.Experimental.Rendering.GraphicsFormat format, Unity.Simulation.CaptureImageEncoder+ImageFormat imageFormat, System.Int32 additionalParam) (at Library/PackageCache/com.unity.simulation.capture@0.0.10-preview.8/Runtime/CaptureEncode.cs:89)
    Unity.Simulation.CaptureCamera+<>c__DisplayClass10_0.<CaptureColorAndDepthToFile>b__0 (Unity.Simulation.AsyncRequest`1[T] r) (at Library/PackageCache/com.unity.simulation.capture@0.0.10-preview.8/Runtime/CaptureCamera.cs:243)
    Unity.Simulation.AsyncRequest`1[T].InvokeWaitCallback (System.Object functor) (at Library/PackageCache/com.unity.simulation.core@0.0.10-preview.14/Runtime/AsyncRequest.cs:356)
    Unity.Simulation.AsyncRequest`1+<>c__DisplayClass17_0[T].<DispatchWithJobSystem>b__0 () (at Library/PackageCache/com.unity.simulation.core@0.0.10-preview.14/Runtime/AsyncRequest.cs:402)
    Unity.Simulation.LambdaJob.Execute () (at Library/PackageCache/com.unity.simulation.core@0.0.10-preview.14/Runtime/LambdaJob.cs:16)
    Unity.Jobs.IJobExtensions+JobStruct`1[T].Execute (T& data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <58a34b0a618d424bb5fc18bb9bcdac20>:0)
     
  2. justinagraham

    justinagraham

    Unity Technologies

    Joined:
    Jan 17, 2017
    Posts:
    5
    Hi, this is a bug, which we are fixing in the next release, which should be available later today, or perhaps Monday. A workaround for now is to use the PNG image format when capturing, instead of JPG. Check later in the package manager UI to see when the update become available, and upgrade to that.
     
  3. wwaero

    wwaero

    Joined:
    Feb 18, 2020
    Posts:
    32
    Thanks Justin
     
  4. justinagraham

    justinagraham

    Unity Technologies

    Joined:
    Jan 17, 2017
    Posts:
    5
    Hi @wwaero. Just wanted to let you know we found a couple issues with the release, so we are delaying it by another day to fix and verify.
     
  5. justinagraham

    justinagraham

    Unity Technologies

    Joined:
    Jan 17, 2017
    Posts:
    5
    @wwaero The packages have been updated. Please update to the latest, and your issue should be resolved.
     
    Marleneee likes this.
unityunity