Pan mode stuck when panning with space (Logitech K120/K200 keyboard)

Bug #1400234 reported by Fernando
86
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
High
Unassigned

Bug Description

Version: 0.91
OS: Ubuntu 14.10

Press space key, and the icon changes to drag and drop the canvas.

I cannot go out from this state, and I have to restart Ubuntu.

Known triggers:
===============
- Logitech K120 keyboard
- Logitech K200 keyboard

Revision history for this message
su_v (suv-lp) wrote :

Could you please add more information to the bug description about the desktop and window-manager used? Also, is this a 'plain' Ubuntu install, or one of its flavours (Kubuntu, Lubuntu, …)?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Note that pressing the space key triggers panning in (upcoming) Inkscape 0.91, see bug #383871 comment #6. It should not be sticky though (only in effect while the space bar is pressed).

Revision history for this message
Fernando (fcuencamargalef) wrote :

Sure ~suv,

  I use, Ubuntu 14.10 completely plain. With Unity, and so on...

  Yes it seems to be the issue mentioned in bug #383871 comment #6. I press "space bar" and pannig is activated forever and ever. I can do anything in inskape nor in Ubuntu, I must to restart Ubuntu with a hard reset.

Many thanks,
   Fernando

su_v (suv-lp)
Changed in inkscape:
status: Incomplete → New
importance: Undecided → High
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP, Inkscape 0.91.x rev. 13683 and trunk rev. 13791.

tags: added: selection shortcuts
Revision history for this message
Fernando (fcuencamargalef) wrote :

Solved in last version:
  Inkscape 0.91+devel r (Dec 8 2014)

Please close

Changed in inkscape:
status: New → Fix Released
Revision history for this message
su_v (suv-lp) wrote :

On 2014-12-09 18:16 (+0100), Fernando wrote:
> Solved in last version:
> Inkscape 0.91+devel r (Dec 8 2014)
>
> Please close
>
> ** Changed in: inkscape
> Status: New => Fix Released

Since there haven't been any related changes in the past few days to code which AFAICT would affect the reported problem with the new pan mode, I'm reluctant to close this report as 'Fix released' - there exists no known fix for whatever unknown factor triggered this unexpected behaviour on your system.

I'll close the report as 'Invalid' for now (not a bug in inkscape). Please keep an eye on any re-occurrences of the reported issue, and - in case it happens again - reopen the report with whatever additional information you can provide (anything that could give a hint what the underlying trigger was).

Changed in inkscape:
status: Fix Released → Invalid
Revision history for this message
Fernando (fcuencamargalef) wrote :

OK.

But now it doesn't occurs never. I press space and pan is activated, I release space key and the pan is deactivated.

When I opened the issue, when I always pressed space key the pan where activated and never deactivated.

The only change in my system, was several updates for Inkscape and Ubuntu.

If the bug reappears, I will reopen the report.

Thanks,
   Fernando

Revision history for this message
Fernando (fcuencamargalef) wrote :

~suv you were completely right. The bug returns for me.

I have no idea why, but now if I press space pan is stated for ever.

I haven't change anything in my environment this time, only a restart.

Changed in inkscape:
status: Invalid → New
Revision history for this message
Brian Parma (bj0) wrote :

I recently upgraded from .48 to .91r using the inkscape ppa and this happens everytime for me.

I'm using Ubuntu 14.10 with gnome-shell. As soon as you hit space in Inkscape the mouse is locked and it begins panning but there is no way to unlock it. Inkscape doesn't respond to any keyboard keys and the mouse is locked so that it is unusable on anything else.

I am able to alt-tab to a terminal window and pkill inkscape.

su_v (suv-lp)
tags: added: ui
removed: selection shortcuts
tags: added: linux
Revision history for this message
whlm (mail-gw) wrote :

Reproduced on Linux Mint 17.1 with Inkscape 0.91 r

Steps:
- Start Inkscape
- Press and hold space bar
- Drag the viewport

The panning mode cannot be escaped.

Revision history for this message
su_v (suv-lp) wrote :

Setting bug status to 'Confirmed' based on duplicate report (bug #1416879) and comments by other users.

Changed in inkscape:
status: New → Confirmed
tags: added: regression
Revision history for this message
whlm (mail-gw) wrote :

Version 0.91.0+47~ubuntu14.04.1 fixes the problem (#10) for me now. The space+mousemove panning ends as I release the space bar.

I tested it on Linux Mint 17.0 and Linux Mint 17.1 both Cinnamon; It keeps working after several reboots/restarts or with multiple instances.

(On the Mint 17.1 system on which I had the problem (#10) - I compiled Inkscape tonight, so I had to install all required dev-dependencies. It could be possible that those have contributed to the fix somehow? Although the 17.0 system didn't had them installed.)

Currently there is still one (unusual) way to reproduce the problem:

- Press and hold the space bar
- Open Inkscape (by clicking on a startmenu/panel icon)
- Inkscape starts up in the inescapable panning mode

Revision history for this message
whlm (mail-gw) wrote :

Hmm, seems like I jumped to conclusions too soon yesterday on the fix. It seems to be (external) keyboard related:

I got the inescapable-panning-mode-problem again today (Linux Mint 17.1 Cinnamon) when I used a Logitech K120 keyboard. I tested two different K120's, and with both the problem occurred (tried different USB ports and reboots).

Other USB keyboards did not show the problem when I tested: Das Keyboard, Apple keyboard, HP Elitebook laptop keyboard, Filco Majestouch. The only way to reproduce was by the (unusual) steps from #12.

So in my case it works fine as long as I don't use my Logitech K120 keyboard.

Revision history for this message
Jussi (juzza1) wrote :

I am affected by the bug, and have a Logitech K200 keyboard, which is the same as K120 but with media keys.

Revision history for this message
Starfighter (robinstarfighter) wrote :

Wow, I would never have guessed that it could be as specific as that. But it seems to be. I just walked into this bug myself, and had to reboot (and loose much of my work, grr) to get out of it.

I too run Linux Mint 17.1 Rebecca, cinnamon edition, together with a Logitech K120 keyboard.

Revision history for this message
Liam P. White (liampwhite) wrote :

> and loose much of my work, grr

Open a terminal and send inkscape a segfault (using kill or pkill) — this will cause it to write crash recovery files and core dump.

Revision history for this message
su_v (suv-lp) wrote :

Today, via #inkscape irc channel:

inkscaper81902 : Re bug #1416879 (Pan mode stuck when panning with space ): I had that as well, (SuSe 13.1, KDE), and I do use a Logitech K120 keyboard ... won't have time to run any tests today but wanted to let someone know

Revision history for this message
whlm (mail-gw) wrote :

A trick I use to deal with this bug on my HP EliteBook laptop / Linux Mint 17.1:

- Unplug the Logitech K120 keyboard
- Start Inkscape
- Replug the keyboard

=> Bug doesn't show up, I can use the (Logitech K120) space bar for panning.

If you are still encountering the bug, try pressing Alt+F4 to close Inkscape; you may be able to control the save-dialog with your keyboard.

su_v (suv-lp)
description: updated
summary: - Space Key blocks drag and drop
+ Pan mode stuck when panning with space (Logitech K120/K200 keyboard)
Revision history for this message
Mario Mey (mariomey) wrote :

I have Ubuntu-Mate 14.04 64x, Inkscape 0.91 and a K200... and I have the same problem.
The trick that @mail-gw says works. But it is still a bug.

Revision history for this message
Wolf (drechsel) wrote :

Same problem here with ubuntu 15.04 and inkscape Inkscape 0.91 r13725.
Really awful!

Revision history for this message
Mario Mey (mariomey) wrote :

Today I'm working with another keyboard: Verbatim 98111, and the bug also happened with this device!

But not everytime I press the space. Moreover, I can't reproduce it right now...!

Revision history for this message
Akovia Voka (akovia1) wrote :

Arch Linux , Logitech G11 KB. and Inkscape 0.91 r13725 (May 25 2015).

su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.92
Revision history for this message
Wolf (drechsel) wrote :

This bug is stil present on 0.91 r - updated today. (cant read the version number - another bug).
Come on, friends, this is a really serious one. Forced to do a system reboot thrice today...
)-:
Wolf

Revision history for this message
Mc (mc...) wrote :

If you are using trunk version you might want to deactivate spacebar panning entirely (middleclick panning still works): in preferences->behavior->scrolling, uncheck "mouse move pans when spacebar is pressed".

We (or at least I) still have no idea what is wrong with that particular keyboard, and when i contacted logitech support with the bug description, i got the following reply :

"There's nothing special on the keyboard, it's just a generic keyboard. The device doesn't require any drivers or software, other than the default device drivers built into your operating system. Once the keyboard plug in to a USB port on computer, and the drivers will install automatically.", which was not that helpful...

I don't own a k120/k200 myself, but if you have any idea how to troubleshoot that, please share.
Mc

Revision history for this message
Wolf (drechsel) wrote :

Thanks for the hint on disabling panning - much appreciated!

But:
I dont have a k120/200, but a Dell W313D.
Quick googeling couldnt find, that it's just a branded logitech.
dmesg says:

 usb 2-1: New USB device found, idVendor=413c, idProduct=1005
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: Dell Multimedia Pro Keyboard Hub
usb 2-1: Manufacturer: Dell

Could be a branded Logitech anyway....

Revision history for this message
Wolf (drechsel) wrote :

NB: Unluckily, I cant find the "disable panning" button.

Revision history for this message
Mario Mey (mariomey) wrote :

In comment #21, I said:

"Today I'm working with another keyboard: Verbatim 98111, and the bug also happened with this device!"

Revision history for this message
webmaster (tabacev) wrote :

Logitech K120 keyboard
Linux Mint 17.2 Rafaela 64-bit
Kernel Linux 4.3.0-040300-generic x86_64
MATE 1.10.2
Inkscape 0.91 r

 A had this problem also and today unchecked Input devices > Use pressure-sensitive tablet(requires restart)
The problem is gone!

Revision history for this message
Jussi (juzza1) wrote :

Disabling pressure-sensitive tablet fixes the bug for me too (Arch Linux + Logitech K200)

Revision history for this message
Wolf (drechsel) wrote : Re: [Bug 1400234] Re: Pan mode stuck when panning with space (Logitech K120/K200 keyboard)

Works for me too.
Dell w313d Keyboard.
Wolf

Revision history for this message
whlm (mail-gw) wrote :

Nice catch! It works for me too: Linux Mint 17.2, Logitech K120

I did some debugging on the latest codebase rev. 14487:

- In stucked panning mode, ToolBase::root_handler(GdkEvent* event) [/src/ui/tools/tool-base.cpp:351] stops receiving GDK_KEY_PRESS events

- The problem starts when gtk_widget_set_extension_events [/src/display/sp-canvas.cpp:1308] is called

void SPCanvasImpl::realize(GtkWidget *widget)
...
1307: #if !GTK_CHECK_VERSION(3,0,0)
1308: gtk_widget_set_extension_events(widget, GDK_EXTENSION_EVENTS_ALL);
1309: // TODO: Extension event stuff has been deprecated in GTK+ 3
1310: #endif
....

Substituting GDK_EXTENSION_EVENTS_ALL with GDK_EXTENSION_EVENTS_CURSOR didn't change anything.
Disabling this line prevents space-panning bug, but also disables pressure sensitivity from my Wacom Intuos 3 :(

- Extending the if condition in /src/ui/tools/tool-base.cpp:553 with " || this->space_panning" makes the panning escapable by clicking any mouse button. This could be a quick fix for now.

553: } else if (panning == event->button.button || this->space_panning) {

This is not the final solution to this bug as space panning should be stopped when the spacebar is released. However for now it could prevent lockups of the interface.

Revision history for this message
jazzynico (jazzynico) wrote :

@webmaster, @whlm - We now have a workaround and a good starting point for our devs to fix the issue. Thank you very much for your help!

Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Chris Jeffries (chris-candm) wrote :

I have this problem
Linux Mint 17.3
Inkscape 0.19r
Logitech K120 keyboard

In panning mode it takes over the WHOLE screen, thus no widgets anywhere on the screen are accessible.

Alt-ctrl F1 opened a terminal session so that I could 'kill' the inkscape process. However this actually killed the whole Cinnamon session so I lost all my work anyway.

Also noted that any buttons popped up on the screen respond neither to clicking with mouse (not surprisingly) or the Enter key to select the default option, so Alt-F4 is not much use either.

I'm posting this rather than lose it while I do some more tests.

Revision history for this message
Chris Jeffries (chris-candm) wrote :

kill [inkscape pid] had no effect
kill -9 [inkscape pid] killed the program.
So long as I was careful to have a terminal window already open, I was able to Alt-Tab to it and do anything that did not involve the mouse.

Revision history for this message
cousteau (cousteaulecommandant) wrote :

Chris: Lucky you; I couldn't even use alt-tab (fortunately Ctrl-Alt-F1 and Alt-F2 worked).
`killall -SEGV inkscape` worked like a charm though.

Revision history for this message
Larry Sunshine (ls007sunshine) wrote :

I was swearing a lot just recently because of this bug. Thankfully I was able to kill it via Terminal. You guys seriously cannot fix this for this long? Are you kidding me? :)))
And I thought moving from CorelDRAW to Inkscape would be realistic. Apparently, not in the near future...

Revision history for this message
ScislaC (scislac) wrote :

Larry: There is a fix in trunk that adds an option to disable spacebar panning.

Revision history for this message
Akovia Voka (akovia1) wrote :

Logitech G11 and same problem. So far disabling pressure-sensitive tablet is working. Would be nice to see this fixed at the root cause instead of disabling features.

Revision history for this message
caetano veyssières (chameleonscales) wrote :

ScislaC (scislac) : So where is this option ?

Revision history for this message
Mc (mc...) wrote :
Revision history for this message
Mc (mc...) wrote :
Revision history for this message
caetano veyssières (chameleonscales) wrote :

Thanks. Maybe I'll wait until .92 though, it seems I'm getting used to not pressing spacebar.

Revision history for this message
caetano veyssières (chameleonscales) wrote :

Just tried on the new 0.92 and releasing spacebar works !

Revision history for this message
TimeWaster (sebi-k-deactivatedaccount) wrote :

This is still an very much alive and annoying problem!!! (newest ubuntu mate, but happened also before under KDE)

Please fix it!

Revision history for this message
TimeWaster (sebi-k-deactivatedaccount) wrote :

It happens now EVERY time i use this feature. Please fix it, this drives me insane!!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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