Coder Social home page Coder Social logo

Comments (6)

Looooong avatar Looooong commented on May 20, 2024 1

I haven't tested with Unity 2021 yet. Probably, some changes with the Jobs System or Burst break filter mipmap job. I will take a look at this later.

from unityasyncimageloader.

nickyonge avatar nickyonge commented on May 20, 2024

Confirming that I'm getting this same behaviour on Unity 2020.3.1f1 Plus. Full stack trace:

InvalidOperationException: The writeable UNKNOWN_OBJECT_TYPE FilterMipmapJob.outputMipmap is the same UNKNOWN_OBJECT_TYPE as FilterMipmapJob.inputMipmap, two containers may not be the same (aliasing).
Unity.Jobs.LowLevel.Unsafe.JobsUtility.ScheduleParallelFor (Unity.Jobs.LowLevel.Unsafe.JobsUtility+JobScheduleParameters& parameters, System.Int32 arrayLength, System.Int32 innerloopBatchCount) (at <10564ed154d647e194bef4aef8878649>:0)
Unity.Jobs.IJobParallelForExtensions.Schedule[T] (T jobData, System.Int32 arrayLength, System.Int32 innerloopBatchCount, Unity.Jobs.JobHandle dependsOn) (at <10564ed154d647e194bef4aef8878649>:0)
AsyncImageLoader+ImageImporter.ProcessRawTextureData (Unity.Collections.NativeArray`1[T] rawTextureView, System.Int32 mipmapCount) (at Assets/UnityAsyncImageLoader/Runtime/ImageImporter.cs:228)
AsyncImageLoader+ImageImporter+<CreateNewTextureAsync>d__17.MoveNext () (at Assets/UnityAsyncImageLoader/Runtime/ImageImporter.cs:103)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
AsyncImageLoader+<CreateFromImageAsync>d__9.MoveNext () (at Assets/UnityAsyncImageLoader/Runtime/AsyncImageLoader.cs:105)
UnityEngine.Debug:LogException(Exception)
<CreateFromImageAsync>d__9:MoveNext() (at Assets/UnityAsyncImageLoader/Runtime/AsyncImageLoader.cs:108)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
<CreateNewTextureAsync>d__17:MoveNext() (at Assets/UnityAsyncImageLoader/Runtime/ImageImporter.cs:106)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

from unityasyncimageloader.

ookii-tsuki avatar ookii-tsuki commented on May 20, 2024

@Looooong was this fixed yet, because I'm still getting the same issue

from unityasyncimageloader.

Looooong avatar Looooong commented on May 20, 2024

@Looooong was this fixed yet, because I'm still getting the same issue

Sorry, I haven't fixed this yet. PR is welcomed.

from unityasyncimageloader.

Looooong avatar Looooong commented on May 20, 2024

@akioCL @nickyonge @ookii-tsuki I published a fix in version 0.1.2. I tested and it works in Unity 2021.2. If you are using Unity 2020 or 2021.1, can you check and see if it works for you as well?

from unityasyncimageloader.

Looooong avatar Looooong commented on May 20, 2024

This is fixed, further improved and unit tested.

from unityasyncimageloader.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.