Ticket UUID: | 2712f43f6ecd4c10fae07857e2cc985179fffea3 | |||
Title: | X11: fix crash for rotated text w/o Xft | |||
Type: | Patch | Version: | core-8-6-branch | |
Submitter: | chrstphrchvz | Created on: | 2020-04-23 05:20:20 | |
Subsystem: | 05. Canvas Items | Assigned To: | fvogel | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Closed | Last Modified: | 2020-05-01 11:58:22 | |
Resolution: | Fixed | Closed By: | fvogel | |
Closed on: | 2020-05-01 11:58:22 | |||
Description: |
Found while testing [7655f65ae7]. On X11 without Xft support enabled, if a canvas text item has a non-zero X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 53 (X_CreatePixmap) Value in failed request: 0x0 Serial number of failed request: 40984 Current serial number in output stream: 40985 Example script to trigger the error automatically: package require Tk How the crash happens: I will attach a patch that fixes the issue by having *An optimization is to skip drawing empty unselected portions of text, which I will provide in a separate patch; while doing so would work around the issue, it would be better if calling | |||
User Comments: |
fvogel added on 2020-05-01 11:58:22:
Merged in core-8-6-branch and trunk. fvogel added on 2020-04-26 21:08:04: Correct, I have changed the comment. chrstphrchvz added on 2020-04-26 20:37:33: I notice the new test added in [2d463458cb], however I believe the comment should refer to this issue as existing under X11 generally, and not just Linux specifically. I haven't tested this specific issue on BSD, XQuartz, etc., but I don't see why they wouldn't be affected. fvogel added on 2020-04-26 20:32:46: I have added a non-regression test canvText-20.2, failing before the fix and passing with it. I could confirm the failure and the fix on Debian 9, without Xft (--disable-xft). fvogel added on 2020-04-23 21:08:28: Thank you very much, this is entirely correct. I have committed your both patches to branch bug-2712f43f6e. chrstphrchvz added on 2020-04-23 16:32:59:
I have now attached the optimization patch, which skips drawing empty unselected portions of canvas text, and also explicitly specifies
|
