https://bugs.winehq.org/show_bug.cgi?id=55218
Bug ID: 55218 Summary: Lotus Script "Print" macro crashes Lotus Approach Product: Wine-staging Version: 8.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ToddAndMargo@zoho.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 74832 --> https://bugs.winehq.org/attachment.cgi?id=74832 $ WINEDEBUG=seh,gdi,enhmetafile,winspool,localspl,psdrv wine approach.exe 2&>1
WinePrintError.txt
Fedora 38 Wine 8.11 Lotus Approach N99.8.0208.0800 (Smart Suite)
In Lotus Approach, when you call the "Print" macro from a Lotus Script: RunApproachMacro("Print") Lotus Approach crashes. This happens about one out of every two print attempts.
Occasionally, a "MEM_BAD_POINTER" will popup from Approach when it crashes.
The attachment was created with:
$ WINEDEBUG=seh,gdi,enhmetafile,winspool,localspl,psdrv wine approach.exe 2&>1
WinePrintError.txt
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #1 from Todd Chester ToddAndMargo@zoho.com --- Note: a workaround to this bug:
In your Lotus Script, replace RunApproachMacro("Print")
with CurrentWindow.Print
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #2 from Ken Sharp imwellcushtymelike@gmail.com --- Does this occur in vanilla Wine?
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #3 from Todd Chester ToddAndMargo@zoho.com --- (In reply to Ken Sharp from comment #2)
Does this occur in vanilla Wine?
No idea. I use what is in teh Fedora repos. If I spin my own wine, it messes up rpm database up pretty bad and is a pain in the neck to get back to the Fedora repos.
I see 8.12 is in the Fedora testing repo.
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #4 from Todd Chester ToddAndMargo@zoho.com --- Hi All,
Things have changed with new revisions:
# rpm -qa wine Note: this is Wine Staging wine-8.18-1.fc38.i686 wine-8.18-1.fc38.x86_64
Lotus Approach N99.8.0208.0800 (Smart Suite)
Neither the macro command RunApproachMacro("Print")
or the Lotus Script command CurrentWindow.Print
Have any effect on printing. But neither no longer crashes. Manually printing does work fine.
Please fix as soon as possible.
Many thanks, -T
https://bugs.winehq.org/show_bug.cgi?id=55218
Todd Chester ToddAndMargo@zoho.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Lotus Script "Print" macro |Lotus |crashes Lotus Approach |ScriptRunApproachMacro("Pri | |nt") and the Lotus Script | |CurrentWindow.Print are | |ignored
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Can you please attached the WinePrintError.txt?
Current attachment is just a backtrace of the crash.
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #6 from Todd Chester ToddAndMargo@zoho.com ---
Can you please attached the WinePrintError.txt? Current attachment is just a backtrace of the crash.
I am not sure what you are want. "WinePrintError.txt" was suppose to be a backtrace of the crash. I will reattach it just in case I attached something different.
If you want a different trace, please write down the command line and I will run it for you.
If it would help the troubleshooting, I can make up a sample approach file with sample lotus macro command and sample lotus script command for you to run. I can eMail it to you so you can run it through virus total or I can attach it here if you are not worried about a virus. And I can write directions on how to run the commands.
The script in question. Note that the print macro command still crashes Approach.
Sub PrintEnvelope ' The "Envelope" tab seems to remember the customer when entering it, ' but looses the invoice SequenceNo when returning to the "Invoices" tab ' when it is linked one (customer) to many (invoices) Dim ThisSequenceNo As Variant Dim ThisCustomer As Variant Dim SeqFind As New Find
' Save everthing before continuing RunApproachMacro("Enter") ThisSequenceNo = CurrentView.Body.SequenceNo.text ' Record "ThisCustomer" in case in the future the "Envelope" tab starts to loose ' the customer number and we need to do a find on it ThisCustomer = CurrentView.Body.Customer~ No.Text
Set CurrentWindow.ActiveView = CurrentDocument.Envelope ' CurrentWindow.CurrentRecord = ThisSequenceNo RunApproachMacro("Print") ' CurrentWindow.Print
Set CurrentWindow.ActiveView = CurrentDocument.Invoices CurrentWindow.Browse
SeqFind.And "InvSeqNo", ThisSequenceNo CurrentWindow.FindSort SeqFind CurrentDocument.Window.FindAll
' Msgbox "Customer No < " + Str (Customer) + "> This Sequence No < " + Str (ThisSequenceNo) + ">", 64, "Test Result" End Sub
https://bugs.winehq.org/show_bug.cgi?id=55218
Todd Chester ToddAndMargo@zoho.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Lotus |Lotus |ScriptRunApproachMacro("Pri |ScriptRunApproachMacro("Pri |nt") and the Lotus Script |nt") Crashes and the Lotus |CurrentWindow.Print are |Script CurrentWindow.Print |ignored |is ignored
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #7 from Todd Chester ToddAndMargo@zoho.com --- Created attachment 75343 --> https://bugs.winehq.org/attachment.cgi?id=75343 mv WINEDEBUG=+winspool wine approach.exe > Wine.Print.Macro.Crashes.txt 2>&
RunApproachMacro("Print") WINEDEBUG=+winspool wine approach.exe > Wine.Print.Macro.Crashes.txt 2>&
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #8 from Todd Chester ToddAndMargo@zoho.com --- Created attachment 75344 --> https://bugs.winehq.org/attachment.cgi?id=75344 WINEDEBUG=+winspool wine approach.exe > Wine.Print.Script.Ignored.txt 2>&1
RunApproachMacro("Print") WINEDEBUG=+winspool wine approach.exe > Wine.Print.Script.Ignored.txt 2>&1
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #9 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Todd Chester from comment #7)
Created attachment 75343 [details] mv WINEDEBUG=+winspool wine approach.exe > Wine.Print.Macro.Crashes.txt 2>&
RunApproachMacro("Print") WINEDEBUG=+winspool wine approach.exe > Wine.Print.Macro.Crashes.txt 2>&
Thanks, that a better trace log.
Could you please use the following channels. WINEDEBUG=winspool,spoolss,localspl,psdrv
https://bugs.winehq.org/show_bug.cgi?id=55218
--- Comment #10 from Todd Chester ToddAndMargo@zoho.com --- I see we are on to 8.21 now. Has this been addressed in Wine Staging yet? If so, I will ask fedora to include it in their testing repo (they are pretty good about such things).