View Issue Details

IDProjectCategoryView StatusLast Update
0013363ScribusUsabilitypublic2016-04-10 16:24
Reportermarcellarius Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
OSUbuntu MateOS Version15.04 
Product Version1.5.1svn 
Target Version1.5.2Fixed in Version1.5.2.svn 
Summary0013363: Repaint backlog / lag when resizing text frames
DescriptionWhen dragging a text frame to resize it, each mouse move event calls canvas repaint(). The mouse events can occur faster than the repaint causing a huge backlog of input events.
Steps To Reproduce1) Have a slow computer (running Linux?)
2) Start Scribus and create a document
3) Create a text frame.
4) Start a drag to resize the frame and move the mouse around the screen for 10 seconds. Notice the repainting is lagging behind severely.
5) Release the mouse button and watch for the next few seconds as your text frame continues to resize.
Additional InformationThis is seemingly the issue reported in 0013345 and 0013100
TagsQt5.6, upstream
PatchNo

Relationships

has duplicate 0013345 closedjghali Mouse lag when drawing a frame 
has duplicate 0013428 closedjghali Very slow mouse action 
has duplicate 0013522 closedjghali Slow to draw frame while resizing 
has duplicate 0013608 closedjghali Severe lag when dragging anything 
has duplicate 0013100 closed Objects movings slower than the mouse which grabs them 
has duplicate 0013827 closed In-frame image moving / panning is slow 

Activities

marcellarius

2015-09-23 02:45

reporter   ~0036334

Followup: this isn't just limited to the resize gesture. With the freehand drawing tool I was able to generate a backlogue of events which kept being drawn for nearly 5 minutes after I released the mouse button.

Some gestures do not seem to be affected -- the selection tool and magnifier do not show this issue; however the pan gesture does.

The indicators on the rulers and status bar reflect the location currently being drawn, not the mouse location.

I'm not sure if it's related to this issue, but the scroll wheel behaviour is also extraordinarily sensitive, both for scrolling and zooming.

I've tried this on Ubuntu MATE 15.10 beta as well, and am getting the same outcome. This issue is not present in 1.4.5

guiodic

2015-10-16 18:48

reporter   ~0036688

I add the video from a duplicate bug here https://www.dropbox.com/s/k1owydgb2yuhv03/prova.mp4?dl=0

danilius

2015-12-17 23:38

reporter   ~0037938

I have two mice, a Microsoft Compact Optical Mouse 500, and a Mad Catz RAT3. The MS mouse is less laggy than the MC. My PC has a 4.2Ghz processor and 16GB or RAM, so this is not down to the the computer's power. It certainly looks like a mouse-polling issue.

plinnell

2016-01-24 02:29

viewer   ~0038388

Cannot replicate this on openSUSE 13.2 with current 1.5.1svn. Built with Qt 5.4.2.

I'm wondering what the reporters are using for video cards and drivers. I'm using an Nvidia card with the proprietary drivers.

danilius

2016-01-24 08:50

reporter   ~0038389

I have two cards installed, an Nvidia GTX 650Ti which I have my screen plugged into, and an Nvidia GTX 770 which I use for CUDA only.

The black box that shows the mouse coordinates also drags behind, so the whole thing looks a bit silly and is unusable for serious work.

marcellarius

2016-01-24 09:00

reporter   ~0038390

I think my graphics chipset is an Intel GMA950, using the intel Xorg driver.

Kunda

2016-01-24 09:00

updater   ~0038391

Last edited: 2016-01-24 09:02

Can't reproduce on OSX 10.10.5 1.5.1svn r20705 Qt5.5.1

Kunda

2016-01-24 09:03

updater   ~0038392

marcellarius, what specific version of Qt are you running ?

Kunda

2016-01-24 09:53

updater   ~0038393

Laser, since this bug also exists on arch per 0013428 can you test this and report results? Thanks!

Kunda

2016-01-24 09:54

updater   ~0038394

Posting this here as a reference on how to pinpoint search Qt bugreports
https://bugreports.qt.io/browse/QTBUG-45932?jql=project%20%3D%20Qt%20AND%20text%20~%20%22mouse%22%20AND%20affectedVersion%20%3E%3D%205.4.0%20AND%20environment%20%20~%20%22Ubuntu%22

Searches:
project = Qt AND text ~ "mouse" AND affectedVersion >= 5.4.0 AND environment ~ "Ubuntu"

Laser

2016-01-24 10:33

reporter   ~0038396

Can't reproduce on Archlinux 1.5.1 r20675 qt 5.5.1

Pentium i3-3225 (also used for graphics), htop says up to 2.9%
Graphics driver Intel i915
16 GB ram, htop says up to 1.9%

Mouse: cheap wireless optical Logitech and optical Gigabyte

marcellarius

2016-01-24 20:45

reporter   ~0038410

Qt 5.4.2 (i386-little_endian-ilp32 shared (dynamic) release build; by GCC 5.2.1 20151010) on "xcb"
OS: Ubuntu 15.10 [linux version 4.2.0-22-generic]

Architecture: i386; features: SSE2 SSE3

Kunda

2016-01-24 21:03

updater   ~0038411

@marcellarius could you possibly test with a more recent version of Qt? (Qt5.5.1) ?

marcellarius

2016-01-25 00:11

reporter   ~0038418

Problem still exists with Qt 5.5.1 and Scribus r20705.

Using binaries from:
https://launchpad.net/~canonical-qt5-edgers/+archive/ubuntu/backup-qt551
https://launchpad.net/~scribus/+archive/ubuntu/ppa

Kunda

2016-01-31 23:56

updater   ~0038512

Question: What does Preferences > User Interface > Interactivity > "Time before resize or move starts:" field say? How much delays in milliseconds ?

marcellarius

2016-02-01 01:52

reporter   ~0038513

150ms

marcellarius

2016-02-01 01:57

reporter   ~0038514

Changing this value does not affect the buggy behaviour.

Vladimir Savic

2016-02-02 09:46

reporter   ~0038517

I can confirm this behaviour also. Looks like it's Qt to blame. Keep seeing this for at least two latest Ubuntu releases.

danilius

2016-02-02 10:08

reporter   ~0038518

I think the little black box mouse tip with the x/y location that pops up when dragging is doing something that slows everything else down. When I do a fast drag that finishes before the box can pop up, everything is very snappy.

Is there any way of turning off that black box?

Kunda

2016-02-02 12:18

updater   ~0038519

@danillius can you provide a screencast or animated gif to show what you're talking about?

@vlada I'll take a look upstream to see if there's an open bug related

Kunda

2016-02-02 12:32

updater   ~0038520

Can't seem to find an open ticket related. Any help would be appreciated.

danilius

2016-02-02 12:34

reporter   ~0038522

Turns out that was a false lead on my part. When I wiggled the middle mouse button for a while to move the whole page around, Scribus lagged behind by several seconds. So, once my mouse stopped moving the page was still jiggling around. Clearly the black box is not the issue.

Vladimir Savic

2016-02-02 15:05

reporter   ~0038532

Turning rulers off improves situation, at least for panning. But creating of objects is still leggy and slow.

Kunda

2016-03-09 13:07

updater   ~0039079

This needs to be tested with Qt5.6 to see if there is any improvement

marcellarius

2016-03-10 05:35

reporter   ~0039094

This seems to be window manager related.

The symptom was not present on a similar spec system running KDE. I've done some further testing, and on my computer it works fine if use a different window manager (I tested with Fluxbox), or if I disable compositing in MATE Tweak.

Kunda

2016-03-10 13:15

updater   ~0039097

I've done some further testing, and on my computer it works fine if use a different window manager (I tested with Fluxbox), or if I disable compositing in MATE Tweak. 

Thanks @marcellarius

Do you mind creating a an upstream bug to said specific Window Manager to track this bug?

marcellarius

2016-03-10 20:33

reporter   ~0039120

It's not specific to Marco (MATE window manager), I see the same problem with Compiz. I haven't been able to test on KWin/Unity/Gnome 3 with compositing because they don't support this hardware; I'll try to reproduce on a more capable machine.

Kunda

2016-03-11 14:00

updater   ~0039129

@marcellarius thanks :)

Vladimir Savic

2016-03-21 23:33

reporter   ~0039318

Resolved by xorg-server-1.18.2 and qt5.6 upgrade. Finally!

Kunda

2016-03-21 23:35

updater   ~0039319

marcellaius, based on vlada's response 0013363:0039318 can you confirm by testing with Qt5.6 ?

Kunda

2016-03-24 05:57

updater   ~0039376

marcellaius ?

Kunda

2016-03-29 04:23

updater   ~0039486

ping

marcellarius

2016-03-29 04:30

reporter   ~0039490

