-
-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image.Load(byte[]) throws Method not found System.ReadOnlySpan.get_Item(Int32) #447
Comments
Looks like this is related to this issue: dotnet/coreclr#14727. Seeing that exception in one of the comments. |
@dlemstra Yeah, that looks like the issue, good work. @GeorgePlotnikov It looks like you are also using the preview of NETCore 2.1 Have you tried the 2.0 release? The library should be stable against that. I'm not sure what (or even if) we will have to do when 2.1 reaches RTM but I'll ask around. |
@dlemstra, @JimBobSquarePants thanks guys for the quick response, fixed via moving to netcore2.0 |
…age of Span<byte>. Increased timeout of test.
@JimBobSquarePants @dlemstra I have the same issue on .NET 4.6.2 do you have any advise in that case? |
@molinch what version of I assume your project is referencing the |
In fact I was not using System.Memory before, it has been pulled when I got the latest prerelease for ImageSharp. So now I have System.Memory 4.5.0-preview1-26216-02 My assembly bindings got updated for some assemblies: System.Runtime, System.Runtime.Extensions, System.Reflection and some got added: System.Numerics.Vectors, System.Runtime.CompilerServices.Unsafe, System.Memory, System.Diagnostics.Tracing |
Sorry I understand what you meant now 👍 |
NuGet is pulling the newest version by default as far as I understand. @JimBobSquarePants this is a very serious issue. All new users + all users doing a NuGet update will encounter it. Fortunately beta-3 is coming very soon. |
I agree for new users it's really a pain, even though it's Microsoft's fault since they unlisted their package... |
Tut tut... You shouldn't be using a beta in production! 😉 Progress is moving swiftly with beta3 and we should have it out in the next few days - a week max. We will be moving your cheese around though with lots of namespace changes (sensible ones). We should have API docs though to help you migrate. |
Yes you are right, I meant "future release" which will eventually go to production. I think that I will anyway revert back to System.Drawing temporarily, even though that's a bad idea, since I added ImageSharp I have issues related to .NETStandard/MSBuild: https://github.com/dotnet/corefx/issues/25773#issuecomment-350000563 Once again it's nothing from you, ImageSharp is really great and the API is a breaze, but it's just too many issues just to make a simple thumbnail |
We'll get there soon. It's difficult to build something like this when the goalposts are moved so often upstream.
Nothing simple about a thumbnail Have you seen the code in that class. Resizing it hard! 😄 |
I'm attempting to use this library on Xamarin Android and I am seeing the exception happening as well. I have a NetStandard library targeting 2.0 and the issue still persists. Is there something wrong that I'm doing? |
What version of |
The System.Memory package version was already at 4.4.0-preview2-25405-01. I'm using visual studio for mac if that makes any difference? |
So your local Nuget is 4.4.0-preview2-25405-01 ? |
I don't know what it means to change assembly bindings. |
In your app.config or web.config, if you have an entry for System.Memory under , then it should be so:
|
Do you have an app.config in your Xamarin.Android project? |
That didn't seem to help. I've attached a sample solution for a xamarin android project the demonstrates the error. Created with visual studio 2017 on a pc. Perhaps you could take a look and tell me where I went wrong. |
I would grab the nightlies from our MyGet feed. That should work fine. |
@JimBobSquarePants Is there any plan/release date when using ImageSharp with .NET Core 2.1 will be supported? At least basic scenarios like LoadingImage from FileName. |
Don't be that guy. .NET Core 2.1 isn't even released yet. |
SixLabors/ImageSharp#447 を参考にapp.configを編集
Updating to beta04 solved this problem :) Thank you ! |
Any plan/release for supporting .Net Core2.1? |
We already support the release candidate with beta 4. I’ve tested the final release against it and it works |
Ah okay, Thanks Does beta 4 supports all of the feature that 1.0.0-alpha9 supports, because I can't see Resize() method on Image(in beta.4) Or am I missing something? your help would be greatly appreciated !! |
Yes of course. You should probably read the api documentation linked from our readme. |
That's a super-old buggy version, we had many fixes/changes since that. Please read this article for the major API change introducing Mutate/Clone: |
@antonfirsov |
Description
Image.Load on method below throws
Method not found: '!0 System.ReadOnlySpan
1.get_Item(Int32)'.` with the stack traceSteps to Reproduce
The text was updated successfully, but these errors were encountered: