/srv/irclogs.ubuntu.com/2018/04/20/#xubuntu-devel.txt

ali1234what version?00:24
ali1234how much of that path exists?00:30
ali1234FurretUber: please open a bug with ubuntu-bug xfpanel-switch and attach ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml and ls -lR ~/.config/xfce4/panel00:33
ali1234it's possible that either of those files could contain private information so check for that first00:34
ali1234paste the bug link here and i will take a look00:34
FurretUberOk, give me a moment00:34
ali1234also a screenshot of your panel layout might help to get a basic idea of what is going on00:35
FurretUberhttps://bugs.launchpad.net/ubuntu/+source/xfpanel-switch/+bug/176556500:43
ubottuLaunchpad bug 1765565 in xfpanel-switch (Ubuntu) "xfpanel-switch is failing to save panel settings" [Undecided,New]00:43
ali1234you have five launchers in the configuration, but the matching .desktop files are missing?00:45
FurretUberThe panel has two, which is the intended. I don't know from where are those additional .desktop files00:46
ali1234they are in th configuration00:46
FurretUberI saw this, but they don't exist in the panel00:46
ali1234can you open panel properties on the the list of plugins and screenshot it please?00:46
FurretUberhttps://i.imgur.com/QJDsU0w.png00:47
ali1234do you have any idea how this could have happened? did you ave more launchers before?00:48
ali1234did you load a configuration that could have added them?00:48
FurretUberI have changed the default browser a few times, and I changed the icon accordingly00:49
ali1234the name of the .desktop is a unix timestamp00:49
ali1234it has one extra digit tho :)00:50
ali1234so those .desktop files are from 201500:50
ali1234hmmm00:52
Unit193The heck is session-migration?00:53
ali1234yes, you can see that those plugins are not in the plugin-ids array00:53
ali1234Unit193: context?00:53
Unit193New package, not a whole lot of a description.00:54
ali1234oh i bet i know how this has happened00:55
ali12341. make new panel, 2. add stuff to panel, 3. delete original default panel, 4. plugins from the original panel are not removed, just left as orphans, 5. .desktops do get removed though00:56
ali1234yeah this is it00:59
ali1234this is actually a xfce4-panel bug01:00
ali1234going to be way easier to work around it in panelswitch though01:00
ali1234FurretUber: when did you make your panel configuration?01:13
ali12341. make new panel, 2. add stuff to panel, 3. delete original default panel <- is that what you did?01:14
FurretUberI changed it last time yesterday (as I added xfce4-statusnotifier-plugin to the panel), but this configuration is,definitively, not new01:14
ali1234when did you delete the default panel?01:14
FurretUberI never deleted a panel, I just edited its settings01:15
FurretUberTrying to delete that part from the XML with the .desktop files don't work, as it reappear a second later01:15
FurretUberIf I start another session without the xfce4-panel and edit the XML, the moment I log in the panel returns to that state01:16
ali1234you cant edit the xml on disk01:17
ali1234you can use the settings editor to delete it however it would be helpful if you didn't for testing01:17
ali1234so you removed some of the plugins from the default panel and added new ones?01:18
FurretUberYes01:18
ali1234when did you remove them?01:19
ali1234was it before or after upgrading?01:19
FurretUberBefore and after01:20
ali1234the default ones i mean01:20
FurretUberBefore01:20
ali1234all the orphans on your panel are from the default configuration01:20
ali1234and i can't reproduce the effect in 18.0401:20
ali1234so on 17.10? or is the config even older than that?01:20
FurretUberEven older. Give me a moment to think01:21
ali1234did you use panel switch to copy over the panel from an older install?01:21
FurretUberNo, I just upgraded from one to another01:22
ali1234oh right, 17.04 was your first install01:22
FurretUberIt was Xenial -> Yakkety -> Zesty -> Zesty reinstall -> Artful -> Bionic01:22
ali1234so this is probably a bug that has been fixed on the panel side01:23
ali1234but we need to handle the left over bad config in panel-switch01:23
FurretUberWhat may be the cause of the XML for the panel returning to its previous state after I edit it?01:24
ali1234its how xfconf works01:25
ali1234it only loads the file at login and after that it only writes01:25
ali1234if you edit it while logged out, that will work01:25
ali1234you can do that from a console01:26
FurretUberI will try to edit from the console, so I will log out. I will join here again and tell if it worked or not01:27
ali1234you can just use the settings editor too01:28
ali1234i dont recommend hacking the xml01:28
FurretUberI have changed it, but I saved that "tainted" configuration, if we need to make additional tests01:37
FurretUberOh, I've found a way to reproduce that bug of Indicator icons appearing multiple times01:38
FurretUberJust changing the panels with xfpanel-switch enough times to the Bionic version makes this happen sometimes01:40
ali1234FurretUber: okay i've got a patch for you to test01:48
ali1234http://paste.ubuntu.com/p/r59fFDyh7N/01:49
ali1234copy that over /usr/share/xfpanel-switch/xfpanel-switch/panelconfig.py01:49
ali1234run "xfpanel-switch save foo" on terminal01:50
ali1234it should print the orphans01:50
FurretUberhttps://paste.ubuntu.com/p/FWNfX2FBZJ/01:53
ali1234looks right01:54
ali1234can you try saving and loading the configuration through the gui?01:54
ali1234afterwards, your orphans should be gone01:54
FurretUberApparently it worked. The file is smaller and no longer has those additional launchers, nor multiple genmon01:56
ali1234nice01:57
ali1234i'm going to need you to test this one more time on the version of the patch with no debug prints :)01:58
ali1234this is my final patch: https://bazaar.launchpad.net/~a-j-buxton/xfpanel-switch/orphan-plugins/view/head:/xfpanel-switch/panelconfig.py02:09
ali1234i sent a merge request02:09
ali1234this will need careful testing/review02:10
FurretUberApparently it's working here. What behavior should I see? Are there additional tests I should do? 02:10
ali1234well, first, get the new version of the patch :)02:11
ali1234and then... test as much as you can02:11
ali1234the corrupt config, and also just regular configs02:11
FurretUberIt's no longer removing the invalid entries from the XML file, but I think this is intended (maybe a plugin lacking that the user want), but it is importing and exporting properly. Give me a moment02:21
ali1234it should be02:21
FurretUberI tried to cause errors in many ways, I've used even a live system to try to cause havoc. What I have noticed:02:51
FurretUberIf the configuration was invalid and would cause a error, as it happened with my configuration without the .desktop files, then all invalid entries are corrected02:52
FurretUberIf the configuration has invalid values but would not cause a error, then it saves the configuration with the invalid but not "fatal" values02:53
FurretUberThey are being corrected in the moment of the save02:54
ali1234can you check the saved config? it's a tar file with config.txt inside03:00
FurretUberFrom the saved configs, if when saving it would crash, then all invalid entries are removed. If there are no entries that would crash, it saves the invalid but not fatal entries03:04
FurretUberOne entry that is removed in the file that causes the crash but is not removed if no crash happens is: /plugins/plugin-26 'thunar-tpa'03:06
FurretUberIf I start a session using the config file with the invalid entries I can use it but, when I save it, the invalid entries are removed03:08
FurretUberIf it would cause a crash03:09
FurretUberIf there are invalid entries but they do not cause a crash, then I can save and load it03:09
ali1234edit panelconfig.py line 154 add a print statement: print(param)03:13
ali1234hmm03:14
ali1234i see03:14
ali1234show me the config.txt please?03:18
FurretUberAdding that, when opening xfpanel-switch with the file with invalid entries but that does not cause the crash makes this appear: https://paste.ubuntu.com/p/7Y67tW7vyF/03:18
FurretUberWhich one of the config.txt? From the one that causes the crash?03:19
ali1234both03:19
FurretUberWhen opening with the configuration that would cause the crash: https://paste.ubuntu.com/p/TFQ6qKjcGf/03:23
FurretUberGive me a moment, I will obtain the config.txt of the file that causes the crash03:23
ali1234so it is deleting those keys03:24
FurretUberHow the entry that would cause the crash is after saving it: https://paste.ubuntu.com/p/zcTcC4X2d8/03:26
ali1234so they are gone from the config03:26
FurretUberHow they are in the entry with invalid values but not fatal: https://paste.ubuntu.com/p/ZdykJYRqKr/03:27
ali1234can you show me the two xml files as well?03:28
FurretUberAfter reimporting them? As the one that causes crash is impossible to recover03:29
ali1234no, before03:29
FurretUberOk03:29
FurretUberThis one causes the crash: https://bugs.launchpad.net/ubuntu/+source/xfpanel-switch/+bug/1765565/+attachment/5123170/+files/xfce4-panel.xml03:30
ubottuLaunchpad bug 1765565 in xfpanel-switch (Ubuntu) "xfpanel-switch is failing to save panel settings" [Undecided,New]03:30
FurretUber"PHP and other Web scripts are not allowed"03:31
FurretUberhttps://pastebin.com/6UmiCaS203:31
FurretUberThe second one has invalid entries but can still be saved03:32
FurretUber"Lossless"03:32
FurretUber(sorry, couldn't find a better term)03:32
ali1234hmmmmmmm03:34
FurretUberWhat is the intended behavior? Remove all invalid entries or only the ones that cause a crash?03:39
ali1234remove all03:39
FurretUberSo the issue is with the file that kept the invalid ones?03:40
ali1234yes03:40
FurretUberAren't the functions that remove invalid entries called only if the program would crash?03:41
ali1234no03:42
ali1234try this please http://paste.ubuntu.com/p/drhkY3gK28/03:44
FurretUberShould something different happen? More messages were printed03:47
ali1234no, past the messages please03:47
FurretUberhttps://paste.ubuntu.com/p/STGDyn5RQt/03:47
ali1234and the config.txt?03:48
FurretUberhttps://paste.ubuntu.com/p/J5S22PJDS4/03:48
ali1234wtf03:50
ali1234try this one please: http://paste.ubuntu.com/p/wyNw58Q3C6/03:50
FurretUberThe output from the program: https://paste.ubuntu.com/p/ND6k4Gp6Hn/03:53
FurretUberThe config.txt file: https://paste.ubuntu.com/p/kdJtr7zbpD/03:54
ali1234now they are gone?03:54
FurretUberThe config.txt has the same 63 lines as the file that would cause the crash and was corrected03:55
ali1234but i did not change anything in the code03:55
FurretUberThe only possibility in that in the penultimate test I have not copied the file correctly03:58
FurretUberBut it was more verbose03:58
ali1234this one has the prints commented out: http://paste.ubuntu.com/p/BgqPHtKv8Z/04:00
FurretUberCopied correctly, now I'll test04:01
FurretUberOk, it did not change, the invalid entries are still there04:03
ali1234this one i just uncommented the one print line: http://paste.ubuntu.com/p/H33ksPg3WJ/04:05
FurretUberCopied, now I'll test04:05
FurretUberKept the invalid values and printed this: https://paste.ubuntu.com/p/7NZFc3TPDT/04:07
FurretUberOne of the versions is corrected04:08
ali1234what do you mean?04:09
FurretUberOne you sent previously is removing the invalid entries04:09
ali1234oh, i made a typo04:10
ali1234http://paste.ubuntu.com/p/wgrHgpXGrJ/04:10
FurretUberCopied, now I will test04:11
FurretUberDidn't work, the invalid entries are still there04:13
ali1234uncomment line 175 and try again04:13
FurretUberhttp://paste.ubuntu.com/p/wyNw58Q3C6/plain/ you sent before04:14
FurretUberThis one works04:14
ali1234and line 15504:14
FurretUberIt didn't work, and this was printed: https://paste.ubuntu.com/p/gMxZPQhSbS/04:16
ali1234hmm so it saved it without, then it saved it again with04:17
ali1234are you using the GUI or command line?04:17
FurretUberGUI04:17
ali1234okay well this is a start04:20
ali1234are you using the export button?04:24
FurretUberI'm using the save button04:25
ali1234try this one please: http://paste.ubuntu.com/p/2NsXJy5JxC/04:27
ali1234i dont understand what is happening here04:28
FurretUberCopied, I'll test04:28
FurretUberNow it removes the invalid entries04:29
FurretUberhttps://paste.ubuntu.com/p/7Pny99qksS/04:30
FurretUberThe config.txt: https://paste.ubuntu.com/p/RBDc47KB4r/04:30
ali1234there must be a race condition04:32
ali1234http://paste.ubuntu.com/p/hs3gCBsZ9h/04:33
FurretUberNow it failed. What?04:34
ali1234yes there's some kind of race condition. it randomly works or does not work04:34
FurretUberCopied04:36
ali1234hmm that one is broken, nvm04:36
FurretUberYes, it is04:37
ali1234the problem is the cache file04:38
ali1234hmmmmmmmmmmmmmmmm04:40
ali1234i know what the problem is04:40
ali1234always close() files when you are done writing to them04:40
ali1234 Note fileobj is not closed, when TarFile is closed. 04:43
FurretUberI don't know Python, but then this means the f.close() should be before the t.close()?04:47
ali1234FurretUber: http://paste.ubuntu.com/p/7gbYdyf4Ck/04:53
FurretUberCopied04:54
FurretUberWorked, will try again04:54
FurretUberDidn't work after04:55
FurretUberIt worked the first time04:55
ali1234what was the output?04:56
FurretUberWhen worked: https://paste.ubuntu.com/p/tqFN3s8VxX/04:57
ali1234thats not the full output04:58
FurretUberAs I changed the configuration more than once, I thought that was the output for one run. Here is the complete one (more than one run): https://paste.ubuntu.com/p/4QGhxMGdX9/05:00
FurretUberTo be clear: the LevementeRuim17 is OK, but the LevementeRuim18 is bad05:02
ali1234you loaded a bad config and then saved it?05:03
FurretUber(To the curious: "Levemente Ruim" means "Slightly Bad")05:03
FurretUberI started with a bad config05:04
FurretUberThen saved it to the 1705:04
FurretUberFile 17 was good05:04
ali1234yes. and then you loaded 1605:04
FurretUberYes, and 16 was bad05:04
ali1234and 16 was bad to begin with05:04
ali1234then you saved to 1805:04
FurretUberYes05:04
FurretUberAnd 18 was bad05:04
ali1234yes. because it used the cache file05:05
ali1234why does that cache file even exist?05:05
FurretUberI'm sorry, but I have to go sleep, it's really late now05:08
ali1234np. i know what the problem is now05:08
FurretUberThank you for helping me. Good night05:09
-SwissBot:#xubuntu-devel- ATTN: Xubuntu Core 18.04 - i386 - i386 built.07:15
-SwissBot:#xubuntu-devel- ATTN: Xubuntu Core 18.04 - amd64 - amd64 built.07:41
Unit193...And I never remembered whisker at a time I was allowed to touch packages. :/09:37
Unit193!info xfce4-whiskermenu-plugin experimental09:37
ubottu'experimental' is not a valid distribution: artful, artful-backports, artful-proposed, bionic, bionic-backports, bionic-proposed, kubuntu-backports, kubuntu-experimental, kubuntu-updates, partner, precise, precise-backports, precise-proposed, stable, testing, trusty, trusty-backports, trusty-proposed, unstable, utopic, utopic-backports, utopic-proposed, vivid, vivid-backports, vivid-proposed, wily, wily-backports, wily-proposed, xenial, xenial-back09:37
Unit193!info xfce4-whiskermenu-plugin bionic09:37
ubottuxfce4-whiskermenu-plugin (source: xfce4-whiskermenu-plugin): Alternate menu plugin for the Xfce desktop environment. In component universe, is optional. Version 2.1.5-0ubuntu1 (bionic), package size 149 kB, installed size 715 kB09:37
Unit193!info xfce4-whiskermenu-plugin unstable09:37
ubottuxfce4-whiskermenu-plugin (source: xfce4-whiskermenu-plugin): Alternate menu plugin for the Xfce desktop environment. In component main, is optional. Version 1.6.2-1 (unstable), package size 160 kB, installed size 681 kB09:37
ondondilxfce4-panel in bionic looks kinda broken when switched to vertical mode https://i.imgur.com/M5NNrzx.png19:15
flocculantthe panel always looks broken if it's not horizontal19:30
flocculantit's never not for me for years19:31

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