http://bugs.winehq.com/show_bug.cgi?id=1341
Summary: MS Excel viewer crashes wine when attempting to print
file (on certain files only)
Product: Wine
Version: 20030318
Platform: Other
URL: http://www.agecon.ksu.edu/kdhuyvetter/Spreadsheets/cowle
ase.xls
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-gdi
AssignedTo: wine-bugs(a)winehq.com
ReportedBy: wine(a)alk.org.lu
For certain Excel files, the Microsoft Excel viewer
(http://download.microsoft.com/download/excel2000/Xlviewer/2000/WIN98/EN-US/…)
crashes when attempting to print. For other Excel files, it works just fine.
At the following URL is one example that crashes:
http://www.agecon.ksu.edu/kdhuyvetter/Spreadsheets/cowlease.xls
Here is how to reproduce:
1. Start the xlviewer with the given file:
wine -debugmsg +psdrv xlview l:cowlease.xls
2. Go into print preview (File Menu, print preview)
3. Select setup
4. Click OK in the page setup dialog (no need to change any of the settings.
5. As soon as you click ok, you get a dialog box saying:
> Your file could not be printed due to an error on a on LPR:lp. There are several
possible reasons:
> There may not be enough memory available. Try closing files and programs you
aren't using.
> If you use a network for printing, there may be a problem with the network
connection or the printer driver.
> There may be loose cables or a bad connection between your computer and
printer.
6. Soon after, wine crashes, here is the end of the log (sometimes clicking OK on the
dialog is necessary to produce the crash)
trace:psdrv:PSDRV_SelectBrush hbrush = 0x72
trace:psdrv:PSDRV_SelectFont FaceName = L"" Height = 100 Italic = 0 Weight = 400
trace:psdrv:PSDRV_SelectBuiltinFont Trying to find facename 'Courier'
trace:psdrv:PSDRV_SelectBuiltinFont Got family 'Courier'
trace:psdrv:PSDRV_SelectBuiltinFont Got font 'Courier'
trace:psdrv:ScaleFont 'Courier' 100
trace:psdrv:ScaleFont Selected PS font 'Courier' size 88 weight 400.
trace:psdrv:ScaleFont H = 100 As = 74 Des = 26 IL = 12 EL = 0
trace:psdrv:PSDRV_SetDeviceClipping hdc=0xc70
trace:psdrv:PSDRV_FindPrinterInfo 'a'
trace:psdrv:PSDRV_ExtDeviceMode (Driver=WINEPS, hwnd=(nil), devOut=(nil),
Device='a', Port='LPT1:', devIn=(nil), Profile='(null)', Mode=0000)
trace:psdrv:PSDRV_SelectPen hpen = 0x8e colour = 00000000
trace:psdrv:PSDRV_SelectBrush hbrush = 0x72
trace:psdrv:PSDRV_SelectFont FaceName = L"System" Height = 16 Italic = 0 Weight
= 400
trace:psdrv:PSDRV_SelectBuiltinFont Trying to find facename 'System'
trace:psdrv:PSDRV_SelectBuiltinFont Got family 'Helvetica'
trace:psdrv:PSDRV_SelectBuiltinFont Got font 'Helvetica'
trace:psdrv:ScaleFont 'Helvetica' 16
trace:psdrv:ScaleFont Selected PS font 'Helvetica' size 14 weight 400.
trace:psdrv:ScaleFont H = 16 As = 13 Des = 3 IL = 2 EL = 0
trace:psdrv:PSDRV_DeleteDC
trace:psdrv:PSDRV_FindPrinterInfo 'a'
trace:psdrv:PSDRV_CreateDC (WINEPS a LPT1: (nil))
trace:psdrv:PSDRV_UpdateDevCaps ImageableArea = 75,150 - 2475,3150: PageSize
= 2550x3300
trace:psdrv:PSDRV_UpdateDevCaps devcaps: horzSize = 203mm, vertSize = 253mm,
horzRes = 2400, vertRes = 3000
trace:psdrv:PSDRV_SelectPen hpen = 0x8e colour = 00000000
trace:psdrv:PSDRV_SelectBrush hbrush = 0x72
trace:psdrv:PSDRV_SelectFont FaceName = L"" Height = 100 Italic = 0 Weight = 400
trace:psdrv:PSDRV_SelectBuiltinFont Trying to find facename 'Courier'
trace:psdrv:PSDRV_SelectBuiltinFont Got family 'Courier'
trace:psdrv:PSDRV_SelectBuiltinFont Got font 'Courier'
trace:psdrv:ScaleFont 'Courier' 100
trace:psdrv:ScaleFont Selected PS font 'Courier' size 88 weight 400.
trace:psdrv:ScaleFont H = 100 As = 74 Des = 26 IL = 12 EL = 0
trace:psdrv:PSDRV_SetDeviceClipping hdc=0xc74
trace:psdrv:PSDRV_FindPrinterInfo 'a'
trace:psdrv:PSDRV_ExtDeviceMode (Driver=WINEPS, hwnd=(nil),
devOut=0x42436580, Device='a', Port='LPT1:', devIn=0x424364d0, Profile='(null)',
Mode=000a)
trace:psdrv:PSDRV_ExtDeviceMode DM_MODIFY set. devIn->dmFields = 00007b13
trace:psdrv:PSDRV_MergeDevmodes Changing orientation to 1 (Portrait)
trace:psdrv:PSDRV_MergeDevmodes Changing page to Letter 2159 x 2794
trace:psdrv:PSDRV_MergeDevmodes Changing Scale to 100
trace:psdrv:PSDRV_MergeDevmodes Changing Copies to 1
trace:psdrv:PSDRV_MergeDevmodes Trying to change to unsupported bin 7
trace:psdrv:PSDRV_SelectPen hpen = 0x8e colour = 00000000
trace:psdrv:PSDRV_SelectBrush hbrush = 0x72
trace:psdrv:PSDRV_SelectFont FaceName = L"System" Height = 16 Italic = 0 Weight
= 400
trace:psdrv:PSDRV_SelectBuiltinFont Trying to find facename 'System'
trace:psdrv:PSDRV_SelectBuiltinFont Got family 'Helvetica'
trace:psdrv:PSDRV_SelectBuiltinFont Got font 'Helvetica'
trace:psdrv:ScaleFont 'Helvetica' 16
trace:psdrv:ScaleFont Selected PS font 'Helvetica' size 14 weight 400.
trace:psdrv:ScaleFont H = 16 As = 13 Des = 3 IL = 2 EL = 0
trace:psdrv:PSDRV_DeleteDC
trace:psdrv:PSDRV_SelectPen hpen = 0x8e colour = 00000000
trace:psdrv:PSDRV_SelectFont FaceName = L"" Height = 100 Italic = 0 Weight = 400
trace:psdrv:PSDRV_SelectBuiltinFont Trying to find facename 'Courier'
trace:psdrv:PSDRV_SelectBuiltinFont Got family 'Courier'
trace:psdrv:PSDRV_SelectBuiltinFont Got font 'Courier'
trace:psdrv:ScaleFont 'Courier' 100
trace:psdrv:ScaleFont Selected PS font 'Courier' size 88 weight 400.
trace:psdrv:ScaleFont H = 100 As = 74 Des = 26 IL = 12 EL = 0
trace:psdrv:PSDRV_MergeDevmodes Changing PaperLength|Width to 269x0
trace:psdrv:PSDRV_MergeDevmodes Changing Scale to 0
trace:psdrv:PSDRV_UpdateDevCaps ImageableArea = 0,0 - 0,317: PageSize = 0x317
trace:psdrv:PSDRV_UpdateDevCaps devcaps: horzSize = 26mm, vertSize = 0mm,
horzRes = 317, vertRes = 0
trace:psdrv:PSDRV_ExtEscape QUERYESCSUPPORT for 4115
trace:psdrv:PSDRV_SelectPen hpen = 0x8e colour = 00000000
trace:psdrv:PSDRV_SelectBrush hbrush = 0x72
trace:psdrv:PSDRV_SelectFont FaceName = L"System" Height = 16 Italic = 0 Weight
= 400
trace:psdrv:PSDRV_SelectBuiltinFont Trying to find facename 'System'
trace:psdrv:PSDRV_SelectBuiltinFont Got family 'Helvetica'
trace:psdrv:PSDRV_SelectBuiltinFont Got font 'Helvetica'
trace:psdrv:ScaleFont 'Helvetica' 16
trace:psdrv:ScaleFont Selected PS font 'Helvetica' size 14 weight 400.
trace:psdrv:ScaleFont H = 16 As = 13 Des = 3 IL = 2 EL = 0
trace:psdrv:PSDRV_DeleteDC
trace:psdrv:DllMain (0x42510000, 0x00000000, (nil))
wine: Unhandled exception, starting debugger...
Wine already configured, run 'winesetup' to reconfigure.
WineDbg starting on pid 8
No debug information in ELF 'wine' (0x00000000)
Breakpoint 1 at 0x4000adc0
No debug information in ELF '/usr/lib/libntdll.dll.so' (0x40027000)
No debug information in ELF '/usr/lib/libwine.so' (0x40129000)
No debug information in ELF '/usr/lib/libwine_unicode.so' (0x40141000)
No debug information in ELF '/lib/libm.so.6' (0x40222000)
No debug information in ELF '/lib/libc.so.6' (0x40245000)
No debug information in ELF '/lib/libdl.so.2' (0x40363000)
No debug information in ELF '/lib/ld-linux.so.2' (0x40000000)
No debug information in ELF '/usr/lib/wine/advapi32.dll.so' (0x406d3000)
No debug information in ELF '/usr/lib/wine/kernel32.dll.so' (0x40702000)
No debug information in ELF '/usr/lib/wine/gdi32.dll.so' (0x407b0000)
No debug information in ELF '/usr/lib/wine/ole32.dll.so' (0x40834000)
No debug information in ELF '/usr/lib/wine/user32.dll.so' (0x408b0000)
No debug information in ELF '/usr/lib/wine/rpcrt4.dll.so' (0x409f3000)
No debug information in ELF '/usr/lib/wine/comdlg32.dll.so' (0x40a3d000)
No debug information in ELF '/usr/lib/wine/shell32.dll.so' (0x40abc000)
No debug information in ELF '/usr/lib/wine/shlwapi.dll.so' (0x40b44000)
No debug information in ELF '/usr/lib/wine/comctl32.dll.so' (0x40b97000)
No debug information in ELF '/usr/lib/wine/winspool.drv.so' (0x40c4a000)
No debug information in ELF '/usr/lib/libfreetype.so.6' (0x40c81000)
No debug information in ELF '/usr/lib/wine/x11drv.dll.so' (0x40cc3000)
No debug information in ELF '/usr/X11R6/lib/libSM.so.6' (0x4001a000)
No debug information in ELF '/usr/X11R6/lib/libICE.so.6' (0x40d36000)
No debug information in ELF '/usr/X11R6/lib/libXext.so.6' (0x40d4d000)
No debug information in ELF '/usr/X11R6/lib/libX11.so.6' (0x40d5b000)
No debug information in ELF '/usr/lib/libGL.so.1' (0x40e53000)
No debug information in ELF '/usr/lib/libGLcore.so.1' (0x40ea0000)
No debug information in ELF '/usr/X11R6/lib/libXrender.so.1' (0x40367000)
No debug information in ELF '/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2'
(0x40023000)
No debug information in ELF '/usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2'
(0x413e0000)
No debug information in ELF '/lib/libnss_files.so.2' (0x41640000)
No debug information in ELF '/usr/lib/wine/mpr.dll.so' (0x42330000)
No debug information in 32bit DLL 'C:\Program Files\XLView\XLVIEW.EXE'
(0x30000000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\NTDLL.DLL' (0x40050000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\KERNEL32.DLL'
(0x40730000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\ADVAPI32.DLL'
(0x406e0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\GDI32.DLL' (0x407d0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\USER32.DLL'
(0x408d0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\RPCRT4.DLL'
(0x40a10000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\OLE32.DLL' (0x40850000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MSO97V.DLL'
(0x306c0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\SHLWAPI.DLL'
(0x40b60000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\COMCTL32.DLL'
(0x40bb0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\SHELL32.DLL'
(0x40ae0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\WINSPOOL.DRV'
(0x40c50000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\COMDLG32.DLL'
(0x40a50000)
No debug information in 32bit DLL 'C:\PROGRAM FILES\XLVIEW\XLINTL32.DLL'
(0x30c50000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\X11DRV.DLL'
(0x40ce0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MPR.DLL' (0x42340000)
Unhandled exception: page fault on read access to 0x00000050 in 32-bit code
(0x300502fa).
In 32-bit mode.
0x300502fa (XLVIEW.EXE.EntryPoint+0x37e2a in C:\Program
Files\XLView\XLVIEW.EXE): pushl 0x50(%eax)
Wine-dbg>
Other spreadsheets than the above examples only lead to the dialog box, but not the
crash. Others yet print just fine. Others print fine, as long as no setting is changed in
page setup, but crash when chosing landscape mode. And I even have seen a case
that crashed when picking landscape mode in the page setup box, but not when
picking landscape in the printer options box.
I use wine-20030302-0.i586.rpm on a SuSE 8.1 box.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1341>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1340
------- Additional Comments From info(a)moabutah.com 2003-03-23 16:06 -------
Ok that was much easier. It wouldn't redirect it to a file with just >...
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1340
------- Additional Comments From info(a)moabutah.com 2003-03-23 16:00 -------
Created an attachment (id=428)
Debug as per instructions
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1340
------- Additional Comments From tony_lambregts(a)telusplanet.net 2003-03-23 15:05 -------
use 2> as follows
wine -debugmsg +relay,+file,+dosfs "c:\name of\program" 2> logfile.log
Hope this helps.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1340
------- Additional Comments From info(a)moabutah.com 2003-03-23 14:13 -------
I have attached debug messages
The file was quite large and this was all i could export using "save history" in konsole
with unlimited history length. Part of the end of the messages is cut off.
If you know a more appropriate method of exporting the output to a file (> didn't work
either), I can redo the attachment.
Also, I noted that in the install process, the EULA text is missing, although all other text
is visible.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1340
------- Additional Comments From info(a)moabutah.com 2003-03-23 14:11 -------
Created an attachment (id=427)
debug messages
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1303
------- Additional Comments From julliard(a)winehq.com 2003-03-23 14:08 -------
I think it may be fixed now. Could you please try latest CVS?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1303>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1303
------- Additional Comments From tony_lambregts(a)telusplanet.net 2003-03-23 11:41 -------
Well this helps a little i think.
2003-01-21 14:16:00 CST works fine.
Then this patch is applied
http://www.winehq.com/hypermail/wine-cvs/2003/01/0284.html
Old revision New revision Changes Path
1.47 1.48 +4 -3 wine/dlls/x11drv/window.c
1.16 1.17 +3 -0 wine/dlls/x11drv/event.c
2003-01-21 14:17:00 CST doesn't respond to keyboard input at all.
2003-01-27 18:34:00 CST still doesn't respond to keyboard input.
Then this patch is applied
http://www.winehq.com/hypermail/wine-cvs/2003/01/0325.html
Old revision New revision Changes Path
1.119 1.120 +1 -0 wine/include/x11drv.h
1.66 1.67 +2 -0 wine/dlls/x11drv/x11drv_main.c
1.9 1.10 +2 -1 wine/dlls/x11drv/desktop.c
2003-01-27 18:35:00 CST responds, but has the "stutter" bug.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1303>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1303
------- Additional Comments From torbjorn.e.andersson(a)tietoenator.com 2003-03-23 08:49 -------
I'm a bit uncertain of what is managed mode and what isn't. I run it in a window
rather than fullscreen, if that's what you mean. (When using EMI's OpenGL
renderer mode switching doesn't work for me, and there are still some stability
and functionality issues with the Direct3D renderer.)
I haven't made any debug traces yet, but I did attempt regression testing.
However, that turned out to be a bit harder than I had first hoped:
2003-01-21 14:16:00 CST works fine.
2003-01-21 14:17:00 CST doesn't respond to keyboard input at all.
2003-01-27 18:34:00 CST still doesn't respond to keyboard input.
2003-01-27 18:35:00 CST responds, but has the "stutter" bug.
Is this helpful at all? There is a distressingly long period of time during
which the bug could have been introduced. As you suggested, disabling keyboard
auto-repeat "fixes" it though.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1303>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1340
------- Additional Comments From andi(a)rhlx01.fht-esslingen.de 2003-03-23 04:57 -------
Interesting.
Please attach a --debugmsg +relay,+file,+dosfs logfile.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.