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@winehq.com ReportedBy: wine@alk.org.lu
For certain Excel files, the Microsoft Excel viewer (http://download.microsoft.com/download/excel2000/Xlviewer/2000/WIN98/EN-US/x...) 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.