-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update nuget package #20
Comments
I was thinking about this yesterday; the problem is that I've not been able to test the non-.NET core stuff, so I'm hesitant to 'just do it'. I don't have anything on tomorrow, so I'll have another go at getting everything running. |
If it helps, the gtk2 and gtk3 builds both work for me on linux when targeting .net framework. No idea about windows :). |
I'm afraid a whole load of Python and Haskell have stopped me having time to look at this today and I shan't have time tomorrow: feel free to ping me semi-regularly so that I don't forget I'm meant to be doing this. @hol430 thanks for testing |
Hi @VisualMelon, any update on this? Having an updated nuget package would be useful for people using oxyplot-gtksharp with GtkSharp (see #21). |
@hol430 thanks for the nudge; I'll see if I can get this tested on Windows today; otherwise, I think we are good to go? |
I think so; we've been using the netstandard version in our release builds (Linux, windows and mac) for several months now If it helps, I was able to build and run the gtk3 example browser on windows under both .net core (via GtkSharp) and .net framework 4.5.1 (via gtk-sharp-3). The gtk2 build I'm not sure about - on windows, I was able to build it, but encountered BadImageFormatExceptions at runtime. This is probably just a problem with my machine though. |
OK. Seeing as we can't get Gtk to work, I think I'll just push the new Gtk3 stuff for the time being. To avoid my doing something daft, I have for now pushed a Preview-1 to MyGet (https://www.myget.org/feed/melonoxyplottesting/package/nuget/OxyPlot.GtkSharp3) If you happen to be able to let me know if that works that would be very helpful; if not, no problem: I'll find some time to test it (I can probably borrow a Mac from someone; though I don't have any Linux VMs lying around these days). Once we are happy the package works, then I'll push up a Preview-1 to NuGet. Hopefully that will see some wider usage, and we can address/document any remaining deployment issues before releasing 2.1.0 proper. |
Sure thing - I can test on windows, Mac and Linux, although my Mac is currently in the office so I don't have access to it until early next year. Will test the others tomorrow and get back to you re Mac support. |
@hol430 many thanks! |
Ok, I just tested on Linux and windows and the Preview1 package on your myget seems to be working fine in my tests. (Not that I tested every feature.) |
Pushed OxyPlot.GtkSharp3 2.1.0-Preview1 to NuGet |
Many thanks @VisualMelon! |
Just as another datapoint, it works fine here, on Ubuntu-21.10 with dotnet-6 packages from MIcrosoft. Thanks! |
I've just tested this on MacOS 10.15.7 (Catalina) and was able to build run the latest gtk3 example browser without problems. This requires that you've installed the gtk3 runtimes as per the instructions in the GtkSharp repo (ie Edit: nuget package also seems to be working fine on macos...insofar as I can tell from a quick manual test. |
I've been using this library for a while and somehow on windows now randomly could crash with AccessViolationException. It runs real smooth on Ubuntu 20.04 but recently crashed on Windows. I'm aware that there is many factors that could crash the application. I'm still investigating and still got no clue but the problem does not occur if I dont update the chart. I've made sure that any calls to UI update is wrapped inside Application.Invoke() and still it crashes on Windows. Still investigating till today. |
If you've recently updated GtkSharp versions, that could be the culprit. They have changed the way that memory is handled (in terms of disposal of native resources) in the last year or so, which can result in crashes if your application is not behvaing "correctly". Any warning messages (e.g. |
Ah that could make some clue. |
This warning message shows up on console
|
Likely related to memory management/disposal of your objects. Even if that message is not what's causing the crash, it's indicative of a problem that will be worth solving anyway. GtkSharp/GtkSharp#82 may be worth a read if you're not familiar with how this works. |
Update nuget package with with correct version 2.1
Now that the port to version 2.1 was done. The current nuget package is still outdated (v1.0). It would be great to update the version number and dependencies to oxy* 2.1
The text was updated successfully, but these errors were encountered: