[Bug 45925] New: WPF application (.NET 4.5) printing fail
https://bugs.winehq.org/show_bug.cgi?id=45925 Bug ID: 45925 Summary: WPF application (.NET 4.5) printing fail Product: Wine Version: 3.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: spooler Assignee: wine-bugs(a)winehq.org Reporter: lxndrkrlv(a)gmail.com Distribution: --- WPF application uses Print Ticket API. This API is implemented in prntvpt.dll. When I use prntvpt.dll from Wine, .NET Exception is thrown: External component has thrown an exception. StackTrace: at MS.Internal.Printing.Configuration.UnsafeNativeMethods.PTOpenProviderExImpl(String deviceName, Int32 maxVersion, Int32 prefVersion, SafePTProviderHandle& handle, Int32& usedVersion) at MS.Internal.Printing.Configuration.UnsafeNativeMethods.PTOpenProviderEx(String deviceName, Int32 maxVersion, Int32 prefVersion, SafePTProviderHandle& handle, Int32& usedVersion) ... <skipped> ... at MS.Internal.Printing.Win32PrintDialog.ShowDialog() at System.Windows.Controls.PrintDialog.ShowDialog() Wine console output is: wine: Call from 0x7b43d526 to unimplemented function prntvpt.dll.PTOpenProviderEx, aborting wine: Call from 0x7b43d526 to unimplemented function prntvpt.dll.PTOpenProviderEx, aborting wine: Call from 0x7b43d526 to unimplemented function prntvpt.dll.PTOpenProviderEx, aborting Another issue when I use native prntvpt.dll from Windows XP .Net Exception: System.ArgumentNullException: Value cannot be null. Parameter name: printQueue at System.Windows.Xps.XpsDocumentWriter..ctor(PrintQueue printQueue) at System.Printing.PrintQueue.CreateXpsDocumentWriter(PrintQueue printQueue) at System.Windows.Controls.PrintDialog.CreateWriter(String description) at System.Windows.Controls.PrintDialog.PrintDocument(DocumentPaginator documentPaginator, String description) Wine console output is (multiple times): 0009:fixme:winspool:GetPrinterW Unimplemented level 1 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x(a)gmail.com --- Comment #1 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- Created attachment 62496 --> https://bugs.winehq.org/attachment.cgi?id=62496 stub for PTOpenProviderEx Here`s a stub for PTOpenProviderEx, it should i think at least fix the crash. Maybe you`re lucky and the app has another codepath availabe for printing? Could you add the name of the app to this bugreport, and if it is free/has a trial add a downloadlink? Thanks -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|WPF application (.NET 4.5) |WPF application (.NET 4.5) |printing fail |printing fail: crash in | |unimplemented function | |prntvpt.dll.PTOpenProviderE | |x Keywords| |dotnet -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 --- Comment #2 from Alexander <lxndrkrlv(a)gmail.com> --- (In reply to Louis Lenders from comment #1)
Could you add the name of the app to this bugreport, and if it is free/has a trial add a downloadlink? Thanks
I can't provide real app - this is huge and need for App Server, SQL Database, ... But I attached a small test application with source code. This application on click button on main screen should show WPF PrintDialog. Dialog should contains the list of printers, installed in OS. .NET code that crashes is very simple: var pd = new PrintDialog(); pd.ShowDialog(); -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 --- Comment #3 from Alexander <lxndrkrlv(a)gmail.com> --- Created attachment 62524 --> https://bugs.winehq.org/attachment.cgi?id=62524 Test application (with source) Application should show WPF print dialog after click button on main screen. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source Status|UNCONFIRMED |NEW URL| |https://bugs.winehq.org/att | |achment.cgi?id=62524 Ever confirmed|0 |1 --- Comment #4 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- Thanks for the good and useful info. A stub has been added in wine-3.18 that at least should prevent the crash: https://source.winehq.org/git/wine.git/?a=commit;h=03800be0daf82ec31933af363... A real implementation/fix could take quite some time I guess as this function /dll seems not wide-spreadly used, so my guess it`s not high priority at prioritylist of wine-developers... Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |printing -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 Vijay Kamuju <infyquest(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest(a)gmail.com Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |03800be0daf82ec31933af363e2 | |e1cea12485337 --- Comment #5 from Vijay Kamuju <infyquest(a)gmail.com> --- fixed by commit 03800be0daf82ec31933af363e2e1cea12485337 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45925 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 4.4. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org