/srv/irclogs.ubuntu.com/2011/09/01/#ayatana.txt

Andy80hi guys :)00:15
=== dragonfyre13 is now known as dragonfyre_away
didrocksgood morning05:46
nhainesdidrocks: good morning!05:49
didrockshey nhaines05:52
=== API is now known as Guest32644
MacSlowhey folks07:29
=== kim0|holiday is now known as kim0
didrockskamstrup: hey, do you have a second for playing with some cjk foo?08:25
didrocksin xapian (apt-xapian index)08:25
kamstrupdidrocks: give me 15 mins08:26
=== Guest32644 is now known as apinheiro
htorquenjpatel: it's likely not one of those indicators: https://launchpadlibrarian.net/77655516/log.png09:30
htorquethe jump at the beginning was caused by opening some programs iirc09:30
njpatelhtorque, ah, excellent09:30
njpatelhtorque, I'll try and take a look today09:30
htorquebut i see that the appmenu is missing, so that's something left to test09:30
htorquenjpatel: however, i don't quite understand your directions: "probably from metacity, without an exsiting global menu" - should i run metacity --replace and run the command? with valgrind? or just look at mem consumption?09:32
njpatelhtorque, you can initially just look at memory consumption of the indicator-loader with appmenu, to confirm/deny if it's leaking when you start an app09:33
njpatelhtorque, valgrind will give you a deeper analysis if it is, I guess09:33
htorquebut i should replace compiz & co with metacity, right?09:33
njpatelhtorque, the reason for running it in metacity is that you can't have two appmenus running, so you can't run in unity09:34
njpatelhtorque, right, exactly09:34
njpateljust metacity --replace from a terminal will do09:34
htorqueso now i don't have a panel at all - is it still useful then?09:35
njpatelyep09:35
njpatelhtorque, with indicator-loader, you're just testing a single indicator at a time, which is good to isolate the issue09:36
njpatelif it doesnt' leak, most likely something is wrong in the service itself, or maybe another indicator09:36
didrockskamstrup: I didn't touch that ;)10:11
kamstrupdidrocks: in a nutshell what I mean: python -c "import os; os.environ['FOOBAR'] = 1; print os.environ['FOOBAR'] == 1"10:11
apinheironjpatel, ok thanks, although he is not here ...10:11
apinheirojust in case10:11
kamstrupthrows an error because you can only pass strings into environ[]10:11
njpatelapinheiro, yeah, he's in US so her ein a few hours10:11
apinheironjpatel, these messages from panel-service:10:11
apinheiro(unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Child is realized, but doesn't have a GTK Widget!10:11
apinheiro(unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Got new menuitem signal, which means they want something10:11
apinheiro(unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **:   that I simply don't have10:11
apinheirodo you know if those are normal messages10:12
njpatelno idea10:12
njpatelI actually have the same question for him10:12
kamstrupdidrocks: and if you change 1 to '1' you get False: python -c "import os; os.environ['FOOBAR'] = '1'; print os.environ['FOOBAR'] == 1"10:12
didrockskamstrup: oh, I clearly know that, I'm not the one making the patch once again :-)10:12
apinheironjpatel, ok, is because I'm working on that panel-service crash with a11y enabled, and that "he doesn't have a GTK widget" sounds something to look at10:14
kamstrupdidrocks: the reason I bang on about this is that afaics this means the db is reindexed on *every* run10:14
kamstrupdidrocks: is the cjk patch applied to xapian by default now in Oneiric?10:15
didrockskamstrup: yeah, and the testsuite doesn't pass anyway, so I think nobody tested it10:15
didrockskamstrup: yes, it is :)10:15
kamstrupdidrocks: how can that possibly go wrong?!?!?!11 ;-)10:15
didrockskamstrup: touching data! never be afraid :-)10:16
njpatelapinheiro, heh, yeah :)10:16
kamstrupdidrocks: i'll let you touch my data10:16
didrockskamstrup: that's so kind! I let you spy my computer with zg already, so, in some kind of mutual touch ;)10:17
kamstrupdidrocks: kinky10:17
htorquenjpatel: the amount of leakage is definitely influenced by the menu (eg. with 180 simple menu items in the menubar, u-p-s mem consumption raises by 15mb, with one it's just a couple of kb)10:31
njpatelhtorque, right, the reason why I thought it must be appmenu is because the panel service only extracts info about the toplevel menu items (it has no idea about the actual menus), and hence I felt that appmenu is leaking something in constructing the actual menu tree10:32
htorquegood, because putting more items in a menu didn't change anything10:32
kamstrupdidrocks: attached a fixed patch to https://bugs.launchpad.net/ubuntu/+source/apt-xapian-index/+bug/83827410:50
ubot5Ubuntu bug 838274 in apt-xapian-index (Ubuntu) "The indexer should use the new CJK tokenizer" [High,Fix committed]10:50
didrockskamstrup: did yo utest it, you should get a missing "import os"10:51
didrocksin update-apt-xapian-index10:51
didrockskamstrup: tell me if the testsuite still run after that :)10:52
kamstrupdidrocks: ah, wait...10:52
kamstrupdidrocks: needs some more fixing I can see :-)10:57
didrockskamstrup: indeed :)10:57
kamstrupdidrocks: ok v3 of the patch is running with all tests - I even added 3 new test cases so the diff has grown somewhat. But this should be upstreamable now i think11:51
didrockskamstrup: excellent news, do you think it's that part which is used by software-center or we should force a reindexing as well before reopening the database as well?11:52
kamstrupdidrocks: i don't have the faintest clue what S-C is doing :-)11:53
kamstrupdidrocks: S-C has it's own index in addition to the axi one11:54
kamstrupso S-C prolly needs patching in a similar spirit11:54
didrockskamstrup: ah, because I was thinking that it was using the axi one11:54
didrocksso we could have activate this env var unconditionnaly11:54
kamstrupdidrocks: it is using 2 indexes11:54
kamstrupi think we should, but still, the code needs to work regardless as other distros might not set it11:55
kamstrup(mostly thinking about the zg bits here though)11:55
didrockskamstrup: indeed11:55
kamstrupdidrocks: is upstream watching these bugs, or should we ping someone?11:56
didrockskamstrup: I think we should ping them, but I won't block on that for now11:57
kamstrupdidrocks: i'll move on to the zg-fts bits cjk enablement now, is mvo on top of the S-C issue or should I take that later?11:59
didrockskamstrup: mvo is on vacation, not sure if you have the time to look at it, otherwise tremolux will (but he doesn't really have a clue as well)11:59
kamstruphehe :-)12:00
kamstrupi'll see if I get around to it12:00
=== MacSlow is now known as MacSlow|lunch
om26erJohnLea, Hi could you confirm if bug 838759 is a design decision or a bug?12:01
ubot5Launchpad bug 838759 in unity "window title should not appear until cursor leaves the menubar" [Undecided,New] https://launchpad.net/bugs/83875912:01
didrockskamstrup: great ;)12:02
Trevinhoom26er: I know it's strange but it seems something the design want... No menu unitil you move again! :o12:02
om26eroh twitter people are saying its by design :/ andyrock Trevinho12:02
Trevinhoyes..12:03
om26erTrevinho, :(12:03
andyrockom26er, have you said my pastebin?12:03
andyrockit should be easy to fix but the comment let me think that it's by design12:03
om26erandyrock, the window button problem stands, doesnt it?12:04
om26eron second click on the menus window buttons dont show12:04
om26erunless cursor is moved12:04
Trevinhoom26er: are you still confirming the bug of the VP switch (move to another VP and select the launcher button of the focused window in another vp => Nothing happens after the click) ?12:05
TrevinhoIf you do please report, I can confirm :P12:05
Trevinho(and work on it)12:05
om26erTrevinho, i confirmed it yesterday, i am reporting it now :)12:06
Trevinhothanks :)12:06
Trevinhosince DBO can't reproduce it...12:06
andyrockom26er, which window button problem?12:06
Trevinhoom26er: check these issues using my branch please, I guess I've solved them...12:07
om26erandyrock, see in the video, when i click on the menu again window controls dont appear the faded title does12:07
Trevinhoom26er: Ah, That's true12:07
TrevinhoI'll fix that.12:07
om26erTrevinho, i'll report that and assign you as well ;)12:08
Trevinhook12:08
om26erlauncher stuck hard this time, it wont hide :/12:08
TrevinhoThese panel issues are really annoying12:08
andyrockom26er, wanted behavior too?12:08
Trevinhobut I guess we're in the right way...12:08
andyrocki mean the window buttons appear only when the menu appears...12:09
Trevinhoandyrock: it could be... But it's better to have a reply by JohnLea (or design, in general) about these things.12:09
andyrockso if the menu is not shown why we should show the window buttons?12:09
andyrockTrevinho, mpt too (I guess)12:10
Trevinhoof course...12:10
Trevinhono, andyrock... The problem is on the second click12:11
TrevinhoOn the second click only the menus are shown12:11
Trevinhoand this is not so consistent12:11
andyrockah i got it...12:11
Trevinhoalso if that is enough (as you reclick without moving, we guess you want to see the menu)12:11
andyrockTrevinho, btw i guess that design info are needed12:12
andyrock*is12:13
JohnLeaTrevinho; andyrock; just about to grab lunch, will get back to you in 30min12:36
andyrockJohnLea, np12:36
JohnLeaom26er, Trevinho; re. bug #838759, good catch! Yes the current behaviour wrong and needs fixing.  I've confirmed the bug13:03
ubot5Launchpad bug 838759 in unity "window title should not appear until cursor leaves the menubar" [Undecided,New] https://launchpad.net/bugs/83875913:03
JohnLeaom26er, Trevinho; any idea how people got the idea that bug 838759 behaviour was by design?  !! :/13:07
ubot5Launchpad bug 838759 in unity "window title should not appear until cursor leaves the menubar" [Undecided,New] https://launchpad.net/bugs/83875913:07
TrevinhoJohnLea: this is the code that implement that http://pastebin.ubuntu.com/679655/13:16
TrevinhoI also found a bug somewhere mentioning it13:16
JohnLeaTrevinho; cool, I've confirmed bug https://bugs.launchpad.net/unity/+bug/838759 if you could fix it that would be great ;-)13:18
ubot5Ubuntu bug 838759 in unity "window title should not appear until cursor leaves the menubar" [Undecided,New]13:18
Trevinhook JohnLea  I'll work on it13:21
TrevinhoJohnLea: and what about the other thing we discussed before? (as you can see in https://launchpadlibrarian.net/78696225/5ii.ogg on second click no window buttons are shown)13:24
JohnLeaTrevinho; yes that's a bug, would that not be fixed with the solution om26er outlined in bug #838759?13:34
ubot5Launchpad bug 838759 in unity "window title should not appear until cursor leaves the menubar" [Undecided,New] https://launchpad.net/bugs/83875913:34
TrevinhoI guess it will JohnLea. I've to check btw13:35
TrevinhoJohnLea: however about the #838759 I'm pretty sure that I've read about that behaviour in an unity bug (maybe related to ayatana design too)....13:36
TrevinhoOtherwise I would have fixed for a long time :D13:36
JohnLeaTrevinho; it is definitely a bug ;-)  If any other items like this come up please ping me and I'll try to help clarify13:38
TrevinhoNo problem... However I'm happy it's a bug :P I didn't like that behavior!13:48
Andy80hi guys :)13:51
Andy80Kaleo: I'll have to upgrade my vm to Oneiric before being able to work to that bug ;) doing right now13:52
KaleoAndy80: good luck ;)13:55
=== MacSlow|lunch is now known as MacSlow
apinheirotedg, hi, you here?14:05
tedgapinheiro, Yes, but I'm testing something where my machine might shutdown (or I get a good backtrace)... give me a second.14:06
=== smstudy is now known as smspillaz
Andy80apinheiro: the one who work at Igalia?14:18
apinheiroAndy80, yes14:19
apinheiroI usually use API as my IRC nickname, but someone already registered it14:20
Andy80apinheiro: hi :) don't know if you remember me.... I did a summer internship 2 years ago in your company :) que tal?14:20
apinheirotedg, btw, my previous question, Im trying to fix that crash on panel-service when a11y is on, and I have these messages:14:21
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Child is realized, but doesn't have a GTK Widget!14:21
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Got new menuitem signal, which means they want something14:21
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **:   that I simply don't have14:21
apinheiroit is normal?14:21
apinheiroAndy80, hi, yes I remember you  ;), fine thanks14:21
tedgapinheiro, Uhm, I don't think that those should be happening.  Do they happen without a11y?14:22
apinheirowell, I asked that in the morning14:24
apinheiroand14:24
* apinheiro looking backlog14:24
Andy80andyrock: I'm upgrading my VM to Oneiric. I will need your help with that Nautilus-dbus stuff later if you can14:24
andyrockof course14:25
apinheiro<njpatel> apinheiro, yeah, he's in US so her ein a few hours14:25
apinheiro<apinheiro> njpatel, these messages from panel-service:14:25
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Child is realized, but doesn't have a GTK Widget!14:25
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Got new menuitem signal, which means they want something14:25
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **:   that I simply don't have14:25
apinheiro<apinheiro> do you know if those are normal messages14:25
apinheiro<njpatel> no idea14:25
apinheiro<njpatel> I actually have the same question for him14:25
apinheirotedg, ^14:25
apinheirotedg, I also see messages like:14:25
apinheiro "IndicatorObject class does not have an accessible description."14:25
andyrockAndy80, btw Kaleo told me that in QT there is already a dbus helper class...14:26
apinheiroand finally, I have a question about indicators, although not sure if they are related with dbusmenu14:26
apinheiroon indicator.h:14:26
apinheiro@get_menu: Gets the image for this object.  Should be set14:26
apinheiroto #NULL if @get_entries is set.  Should NOT ref the14:26
apinheiroobject.14:26
tedgapinheiro, The not having an accessible description is just to make us do the work, though it shouldn't harm anything.14:26
andyrockso i think you should use it instead of UnityCore::DBusWrapper14:27
Andy80andyrock: I know that class, but I don't need help for using the QDbus class, I need to know which parameters to give it, which strings to use ecc....14:27
apinheirotedg, ok, anyway I'm just setting "" in this case14:27
apinheirobut about that doc14:27
apinheirodo you know what would happen if you ref that menu?14:27
andyrockAndy80, no problem then :)14:27
tedgapinheiro, Memory leak14:27
Andy80andyrock: thanks :)14:27
apinheirotedg, why, shouldn't the indicator be freed on the last unref?14:28
tedgapinheiro, But, in general, it should be "does not" instead of "should not"14:28
andyrockAndy80, yw...14:28
tedgapinheiro, The indicator should, but it's saying that by calling "get_menu" you are not incrementing the ref count.14:28
apinheirotedg, ah ok14:28
apinheirobut you could increment the ref count14:28
apinheiroright?14:28
apinheiroI mean to ensure that the object will be alive while you are working with it14:29
tedgapinheiro, Yes, and you should if you're working with it.  Just some of the callers just pass it to GTK which does it's own increment, so I didn't want to have one stuck in the middle.14:29
tedgapinheiro, This way users can treat it more like a floating count.14:30
apinheirotedg, anyway don't worry, just asking, on the a11y side there are a weak reaf, so if the object is freed, the atk object should be notified14:30
apinheirotedg, so going back to my "weird messages questions"14:30
apinheirodo you know if I'm doing something wrong?14:30
apinheiroI mean if there are something missing in my system?14:30
tedgapinheiro, No, it's basically saying that it thinks the menu item should have a GTK Menu Item associated with it, but it doesn't.14:31
tedgapinheiro, It could be a sign of some sort of race condition.14:31
tedgapinheiro, I'd be curious if the a11y slows down the construction of the GTK+ widgets in some way that we're not taking into account.14:31
apinheiroworking on a bug and found a race condition ... this can be tricky14:32
apinheirohmm14:32
apinheirotedg, well, in that case I will disable a11y and check it14:32
apinheirobut anyway, njpatel said that he also wanted to ask14:32
tedgapinheiro, Yeah, that'd be best, just to see.14:32
apinheiroso I suppose that this also happens without a11y  enabled14:32
tedgapinheiro, Yeah, njpatel is like that ;-)14:32
njpatelI like to ask things14:33
htorquetedg: njpatel asked me to run indicator-loader to check memory consumption of an indicator, but that seemed to fail and i think i got the very same warnings14:33
htorquecould this be connected?14:33
* tedg keeps njpatel's secret that he's really 5 years old.14:33
njpatelhtorque, UBUNTU_MENU_PROXY="" before using indicator-loader apparently!14:33
njpateltedg, but WHY?14:33
htorquetried that14:33
tedghtorque, Getting the same messages or no indicator at all?14:33
htorquethe indicator-loader just showed "File" (appmenu loaded)14:34
apinheironjpatel, we were talking about this:14:34
apinheiro<njpatel> apinheiro, yeah, he's in US so her ein a few hours14:34
apinheiro<apinheiro> njpatel, these messages from panel-service:14:34
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Child is realized, but doesn't have a GTK Widget!14:34
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **: Got new menuitem signal, which means they want something14:34
apinheiro<apinheiro> (unity-panel-service:5672): LIBDBUSMENU-GTK-WARNING **:   that I simply don't have14:34
apinheiro<apinheiro> do you know if those are normal messages14:34
tedghtorque, Did you set UBUNTU_MENUPROXY= or the wrong env like njpatel said ;-)14:34
apinheiro<njpatel> no idea14:34
htorqueyeah, thanks apinheiro14:34
apinheiro<njpatel> I actually have the same question for him14:34
apinheiroand your "I actually have the same question for him"14:34
htorquetedg: the right one ;)14:35
tedghtorque, Hmm, that works for me...14:35
tedghtorque, Which indicator?14:35
htorquei posted the output of indicator-loader here but that did get logged and i'm on a different machine now :(14:35
htorqueappmenu14:35
apinheirobtw, when I get the panel-service working without a crash14:36
apinheiroI can open the menus with the mouse pointer14:36
apinheirobut I'm not able to navigate or give the focus with F1014:36
apinheirois this only happening to me?14:37
apinheironjpatel, htorque ? ^14:37
htorqueF10 doesn't do anything here14:37
apinheiro?¿14:38
apinheiroF10 is supposed to give the focus to the panel14:38
apinheirohave this changed?14:38
apinheirois not related to those memory comsuption issues, but just asking as is related with the panel14:39
htorquewhen opened with the mouse i can navigate within the toplevel menu, but i cannot switch left and right14:39
apinheirosomewhat offtopic I know14:39
apinheirohtorque, urgh14:39
apinheirothat confirms that panel key nav is broken :/14:39
tedghtorque, Hmm, I'm not sure that appmenu works in the loader in general, since it's based on which window has focus.  When the loader has focus, it tries to show menus from it.  So you can't really click on another window and interact with its menus.14:39
tedgIt unfortunately makes appmenu ridiculously hard to debug.14:40
htorquetedg it was just to confirm whether it's causing bug 83564614:40
ubot5Launchpad bug 835646 in unity (Ubuntu) "unity-panel-service memory leak when starting various applications" [High,Confirmed] https://launchpad.net/bugs/83564614:40
tedgWe should probably add a delayed mode for using the loader.  We could use the loading hints to determine whether it should be on or not.14:40
tedgnjpatel, Did you ever include a mode in unity-panel-service where you could specify which indicators it would load?14:41
htorqueapinheiro: i think it's not broken per se, but rather that the mouse pointer keeps the selection on the toplevel menu it's pointing to - with F10 working, this wouldn't be a problem i guess14:42
njpateltedg, I did, but it seems like someone removed it :(14:43
apinheironjpatel, do you know something about this F10 issue? I mean, is F10 now assigned to a different short-cut?14:44
njpatelapinheiro, nope, need to investigate it14:44
apinheironjpatel, ok, I will keep focus on the crash then14:45
* apinheiro reminds that he need to check if those messages are also present without a11y enabled14:45
=== davidcalle_ is now known as davidcalle
htorque_tedg: that's the output i got from indicator-loader when testing it earlier: http://paste.ubuntu.com/679567/14:56
htorque_will try again14:57
tedghtorque_, You've got a GTK2/3 conflict there.  You need to use loader3 with the GTK3 indicators.14:58
htorque_oh dear14:59
htorque_is that in libindicator-tools?14:59
tedghtorque_, I think so.15:00
htorque_libindicator3-tools...15:00
tedgOh, yes15:00
htorque_meh15:00
apinheirotedg, forget my question, it seems that those warning only appear if I launch by hand the panel service from a terminal that it is not in the same session that unity15:03
apinheiroexecuting this "in a normal way" I don't get those messages15:04
apinheirosorry for the noies15:04
apinheironoise15:04
tedgHmm, that's interesting... I wonder why that is.15:04
htorque_\o/ loader3 works15:05
apinheirotedg, in my environment I have a "working session" and the session where I made the "unity --replace", so I move from one to the other using ctrl+alt+F7/F815:06
apinheiroI was running the panel-service from a terminal on my working session,15:06
apinheiro(with a export DISPLAY)15:06
apinheiroand in this case I got those messages15:06
htorque_njpatel: starting gimp adds lots of ram to the loader process ;-)15:06
apinheiroagain, sorry for the noise15:06
htorque_njpatel: should i now run valgrind on that and attach the output to the bug report?15:08
tedghtorque_, Yeah, that'd be good.15:08
htorque_will do :)15:08
tedghtorque_, Firefox is also good if you have lots of bookmarks.15:08
htorque_unfortunately no ff user15:09
htorque_kile and gimp work fine15:09
htorque_tedg: there are a couple of "???" entries in the log about libfontconfig/libexpat/libpango but i couldn't find debug symbols for those packages. is that a problem? also i forgot to install dbgsym for loader3 :-/15:30
tedghtorque_, naw, we're not going to get those solved today :-/15:30
htorque_ok, it's uploaded: bug 83564615:34
ubot5Launchpad bug 835646 in unity (Ubuntu) "unity-panel-service memory leak when starting various applications" [High,Confirmed] https://launchpad.net/bugs/83564615:34
htorque_if you need anything else, let me know15:34
jmltedg: hi15:37
tedgjml, Howdy15:37
tedghtorque_, Thanks!15:37
htorque_tedg: yw :)15:38
tedgUnfortunately that doesn't seem to have any smoking guns in it.15:39
* tedg quickly concludes that there's no way it's his fault, it must be njpatel's bug ;-)15:40
jmltedg: I just tried the valgrind thing you suggested15:41
jmltedg: but... umm... where does the output go?15:41
jmlbug 74038215:42
ubot5Launchpad bug 740382 in indicator-session (Ubuntu) "gtk-logout-helper crashed with SIGABRT in __libc_start_main()" [Low,Confirmed] https://launchpad.net/bugs/74038215:42
tedgjml, You'll need to redirect it to a file.15:42
tedgjml, So I guess I should have included that in my command line :-)15:42
tedghtorque_, Did you just start GIMP, or start it and shut it down before closing the loader?15:43
jmltedg: np. I'll do that now. How will I know if I've triggered the condition?15:44
tedgjml, Well, I'm guessing that it doesn't shutdown, no?15:44
jmltedg: ok :)15:44
tedgjml, I'm guessing that somewhere in that log there has to be an invalid read/write.15:45
jmltedg: stdout & stderr, or just one of them?15:46
tedgjml, Oh, grab them all.  /me is feeling generous with LP's disk space.15:46
htorque_tedg: i started it, waited for the loader to show the menu, then closed it. started it again, a.s.o.15:48
tedghtorque_, Okay, makes sense.  Just making sure.15:48
tedgAs much as I love blaming njpatel, I try to not do it arbitrarily, well, not all the time.15:48
njpatelhtorque, it's tedg's fault and he knows it15:49
njpatelI don't leak. Nor does my code.15:50
htorque_i only know that it's not my fault. opening applications seems like expected behavior. :P15:50
TrevinhoSome times ago I also gave a look to this problem15:52
andyrockJohnLea, Finally I found the time to fix this https://bugs.launchpad.net/unity/+bug/83263115:52
ubot5Ubuntu bug 832631 in unity (Ubuntu) "Dnd hover timeout in spread view does not work as expected" [Undecided,Confirmed]15:52
andyrocki've add this behavior15:52
Trevinhoand it seems that unity-panel-service itself is working well15:52
Trevinhoaccording to valgrind15:52
Trevinhoit seems something more related to the indicators15:52
Trevinhoand libappmenu seems the one15:53
tedgTrevinho, Heresy I say!15:53
* tedg sends the Spanish inquisition!15:53
Trevinhotedg: I know it's not your fault... :)15:53
andyrockthe timeout is reset if the mouse hover another window or if the mouse move more than 3px15:53
Trevinhobut, the fact is that also running the appmenu-indicator in natty, the leak persists15:54
tedgTrevinho, Did you try running the test app indicators under valgrind and see if anything came up?15:54
Trevinhoso, maybe it's not directly connected to that indicator, but to something going wrong in the framework15:54
TrevinhoI don't, but there's a valgrind log attached to the mentioned bug15:54
Trevinhohttps://launchpadlibrarian.net/78705404/valgrind.log15:54
andyrockthere is a 6x6 rect and the mouse pointer is the center, when the mouse pointer go outside of this rect the timeout is reset15:55
andyrockis it ok?15:55
tedgTrevinho, That is appmenu not application though...15:55
tedgReally both of them are pretty dynamic.  If there's a memory leak, it'd have to be one of those.15:55
jmltedg: attached15:57
jmltedg: my computer doesn't have working g-s-d now.15:57
Trevinhoah, sorry tedg I'll check15:57
htorque_applications definitely has one: bug 82996115:58
ubot5Launchpad bug 829961 in Unity Foundations "indicator-applications leaks memory" [High,Triaged] https://launchpad.net/bugs/82996115:58
jmltedg: so, uhh, I'll do launch that manually15:58
htorque_but that's not affected by starting applications15:58
JohnLeaandyrock; great news!  Do you know if it will be landing in today's or next week's release?16:14
andyrockit's not a unity bug but a scale plugin one16:15
andyrockhttps://code.launchpad.net/~andyrock/compiz-core/fix-83263116:15
smspillazandyrock: poke16:33
smspillazandyrock: what's the reason for resetting scale on mouse motion ?16:33
smspillaz(or a buffer of mouse motion)16:34
smspillazseems like it only makes sense to do it per window16:34
smspillazerr16:35
smspillazthe scale dnd timeout16:35
andyrocksmspillaz, well if you move the mouse a lot without changing window the timeout don't reset16:35
andyrock*doesn't16:35
andyrockJohnLea, ^^^16:35
smspillazandyrock: ah, so you want it so that it it resets when you move the mouse around inside the client window a little bit, but not when you move it a lot16:36
andyrocksmspillaz, yes16:37
smspillazandyrock: in that case it might make more sense to accumulate motion events16:37
andyrockfeel free to remove the rect... :)16:37
smspillazandyrock: like, watch MotionNotify, and if we've moved more than X pixels then reset the timeout16:38
smspillaz(timer.stop (), timer.start ())16:38
andyrockduring the xndd we don't get the motionnotify events16:38
smspillazah, crap, that's right16:38
smspillazehh16:38
andyrocki think because the mouse is grabbed by the source16:38
smspillazwell hang on16:39
andyrockbut the source should do it for us16:39
om26erTrevinho, bug 838923 wont that be compiz?16:39
ubot5Launchpad bug 838923 in unity (Ubuntu) "Start dragging a maximized application title causes it to re-decorate" [Undecided,In progress] https://launchpad.net/bugs/83892316:39
smspillazyou should get xdndPosition?16:39
smspillazom26er: the redecoration is done by unity16:39
andyrockyes....16:39
smspillazandyrock: so you can use that, right ?16:39
om26erthere are a few other bugs reported already about it though.16:39
andyrockcase ClientMessage:16:39
andyrock    if (event->xclient.message_type == Atoms::xdndPosition)16:39
andyrock    {16:39
andyrocksmspillaz, ^^^16:40
om26ersmspillaz, oh ok..16:40
smspillazandyrock: what's wrong with using xdndPosition ?16:40
andyrocksmspillaz, we alredy use xdndPosition :)16:40
andyrockand get x,y form the message event16:41
smspillazandyrock: right. so instead of using the rect, what you could do is accumulate the pointer movement16:41
Trevinhoom26er: I gess that it's just an unity policy16:41
smspillaz(eg, save the last x and y co-ords, and apply that to a global dmovement)16:41
TrevinhoI can control the decoration, but I don't know how to manage it16:41
smspillazand then if dmovement > threshold reset the timer16:41
andyrockok... i got it16:42
andyrockcan i ask you why? CompRect is slow?16:42
smspillazandyrock: I'm thinking of cases where the user moves their cursor in one direction the entire time16:42
andyrocksmspillaz, i don't understand... if the mouse move outside of the rect the rect update itself.16:45
andyrockbut i will do it... np16:45
smspillazandyrock: right, although this way is slightly more consistent16:46
andyrockwhat do you think is a good threshold?16:46
smspillazmight be worth making it an option16:46
andyrockok ok :)16:46
smspillazyou know how that works?16:46
andyrockof course...16:46
smspillazawesome16:46
andyrocki added some option to unity code16:47
smspillaz:)16:47
andyrocki think it's the same16:47
smspillazyep, same16:47
andyrockwe have an option for the timeout so it make sense16:47
smspillazalso, compiz coding style has spaces between function calls and brackets16:47
smspillazand spaces between operators and members16:47
smspillazoh, I think that it might be better to have a member in the ScaleScreen class "mDistance"16:48
smspillazoh! and I almost forgot, pointerX and pointerY are updated on xdndPosition iirc16:48
smspillazso you don't need to save their position :)16:48
smspillazyou can just use pointerX - lastPointerX16:48
andyrockso there is no need to use this stuff16:58
andyrockint x = event->xclient.data.l[2] >> 16;16:58
andyrockint y = event->xclient.data.l[2] & 0xffff;16:58
andyrocksmspillaz, ^^^16:58
smspillazandyrock: right, although you'll need to know what the last pointer position was17:02
andyrocksmspillaz, using lastPointerX and pointerX and Pythagorean Theorem works well :)17:30
smspillazandyrock: sweet :)17:30
smspillazandyrock: update your merge proposal and I'll merge that in17:30
smspillazgood work17:30
andyrocksmspillaz, do you prefer a private member or i can use optionGetDndDistance every time?17:45
andyrockall the other option are not saved in a private member17:45
om26ersmspillaz, is this branch https://code.launchpad.net/~smspillaz/unity/unity.fix_838062/+merge/73703 supposed to fix those issues reported in minimize?17:46
om26erlike windows wont raise etc17:47
smspillazom26er: it will fix input still being around for those windows like chromium with CSD17:50
smspillazandyrock: yeah, using the option directly is fine17:50
om26ersmspillaz, that would close a bunch of lp bugs, I'll link them as I find :017:50
om26er*:)17:51
smspillazom26er:  :)17:51
smspillazsome applications do some really weird stuff17:51
andyrocksmspillaz, can you give me the astyle command to format properly the code17:57
andyrockyou know compiz style is weird (tab + space i really don't understand why :) )17:57
om26erTrevinho, will your panel fix branch also fix bug 835989 ?18:01
ubot5Launchpad bug 835989 in unity (Ubuntu) "Launcher - does not hide if revealed from top 24px of the left edge of the screen" [Medium,Confirmed] https://launchpad.net/bugs/83598918:02
andyrockom26er, about dnd dash bug18:07
andyrockthe cause of the problem is similar but it's due to different parts of code18:09
andyrockso fixing one doesn't fix the other18:09
andyrockone... but if we found a solution we can use it both in the dash problem and collection window one18:10
Trevinhoom26er: I've to check but I guess no18:10
Trevinhoom26er: checked. No18:11
om26erandyrock, aha alright18:11
TrevinhoMaybe I'll look to that aftherwards18:12
om26erTrevinho, that'l be cool18:12
Andy80Kaleo: I've noticed this behaviour on Unity-2d running on Oneiric: even if you maximize a window, you still see two application window title. The one in the top unity bar and the other one below. I try to make a screenshot...18:18
* om26er think Andy80 is using compiz18:18
Andy80om26er: eh?18:19
=== daker_ is now known as daker
smspillazandyrock: I don't have it on me18:19
om26erAndy80, the problem happens when you are using compiz with unity-2d18:20
om26erAndy80, bug 70518218:20
ubot5Launchpad bug 705182 in unity-2d "[window management] With Compiz window decorations are shown both in the panel and in the window itself" [Medium,Confirmed] https://launchpad.net/bugs/70518218:20
Andy80om26er: I don't know if I'm using compiz or not... I just upgraded my VM from Natty to Oneiric18:20
Andy80I didn't choose to use compiz by my own18:21
om26erAndy80, you can try metacity --replace and afterwards see if the issue happens or not18:21
om26erbut there must be a better way to know which window manager is running though i dont know how :/18:22
Andy80om26er: tried.... I still have the same bug18:22
Andy80om26er: how do I disable Compiz?18:22
om26erAndy80, not sure how, metacity --replace disables compiz18:23
om26ergotta run, its EID :D18:23
=== daker is now known as daker_
andyrocksmspillaz, what do you mean for "I don't have it on me"?19:00
smspillazandyrock: like, I don't have any astyle command that you can use19:01
smspillazandyrock: but I don't really like autoindent19:01
smspillazcauses problems19:01
smspillazandyrock: the general style is19:01
smspillaz8 wide tabs19:01
smspillazspaces between functions and brackets ()19:01
smspillazcamelCaseVariables19:01
smspillazand the tabbing goes something like19:01
smspillaz1 indent:19:02
smspillaz4 spaces19:02
smspillaz2 indents19:02
smspillaz1 tab19:02
smspillaz3 indents:19:02
smspillaz1 tab, 4 spaces19:02
smspillaz4 indents19:02
smspillaz2 tabs19:02
smspillazetc19:02
smspillazso think of it as "indents" and "half indents"19:02
smspillazwhere an indent is 1 tab and a half indent is 4 spaces19:02
andyrockok.... it's a bit weird :)19:02
smspillaz(it's X11 style)19:02
smspillazyes it is19:02
smspillazhowever, changing it is a nightmare19:03
L42yHi, I'm building unity in Arch Linux. When I run unity with command: "unity --replace -v --log=~/unity.log", it ouput "unity-panel-service: no process found" "compiz (core) - Debug: Could not stat() file /usr/lib/compiz/libcore.so : No such file or directory" "compiz (core) - Warn: Value type is not yet set" and unity dosen't show up19:03
smspillazbecause if you change it you'll break bzr blame and git blame and we can't do that since a lot of the code is not well documented19:03
smspillazL42y: is the unity plugin being loaded?19:03
smspillazlook for "Initializing unityshell options ... done"19:04
=== zyga is now known as zyga-afk
L42ysmspillaz: I enable it in ccsm19:04
smspillazL42y: right, but is it actually being loaded19:04
andyrockmy unity creshed.... damn19:05
L42ysmspillaz: When I run ccsm, I see "Initializing unityshell options...done"19:06
L42yIs this means unity loaded?19:07
smspillazyes19:07
smspillazand you can't see anything ?19:07
L42ysmspillaz: Yeah, I run the command in kde.19:09
smspillazhaven't really got any ideas then, sorry man :/19:15
L42ysmspillaz: Thank you for your help.19:18
=== daker_ is now known as daker
=== daker is now known as daker_
smspillazandyrock: mergee19:53
smspillazandyrock: merged19:53
andyrocksmspillaz, thx :)19:53
=== yofel_ is now known as yofel
thumpermorning21:25

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