/srv/irclogs.ubuntu.com/2012/06/12/#ubuntu-mozillateam.txt

artnaychrisccoulson: ping17:12
artnaychrisccoulson: bug 101046617:13
ubot2Launchpad bug 1010466 in firefox "dropdown boxes on sites stop working" [Undecided,Incomplete] https://launchpad.net/bugs/101046617:13
chrisccoulsonhi artnay17:15
artnayI gave you the info - #1617:15
chrisccoulsonartnay, excellent, thanks17:16
chrisccoulsondid you see comment #15 too? :)17:16
artnayah, no. just read it17:17
artnayI also get "/build/buildd/firefox-13.0+build1/build-tree/mozilla/widget/gtk2/nsWindow.cpp: No such file or directory"17:17
chrisccoulsonalthough, it would be best to do that at the same time as comment #14 as well, and use xprop whilst firefox is still paused in gdb17:17
chrisccoulsoni want to see if _NET_WM_USER_TIME matches up with either of these numbers :)17:17
chrisccoulsonand also, if there is a _NET_STARTUP_ID property17:18
artnayjust a sec17:19
artnaychrisccoulson: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1010466/comments/1717:27
ubot2Launchpad bug 1010466 in firefox "dropdown boxes on sites stop working" [Undecided,Incomplete]17:27
artnayhope it helps. just ping me back if you need more info, I'll focus on the football for a moment17:29
chrisccoulsonartnay, thanks. which window did you click on with xprop btw? it doesn't look quite what i expected17:29
chrisccoulsonah, i've got another hunch now :)17:35
chrisccoulsonbut i need to pop out first, so i'll be back in a bit17:35
artnaychrisccoulson: it was FX17:52
chrisccoulsonartnay, did you say you were using gnome-shell?18:13
artnaychrisccoulson: I normally use KDE + Chromium. saw this bug on #-desktop, started Unity 2D (as at least two reporters were running that) and then tried to reproduce on FX and the rest is history.18:15
chrisccoulsonah, ok. i'll try switching back to unity 2d for a moment18:16
chrisccoulson1 second18:16
chrisccoulsonah, unity 2d sets DESKTOP_STARTUP_ID in the environment of launched applications, which normal unity doesn't18:18
chrisccoulsonand that exposes a code path where we overwrite the timestamp for the GdkDisplay in firefox18:19
chrisccoulsonnow to see if there's a way to overwrite it with a broken timestamp :)18:19
artnaychrisccoulson: I think at least one reporter was running shell, too.18:19
chrisccoulsonartnay, that makes sense. that also sets DESKTOP_STARTUP_ID :)18:20
chrisccoulsonartnay, could you try something else for me please?18:39
chrisccoulsoncould you try running again in gdb, but this time breaking on gdk_x11_window_set_user_time18:39
chrisccoulsonand when it stops for the first time, could you look at the timestamp and then set up a conditional breakpoint that's a little bit further in the future (depending on how long it normally takes to reproduce)18:40
chrisccoulsonyou can do that with "condition 1 timestamp>1000000", where "1" is the number of the breakpoint for gdk_x11_window_set_user_time, and the other number is some time in the future18:41
chrisccoulsonwhich you'd need to set to something more appropriate :)18:42
chrisccoulsonyou could probably set the time to 0x20000000 actually, as the value that breaks it always seems to be higher than that. and you shouldn't hit that for real until you've had X running for more than 6 days :)18:46
artnaychrisccoulson: doesn't seem to work, FX window always seems to lose focus after setting breakpoint or something. see http://i.imgur.com/2zTQ5.png19:10
artnayimmediately after I click the FX window, it comes unresponsive, all the tabs are gone (because of double window title bar), menus seem to appear behind the window etc.19:11
chrisccoulsonartnay, is that because gdb has hit the breakpoint?19:12
artnaychrisccoulson: could be, I don't know19:12
FernandoMiguelhi19:12
chrisccoulsonartnay, yeah, it looks like it in the screenshot19:12
chrisccoulsonartnay, did you set up the conditional part of the breakpoint?19:12
chrisccoulsonhi FernandoMiguel19:13
artnaychrisccoulson: I thought I was supposed to do that after setting the first breakpoint which is at 0x7ffff02b085019:14
artnaycondition 0x7ffff02b0850 timestamp>0x2000000019:14
chrisccoulsonartnay, ah, 0x7ffff02b0850 should just be 1 :)19:14
chrisccoulsonit's the actual integer number that gdb gives the breakpoint19:14
chrisccoulsoni can see "Breakpoint 1" in the background of your screenshot19:15
artnayand that's always 1 since I haven't set any other breakpoints19:15
chrisccoulsonartnay, yeah, it's sequential19:15
chrisccoulsonartnay, once you've fixed that, could you also set a breakpoint on GrabPointerError again?19:16
chrisccoulsonwhat i hope is that you hit breakpoint 1 before breakpoint 2 :)19:16
artnaychrisccoulson: here's what I get by setting the condition: No symbol "timestamp" in current context.19:21
chrisccoulsonhmmmm :/19:21
chrisccoulsonartnay, ah, do you have debug symbols for gtk and gdk installed?19:22
artnayprobably not, let me see if I have enough GBs for those on this laptop19:22
chrisccoulsonartnay, ok, if not, the package you need is libgtk2.0-0-dbg19:23
chrisccoulsonsorry it's such a pain19:23
chrisccoulsonyour time is really appreciated though :)19:23
artnaychrisccoulson: we're watching football and drinking beer at the same time so this won't "take my time" :-)19:24
chrisccoulsonheh :)19:25
artnaychrisccoulson: you were right, I hit the first breakpoint: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1010466/comments/1819:41
ubot2Launchpad bug 1010466 in firefox "dropdown boxes on sites stop working" [Undecided,Incomplete]19:41
chrisccoulsonartnay, that's what i hoped would happen. do you still have it stopped in gdb?19:42
chrisccoulsoni could do with looking at the call trace when it hits this condition19:42
artnaychrisccoulson: no, I quit. another try won't hurt, though.19:44
chrisccoulsonartnay, if you could, that would be great. then when it stops, please type "bt" :)19:45
artnaychrisccoulson: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1010466/comments/1920:03
ubot2Launchpad bug 1010466 in firefox "dropdown boxes on sites stop working" [Undecided,Incomplete]20:03
chrisccoulsonartnay, excellent, thanks20:03
chrisccoulsonso, this actually looks like a dormant gtk (or even, X) bug, which has been exposed because of a recent change in how timestamps for pointer grabs are handled in firefox20:04
micahgooh, seems like this is the root of the issues I'm seeing in thunderbird as well :)20:05
chrisccoulsonthe overwriting of the timestamp with the broken value all happens inside gdk20:05
chrisccoulsonartnay, how quickly is it to reproduce the problem for you btw?20:09
artnaychrisccoulson: instant by using the "view source" method20:10
chrisccoulsonartnay, ok, that's good. i was going to ask you try one more thing, because i'm interested as well at looking at the actual X protocol data20:10
chrisccoulsonbut i don't want to ask that if it's going to take a long time20:11
chrisccoulsonit involves using xtrace, which can be a little slow :)20:11
artnaythis also causes FX's awesome bar not to work, right click not working etc.20:11
chrisccoulsonyeah, i'd expect that to be the case20:11
artnaycould be useful to mention that in the first post/topic to avoid duplicate reports20:11
chrisccoulsonyeah, maybe20:12
chrisccoulsonhave you used xtrace before?20:12
artnaychrisccoulson: no I haven't. just installed it and now looking at man20:13
chrisccoulsonthanks20:14
chrisccoulsonartnay, basically, it allows you to proxy X protocol requests through it, so that it can log them20:14
chrisccoulsonbasically, you use it like "xtrace -k -d:0 -D:9 > xtrace.log", where ":0" is the number of your current display ("DISPLAY" in your environment)20:16
chrisccoulsonand then you run firefox with "DISPLAY=:9 firefox"20:16
chrisccoulsonit generates quite a significant amount of data, so you'll probably want to compress the resulting log file20:17
artnaysure, hopefully some "X pert" will go through it then :-)20:17
chrisccoulsonand because it logs all X protocol data, it means that it logs keystrokes as well, so don't go typing any passwords in to firefox with it running ;)20:17
artnaysure20:17
chrisccoulsonit will be useful to see if this timestamp comes from X (in which case, it could be a window manager bug), or whether an event filter inside firefox or gdk breaks it20:18
chrisccoulsonartnay, this also explains why using the window close button breaks it, but the keyboard shortcut works20:20
chrisccoulsonas the keyboard shortcut doesn't rely on this event from the window manager :)20:20
artnayuh, oh... almost 7 MB and I forgot to compress it - https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1010466/comments/2020:34
ubot2Launchpad bug 1010466 in firefox "dropdown boxes on sites stop working" [Undecided,Incomplete]20:34
chrisccoulsonheh, that's ok20:35
chrisccoulsonthanks :)20:35
chrisccoulsonit might take me a little while to decipher it20:35
chrisccoulsonartnay, ok, that was quite useful. the issue is here:21:08
chrisccoulson002:>:314e: Event (generated) ClientMessage(33) format=0x20 window=0x044006ab type=0x15e("WM_PROTOCOLS") data=0x5c,0x01,0x00,0x00,0x65,0xa6,0xd7,0x4f,0x3e,0x9e,0xac,0xe9,0xa0,0x9d,0xf7,0x00,0xb0,0x39,0xf7,0x00;21:08
chrisccoulsonthat's a "WM_DELETE_WINDOW" message with the wrong timestamp :)21:08
chrisccoulson0x4fd7a665 (or 372.2 hours)21:08
chrisccoulsonso, it's a window manager bug :)21:09
chrisccoulsonartnay, i'll try and figure out a workaround in firefox for that, and hopefully have another patch for you to try out :)21:10
artnaychrisccoulson: sure and thanks for your instructions. I'll gladly try the patch as long as it doesn't mean compiling firefox :-)21:20
micahgartnay: what WM are you using out of curiosity?21:23
artnaymicahg: currently unity 2d/metacity21:23
micahghrm, that's what I'm using, weird21:23
artnaymicahg: and something I should have mentioned ages ago... I also have ricotz's testing ppa and gnome 3 ppa because of gnome-shell21:25
artnaysome gtk/gdk/metacity package from there might have caused this21:25
artnayor then not, apport doesn't seem to mention any 3rd party repos in the original report and its dupes21:29
artnaymicahg: did you try the "view source" method?21:30
micahgartnay: "view source" method?21:32
micahghttp://www.corsair.com/us/learn_n_explore/ works fine for me in a clean profile21:33
artnaymicahg: open some tabs, right click on a page and select view source (or ctrl+u), then close the "view source" window using ctrl+w21:37
artnaymicahg: make sure FX and "view source" windows are maximized21:37
artnaynow view source again but instead of closing the window by pressing ctrl+w, close it by clicking X in menu bar21:38
artnaynow try to do a right click on any page/tab, or try to give some input in awesome bar (e.g. launchpad.net which should show you a lot of pages :-)21:40
artnayit's 100 % reproducible for me even on a new/guest user account when using unity 2D, doesn't happen in 3D21:41
micahgartnay: awesome :)21:42
artnaymicahg: so it "works"? :-)21:42
micahgyeah, no right click21:43
chrisccoulsonoh, it only works when the window is maximised?22:24
chrisccoulsonin that case, the event doesn't come from the window manager. it comes from the unity panel22:24
chrisccoulsonoh my22:41
chrisccoulsonthe unity 2d panel sets the current system time as the timestamp22:42
chrisccoulsonseriously22:42
=== SkippersBoss_ is now known as Skippersboss
chrisccoulsonartnay, i've just uploaded a version of unity-2d to my PPA which should fix it now23:40

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!