[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
** Changed in: canonical-devices-system-image Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
** Changed in: usensord (Ubuntu) Status: In Progress => Fix Committed ** Changed in: canonical-devices-system-image Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
And the race detector correctly showed the data race in test.go, just not in usensord -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Landing:https://requests.ci-train.ubuntu.com/#/ticket/1930 I verified vivid debian package on below images by creating 6 simultaneous alarms that will ring one minute later. current build number: 827 device name: krillin channel: ubuntu-touch/rc-proposed/bq-aquaris.en-proposed last update: 2016-09-09 23:42:32 version version: 827 version ubuntu: 20160907 version device: 20160606-ab415b2 version custom: 20160831-991-38-18 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Additional info: I built usensord on my laptop using "go run -race usensord.go" and that did not show any race condition after usensord stalled. I also tried "go run -race test.go" using the code from https://golang.org/doc/articles/race_detector.html#Introduction so I think the race detector setup is working, it's just there isn't any race condition in usensord or go-dbus My laptop has go version go1.6.2 linux/amd64 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
** Branch linked: lp:~zhangew401/usensord/bug-1620553 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
another stacktrace, this time dispatchMessage does not appear in the list of the calls, just fyi. It could be that it had already completed or had not started yet, not sure. Just thought I'd share this trace as well ** Attachment added: "go_stacktrace2" https://bugs.launchpad.net/ubuntu/+source/platform-api/+bug/1620553/+attachment/4737646/+files/go_stacktrace2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Here is the stracktrace of all the goroutines running at http://bazaar.launchpad.net/~go-dbus/go-dbus/v1/view/136/dbus.go#L302 i.e. I printed the stacktrace of all the goroutines right before the "reply := <- replyChan" (disclaimer: I have 0 Go knowledge so take my words here with a pinch of salt, the method I used comes from http://stackoverflow.com/a/19094539 ) ** Attachment added: "go_stacktrace" https://bugs.launchpad.net/ubuntu/+source/platform-api/+bug/1620553/+attachment/4737644/+files/go_stacktrace -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Hi Zhang, more precisely, it seems at least one of the routines gets stuck at waiting for a reply on replyChan i.e. line 303 (see above) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Thanks Andrea. I am using a similar way with that of yours, only four commands executed simultaneously. #!/bin/bash dbus-send --session --print-reply --type=method_call --dest='com.canonical.usensord' /com/canonical/usensord/haptic com.canonical.usensord.haptic.Vibrate uint32:100 & dbus-send --session --print-reply --type=method_call --dest='com.canonical.usensord' /com/canonical/usensord/haptic com.canonical.usensord.haptic.Vibrate uint32:100 & dbus-send --session --print-reply --type=method_call --dest='com.canonical.usensord' /com/canonical/usensord/haptic com.canonical.usensord.haptic.Vibrate uint32:100 & dbus-send --session --print-reply --type=method_call --dest='com.canonical.usensord' /com/canonical/usensord/haptic com.canonical.usensord.haptic.Vibrate uint32:100 & I think this could simulate the operation in clock/alarm I found the rule is that two or more senders(thread or process) calls the dbus function at the same time. It freezes at below code, http://bazaar.launchpad.net/~phablet-team/usensord/trunk/view/head:/haptic/haptic.go#L146 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Started from Pat's script and found an easier way to reproduce it (note the final ampersand, which is the trick): cat ./bombard.sh #!/bin/bash i=$1 while [ $i -gt 0 ]; do dbus-send --session --print-reply --type=method_call --dest='com.canonical.usensord' /com/canonical/usensord/haptic com.canonical.usensord.haptic.Vibrate uint32:100 & ((i--)) done On my MX4 Arale "./bombard.sh 4" is enough to get usensord stuck -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Thanks Pat telling me how to reproduce it. I have reproduced it. I am trying to figuring out the reason and at the same time I wrote to James for help. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
** Changed in: usensord (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
** Tags added: lt-blocker ** Description changed: Krillin, rc-proposed/bq_aquaris.en r422 - UPDATE: see comment #5, it turns out it's the haptics plugin doing SYNC - dbus calls and blocking the UI thread when the dbus service does not - reply or the replies come with a big delay + TEST CASE: + 1. Create to alarms that'll trigger at the same time + 2. Wait until they go off + 3. Dismiss the alarms + 4. Verify that there is still haptic feedback and OSK is still responsive + ACTUAL RESULT + Step 4 fails. + + + UPDATE: see comment #5, it turns out it's the haptics plugin doing SYNC dbus calls and blocking the UI thread when the dbus service does not reply or the replies come with a big delay Description: All at once taps have become incredibly delayed, by 1 or 2 secs. Gestures still work ok, no delay there. Swiping the greeter -> no delay. Tapping numbers to input code on the greeter --> 2 secs delay. Even though both are parts of unity8. So it doesn't seem to only be a problem of unity8 clients, but also unity8 itself. I have no idea why horizontal/vertical swipes would be unaffected, though. The virtual keyboard is also completely unusable because of the huge delay that each tap has. Also noticed that the vibration is gone, taps don't trigger vibration anymore. Webview also seemed to be unaffected by the delays (although I'm not entirely sure, the bug is now gone) I also restarted unity8 and unity8-dash with Mir input logging enabled. That showed that the touch events were being delivered as expected, no delay. restart unity8 MIR_CLIENT_INPUT_RECEIVER_REPORT=log and restart unity8-dash MIR_CLIENT_INPUT_RECEIVER_REPORT=log Restarting lightdm (that forces the restart of unity-system-compositor) fixed the issue. Additional info: I had Mir touchspots visualization enabled, which are known to cause more stuttering, but I think they're unlikely to be the cause of this bug, I had them enabled for 2 weeks and haven't noticed any problem like this before. This is the log from a tap on an icon in the shell: [2016-09-06 10:52:51.876400] input-receiver: Received event:touch_event(when=54593678129000 (6.030520ms ago), from=3, touch = {{id=0, action=down, tool=finger, x=426.211, y=292.695, pressure=0.85098, major=19.963, minor=0, size=19.963}, modifiers=1) [2016-09-06 10:52:51.953821] input-receiver: Received event:touch_event(when=54593751953000 (9.709366ms ago), from=3, touch = {{id=0, action=change, tool=finger, x=426.211, y=292.695, pressure=0.843137, major=19.963, minor=0, size=19.963}, modifiers=1) [2016-09-06 10:52:51.954343] input-receiver: Received event:touch_event(when=54593761256000 (0.958751ms ago), from=3, touch = {{id=0, action=up, tool=finger, x=426.211, y=292.695, pressure=0.843137, major=19.963, minor=0, size=19.963}, modifiers=1) SEE VIDEO ATTACHMENT BELOW -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
I had a quick look at this (I have ZERO Go knowledge though), the code seems to hang at http://bazaar.launchpad.net/~go-dbus/go-dbus/v1/view/136/dbus.go#L303 i.e. waiting for a reply on replyChan gdb showed that all threads had an infinite chain of futexsleep() except one, that was waiting on epollwait(), and above epollwait() that had a chain of runtime.netpoll(). Hope that helps -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
It seems to be deadlocked after calling messagebus.Call @enwei can you take a look, set two alarms in the clock app for the same minute to reproduce it ** Changed in: usensord (Ubuntu) Assignee: (unassigned) => Zhang Enwei (zhangew401) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
One of the threads deadlocks inside the haptic handler (which is 100 lines of go, called every time the user e.g. presses the OSK), on a call to dbus (messageBus.Call()). However, dbus seems to function fine, this looks like an internal failure in usensord. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Verified it does not trigger a deadlock on stable using the approach of two simultaneous alarms -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
fwiw I bombarded usensord with direct dbus requests simultaneously and could not reproduce the issue #!/bin/bash i=$1 while [ $i -gt 0 ]; do dbus-send --session --print-reply --type=method_call --dest='com.canonical.usensord' /com/canonical/usensord/haptic com.canonical.usensord.haptic.Vibrate uint32:500 ((i--)) sleep $2 done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
My turbo was affected by this yesterday and reboots didn't seem to fix it. I'm guessing usensord was wedged very quickly after startup, I was receiving lots of SMS messages around the time it happened. Debugging this morning showed the last process that called usensord was telephony-service-indicator, which handles the notifications for SMS/MMS. The log ended with the initial call from telephony-service- indicator, so it appears usensord never replied to that request and was blocked. After restarting usensord with upstart in my user session, it started responding like normal. I'm trying to reproduce it again to determine if telephony-service-indicator is the trigger. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
Reproduced a few times, need to root cause it ** Changed in: canonical-devices-system-image Importance: Medium => Critical ** Changed in: canonical-devices-system-image Milestone: None => 13 ** Tags added: regression-proposed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1620553] Re: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work)
I'd think it'd be useful to also add the actual problem, so we can look it up later when needed. But I don't mind -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1620553 Title: OSK becomes unusable as taps are delayed by 1-2 seconds and vibration doesn't occur any more (although gestures continue to work) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1620553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs