-
Notifications
You must be signed in to change notification settings - Fork 942
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
Multiple PlotView with large data is very slow (OutOfMemoryException thrown) #1781
Comments
I don't presently have time to provide a comprehensive reply, but to use skia you need to swap out the |
So i have to download this package, and remove the Oxyplot.WPF that I already use? Nothing more ? |
Make sure the
|
I have to deal with |
If you are targeting .NET Framework, you will need to specify the target architecture because skia is a native library (shouldn't be a problem with .NET Core; see #1760), but I can't repro any issue within the design view; can you provide your csproj? |
DASVIZ.zip |
TEST OXYSKIA.zip I dont have a SDK project btw so I am not able to edit project file. |
Yes, the package reference appears in that one. |
So what am I supposed to change in order to fix this issue ? |
I'm not sure; the second one looks fine; it's virtually identical to when I get when I create a new WPF/.NET Framework and add The first project is clearly missing the references to the skia stuff, so you could try copying those into the csproj directly if the nuget manager in VS isn't doing its job properly. Check packages.config contains, since that's what contains the actual nuget package reference (csproj just references the dlls) and force a restore (slapping build/debug a few times in VS usually does this anyway) Modified version of your second csproj, and a packages.config created by my computer for blank project: https://gist.github.com/VisualMelon/5f4a00d204d603c545923915bd009994 |
Still on my example "TEST OXYSKIA" i have removed |
If it's just a test project, can you upload the whole solution? |
Sorry I wasn't able to sent you one zip because of an importation bug. Moreover, I wasn't able to provide you the packages but I used exactly the same as yours. |
Builds and runs fine for me, and the designer view is happy as well. (VS 2019, Win10, x64). There were a couple of broken references (E.g. to OxyPlot.WPF) but they shouldn't matter. I'm not sure what to suggest; can you try cleaning the solution (manually delete the packages, bin, and obj directories to make sure) and re-build? May be worth checking there isn't a conflicting nuget config on your machine which might be messing with pre-release downloads or something. Apart from that, if you were using .NET Core before, you should be able to just add net471 as a target in the SDK-style csproj, and it should 'just work'. E.g. change |
I had VS2019, Win10 x64 as well. I tried what you told me but it's not working... |
EDIT: I have update some packages and it worked (not the design view but i dont care). However I had an issue regarding the publish. Worked on VS but once I click to my application for the update, it's fail (picture below). If you sent me the folder with your packages, dont you think it's gonna work ? |
He's a basic dual-target project: WpfApp4.zip I don't know a whole lot about strong naming and publishing under framework; I can't really suggest why your program is failing at runtime, but I suspect it won't change with my project (seems to be related to things like conflicts in the GAC, etc.) |
I ran into the same issue ("System.DllNotFoundException: Unable to load library 'libSkiaSharp'."). I created a new project and added the dependencies through Nuget. You can find the repo here. The designer only shows an error, but the binary is runnable and shows a chart. Could anybody lead me into the right direction, because it's a pain to develop an UI with this error. Thank you! |
@seba30 thanks for checking that |
Hey, i solve this issue in vs2019 by copy x86'libSkiaSharp' dlls into system folder(syswow64).I think the issue is because the native library loading path of designer. |
Hello,
I am using Oxyplot.WPF 2.1.0-Preview1, and I am ploting in a stackpanel about 10
Plotviews
composed of :zoom
andinvalideplot
)When I am importing big data like that, the UI is very low, and sometimes gives me
OutOfMemoryException thrown
.How can I deal with big data in order to have good performance ? I heard about OxyPlot.SkiaSharp but I don't know what I am supposed to do.
I am in .NET FRAMEWORK 4.7.2 (I was in .NETCORE before and I hadn't this issue before, but I had to change)
Thanks,
J
The text was updated successfully, but these errors were encountered: