Skip to content
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

Gtk.PrintOperation stopped working on Windows 10 #271

Open
lexos-development opened this issue May 9, 2019 · 13 comments
Open

Gtk.PrintOperation stopped working on Windows 10 #271

lexos-development opened this issue May 9, 2019 · 13 comments

Comments

@lexos-development
Copy link

I have a cross platform application that I developed under OXS with Visual Studio that should mainly run under Windows. Lately I realized, that the Gtk.PrintOperation now causes a System.AccessViolationException under Windows, regardless if I build it as native Windows Application using GtkSharp on Windows or run the Mono build from the OSX build by Mono. About one month ago, every thing worked fine.

I am clueless at this point, because nothing I tried worked out. Is there anyone who can still print with Gtk under Windows? Is there a C# application that I can build and try? I did fail to get the gtk-sharp libraries and examples built on Windows. The documentation was to poor to understand what I therefor need.

Any suggestions?

@lexos-development lexos-development changed the title Gtk.PrintOperation stopped working in Windows Gtk.PrintOperation stopped working on Windows 10 May 9, 2019
@Therzok
Copy link
Contributor

Therzok commented May 9, 2019

Is this using gtk# 2.12? Might be a problem in the bindings. I'll take a look and release a new version if it's 2.12

@lexos-development
Copy link
Author

Yes it is 2.12.45, as it is in the installer for .net Windows. Thanks allot for your support!

@Therzok
Copy link
Contributor

Therzok commented May 9, 2019

Seeing the dame thing here. It seems that the callbacks are not getting generated with the userdata parameter, have to figure out why.

@Therzok
Copy link
Contributor

Therzok commented May 9, 2019

Huh, no, the class only has these two:
https://github.com/bratsche/gtk/blob/ff3424b5ef5177f32fa6933cee439dfa3d3d89b8/gtk/gtkprintoperation.h#L91

I'm wondering if there's some mis-use at gtk level of the native Windows APIs. The bindings look okay.

@Therzok
Copy link
Contributor

Therzok commented May 9, 2019

Was it still gtk# 2.12.45 a few months ago?

@Therzok
Copy link
Contributor

Therzok commented May 9, 2019

I'm trying to pin down whether it's a problem with gtk# or some windows update changed something.

@lexos-development
Copy link
Author

As fare as I know, I did not change anything at the libraries and at the usage. Furthermore I checked out the version from a month ago, built it new and it also failed. So I am pretty sure, that it is something within the print layer. I also had the last windows update in mind, but could not tell, because there was no possibility to debug the cause. This was the reason, why I was asking if anyone knows an application that uses Gtk.PrintOperation, so that I can check, whether this application has this issue now too.

@Therzok
Copy link
Contributor

Therzok commented May 9, 2019

Yup, seems to not be gtk# (the bindings) at fault. Maybe something in gtk+, which I don't have expertise in fixing.

@lexos-development
Copy link
Author

Hmm, who could we contact then? Who is the provider of the gtk library? Should Gimp than be affected also?

@lexos-development
Copy link
Author

I now tried Gimp 2.10 under Windows and it is not affected. So at least the new GTK+ libraries (that I guess are included within Gimp) are working fine. Is there anything I can check? What are the affected dependencies of the gtk-sharp package?

@sundermann
Copy link
Contributor

You cannot be sure that Gimp is shipping the most recent gtk. Recreate the desired behaviour in a simple c program and check if the error is present on Windows.

@lexos-development
Copy link
Author

Ok, which gtk libraries are used within gtk-sharp? Do you know the repository?

@lexos-development
Copy link
Author

Yup, seems to not be gtk# (the bindings) at fault. Maybe something in gtk+, which I don't have expertise in fixing.

Are there any further steps in progress or do I have to surround it by using the Windows libraries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants