[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#329696: kdeprint: Printing dialog crashes if Properties button is pressed



Hi,

For some reason not obvious to me, kprinter stores its printing settings in 
~/.lpoptions (I expected to find the settings under ~/.kde). When I finally 
used strace to check which file gets opened when I save the printer settings, 
I removed that file and the crashing stopped.

---This is what I had in my .lpoptions when the crashes occurred:
Default HP_DeskJet_5150 _kde-filters=psnup _kde-psnup-nup=2 
media=A4,Normal,Upper sides=one-sided
Special Advanced%20Faxing%20Tool%20(ksendfax)
Special Mail%20PDF%20File
Special Mail%20PDF%20file
Special Print%20to%20File%20(PDF)
Special Print%20to%20File%20(PostScript)
Special Send%20to%20Fax

--- And this is what gets generated by default when I save the settings:
Default HP_DeskJet_5150
Special Advanced%20Faxing%20Tool%20(ksendfax)
Special Mail%20PDF%20File
Special Mail%20PDF%20file
Special Print%20to%20File%20(PDF)
Special Print%20to%20File%20(PostScript)
Special Send%20to%20Fax

I tried to further isolate the problem, and it seems the bug is in the "media" 
option parser: Both "Normal" and "Upper" crash the program if they are found 
in the "media=" list. Furthermore, if I add random letters after media=, 
kdeprint will also crash. However, garbage anywhere else doesn't seem matter 
as far as kdeprint is conserned.

I haven't tinkered with .lpoptions before, and I don't know how the 
"media=A4,Normal,Upper" got there in the first place. Anyway, kdeprint 
shouldn't just crash if some other program adds kdeprint incompatible options 
to .lpoptions.

-- 
Jarkko Suontausta



Reply to: