Closed
Bug 127520
Opened 23 years ago
Closed 23 years ago
Large pictures print corrupted
Categories
(Core Graveyard :: Printing: Xprint, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.0
People
(Reporter: roland.mainz, Assigned: roland.mainz)
References
()
Details
Attachments
(2 files)
92.88 KB,
image/gif
|
Details | |
1.12 KB,
patch
|
db48x
:
review+
attinasi
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
Printing the example URL (a large JPEG) ends in a corrupted printout.
Reproducible: Always
Steps to Reproduce:
1. Go to the example URL
2. print it
3. it prints the image in "pieces"
Config:
2002-02-23-08-trunk build on Solaris 7 SPARC, both my hacked version and the
Solaris 7 Xprt show the same problem.
----
First I thought the xlibrgb image tiling code was somehow enabled - but it
isn't. This seems to be a completly new issue. Adding some debugging output
confirms that there is only _one_ |XPutImage()| send to the Xprt server - but
the resulting output shows three Im24 instructions (the first two matches are
from the prolog):
-- snip --
% cat Xpjob_020224073511 | fgrep Im24
/Im24{gs 6 4 r tr scl 8 [3 i 0 0 5 i 0 0]{cf str3 rh p} f 3 ci}bd/Im1t{6
4 r tr scl t [3 i 0 0 5 i 0 0]{} im}bd/Im24t{gs 6 4 r tr scl 8 [3 i 0 0
253 253 829 315 2961 1125 Im24
253 568 829 315 2961 1125 Im24
253 883 829 3 2961 11 Im24
-- snip --
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Comment 2•23 years ago
|
||
Looking at xc/lib/X11/PutImage.c - there is some code which splits-up a putimage
request into multiple subimages (see |PutSubImage()| in xc/lib/X11/PutImage.c).
Maybe this is the source of the problem - the image gets split to fit into one
X protocol request but |PutImageRequest()| does not adjust for the difference
between image resolution and display resolution... xx@@@!!!... ;-(
Assignee | ||
Comment 3•23 years ago
|
||
Taking...
Assignee: katakai → Roland.Mainz
QA Contact: Roland.Mainz → katakai
Assignee | ||
Comment 4•23 years ago
|
||
Fix in bug 127657...
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Assignee | ||
Comment 5•23 years ago
|
||
Patch for bug 127657 has been checked in... this should be fixed now.
Marking bug as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•23 years ago
|
||
Fun... this bug is still there (looks that the patch only) ...
Testcases:
- http://www.google.com/technology/pigeonrank.html
- http://www.foreverbrandy.com/paparazzi/01.php
Reopening...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 7•23 years ago
|
||
s/looks that the patch only/looks that the patch only was only a partial fix/
Assignee | ||
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Priority: -- → P1
Assignee | ||
Comment 8•23 years ago
|
||
Fix is to reduce the amount of data used for one image. The original fix worked
but not in all cases because there is a small range of size values which may
trigger both our own splitting code and the code in xc/lib/X11/PutImage.c,
too... ;-(
Assignee | ||
Updated•23 years ago
|
Comment 9•23 years ago
|
||
Comment on attachment 78712 [details] [diff] [review]
Patch for 2002-04-09-08-trunk
r=db48x
Attachment #78712 -
Flags: review+
Comment 10•23 years ago
|
||
Comment on attachment 78712 [details] [diff] [review]
Patch for 2002-04-09-08-trunk
sr=attinasi, but I have to say, gawd that is ugly ;) the numeric (vs. symbolic)
integer constants are ugly, and the shifting is ugly... I know, some people
like that kind of thing, but not me. Anyway, looks like it should work despite
my asthetic complaints.
Attachment #78712 -
Flags: superreview+
Assignee | ||
Comment 11•23 years ago
|
||
The code is mainly based on the code in PutImage.c - and I did not try to modify
it in style, I only adjusted the part which is used to calculate the maximum
amount of data send over the wire before we need to split the image to avoid
exceeding the maximum X protcol request size.
My own code does the same - but I have to a use lower maximum to avoid that the
code in PutImage.c tries to do it's own splitting, too (the first patch worked
but there is a small amount of size values where both codes are running) ...
Comment 12•23 years ago
|
||
Comment on attachment 78712 [details] [diff] [review]
Patch for 2002-04-09-08-trunk
a=asa (on behalf of drivers) for checkin to the 1.0 branch
Attachment #78712 -
Flags: approval+
Assignee | ||
Comment 13•23 years ago
|
||
Checked in by smontagu:
"trunk":
http://bonsai.mozilla.org/cvsquery.cgi?module=MozillaTinderboxAll&branch=HEAD&cvsroot=/cvsroot&date=explicit&mindate=1018911180&maxdate=1018911480&who=smontagu%25netscape.com
"1.0-branch":
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=MOZILLA_1_0_0_BRANCH&branchtype=match&dir=&file=&filetype=match&who=smontagu%25netscape.com&whotype=match&sortby=Date&hours=2&date=explicit&mindate=1018910440&maxdate=1018918740&cvsroot=%2Fcvsroot
Marking bug as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 14•23 years ago
|
||
adding fixed1.0.0 keyword (branch resolution). This bug has comments saying it
was fixed on the 1.0 branch and a bonsai checkin comment that agrees. To verify
the bug has been fixed on the 1.0 branch please replace the fixed1.0.0 keyword
with verified1.0.0.
Keywords: fixed1.0.0
Assignee | ||
Comment 15•23 years ago
|
||
katakai:
Can you verify for both "trunk" and "1.0-branch" (see asa's comment #17), please
?
Updated•17 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•