Software Centre expands its window to 19122x951 when 65536-character string is pasted into search box

Bug #837507 reported by Paul Sladen
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

  1. Paste a long string into the Software Centre search box, and keep pasting it.
  2. Eventually
  3. SC window resizes to 19122x951, with various bits of the window no longer drawing as expected.

xwininfo: Window id: 0x2e00089 "Ubuntu Software Centre"

  Absolute upper-left X: 373
  Absolute upper-left Y: 189
  Relative upper-left X: 1
  Relative upper-left Y: 29
  Width: 19122
  Height: 951
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +373+189 --18095+189 --18095--90 +373--90
  -geometry 19122x951+372--91

String used (happened to be in clipboard) should be attached, as it doesn't fit here when trying to file the bug report on Launchpad, but given the suspicous length of 65536 bytes, it's likely that any string will do.

Ideally, Software Centre should not resize its window in response to unrelated input.

Revision history for this message
Paul Sladen (sladen) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Roth (evfool) wrote :

The window expands to that width as the labels in the search suggestions screen are not set to line_wrap True, and thus to fit in one line, the window is resized. The proper solution would be setting line_wrap to True, and line wrap mode to Word-wrap, but falling back to character wrapping (as in the attached test text there are no word boundaries, and having only word wrapping would still cause the window to be resized horizontally), but setting this on the suggestion title causes yet another issue, the label having enormous height (probably due to a Pango/GTK3 bug).

Changed in software-center (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.