Apologies, I've not had time to follow up on this yet.

Kunda

2016-04-07 20:56

updater   ~0039892

@marcellarius please follow-up

marcellarius

2016-04-07 21:17

reporter   ~0039894

I'll make time to install Qt5.6 and build Scribus this weekend.

Sorry for the delays, life's been busy and it's taken a while to get everything set up again after filesystem corruption nuked my system :(

marcellarius

2016-04-10 05:25

reporter   ~0040000

The issue seems to be resolved in SVN trunk using Qt 5.6 (from Qt website).

Ubuntu MATE 15.10 (64 bit)
Marco window manager, compositing enabled.

Kunda

2016-04-10 16:24

updater   ~0040022

@marcellarius thanks for confirming.
Closing

Issue History

Date Modified Username Field Change
2015-09-22 01:37 marcellarius New Issue
2015-09-23 02:45 marcellarius Note Added: 0036334
2015-10-02 04:09 jghali Relationship added has duplicate 0013345
2015-10-16 18:40 jghali Relationship added has duplicate 0013428
2015-10-16 18:48 guiodic Note Added: 0036688
2015-11-11 16:44 jghali Relationship added has duplicate 0013522
2015-12-17 23:29 jghali Relationship added has duplicate 0013608
2015-12-17 23:38 danilius Note Added: 0037938
2016-01-24 02:29 plinnell Note Added: 0038388
2016-01-24 08:50 danilius Note Added: 0038389
2016-01-24 09:00 marcellarius Note Added: 0038390
2016-01-24 09:00 Kunda Note Added: 0038391
2016-01-24 09:02 Kunda Note Edited: 0038391
2016-01-24 09:03 Kunda Note Added: 0038392
2016-01-24 09:37 Kunda Relationship added has duplicate 0013100
2016-01-24 09:53 Kunda Note Added: 0038393
2016-01-24 09:54 Kunda Note Added: 0038394
2016-01-24 10:33 Laser Note Added: 0038396
2016-01-24 20:45 marcellarius Note Added: 0038410
2016-01-24 21:03 Kunda Note Added: 0038411
2016-01-25 00:11 marcellarius Note Added: 0038418
2016-01-31 23:56 Kunda Note Added: 0038512
2016-02-01 01:52 marcellarius Note Added: 0038513
2016-02-01 01:57 marcellarius Note Added: 0038514
2016-02-02 09:46 Vladimir Savic Note Added: 0038517
2016-02-02 10:08 danilius Note Added: 0038518
2016-02-02 12:16 Kunda Tag Attached: upstream
2016-02-02 12:18 Kunda Note Added: 0038519
2016-02-02 12:32 Kunda Note Added: 0038520
2016-02-02 12:34 danilius Note Added: 0038522
2016-02-02 15:05 Vladimir Savic Note Added: 0038532
2016-02-02 15:10 Kunda Status new => confirmed
2016-03-09 13:07 Kunda Tag Attached: Qt5.6
2016-03-09 13:07 Kunda Note Added: 0039079
2016-03-10 05:35 marcellarius Note Added: 0039094
2016-03-10 13:15 Kunda Note Added: 0039097
2016-03-10 20:33 marcellarius Note Added: 0039120
2016-03-11 14:00 Kunda Note Added: 0039129
2016-03-19 20:32 jghali Relationship added related to 0013827
2016-03-21 23:33 Vladimir Savic Note Added: 0039318
2016-03-21 23:35 Kunda Note Added: 0039319
2016-03-21 23:41 Kunda Target Version => 1.5.2
2016-03-24 05:57 Kunda Note Added: 0039376
2016-03-29 04:23 Kunda Note Added: 0039486
2016-03-29 04:30 marcellarius Note Added: 0039490
2016-03-31 04:31 Kunda Tag Attached: #tobeclosed
2016-04-07 20:56 Kunda Note Added: 0039892
2016-04-07 21:17 marcellarius Note Added: 0039894
2016-04-10 05:25 marcellarius Note Added: 0040000
2016-04-10 16:24 Kunda Note Added: 0040022
2016-04-10 16:24 Kunda Status confirmed => closed
2016-04-10 16:24 Kunda Resolution open => fixed
2016-04-10 16:24 Kunda Fixed in Version => 1.5.2.svn
2016-04-10 16:24 Kunda Tag Detached: #tobeclosed
2016-04-12 04:57 Kunda Relationship replaced has duplicate 0013827