Comments (6)
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.
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.
@Looooong was this fixed yet, because I'm still getting the same issue
from unityasyncimageloader.
@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.
@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.
This is fixed, further improved and unit tested.
from unityasyncimageloader.
Related Issues (14)
- OpenEXR loads as full white image instead of its content. Is it supported ATM? HOT 8
- Question: Does this plugin work with android builds? HOT 7
- Exception: Bitmap bitdepth not supported: 8 HOT 1
- Change interface from byte[] to Memory<byte> HOT 1
- System.ArgumentException: Invalid length of '{0}'. It must be greater than 0. HOT 1
- Encode Texture2d Asynchronously
- CreateFromImageAsync Texture2D does not work async / SupportsTextureFormatNative error HOT 6
- Could you add performance tests?
- Maybe Prefer to use simpler api for larger ammount of use cases? HOT 1
- webgl HOT 2
- Transparency issue vs using unitys native importer HOT 3
- MacOS HOT 1
- Texture Blinking Issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unityasyncimageloader.