/srv/irclogs.ubuntu.com/2015/07/08/#xubuntu-devel.txt

Unit193micahg: Thanks for the upload.02:51
micahgUnit193: sure02:56
micahganyone want to test this? https://bugs.launchpad.net/trusty-backports/+bug/139148702:56
ubottuUbuntu bug 1391487 in trusty-backports "Please backport xfce4-settings 4.11.3-0ubuntu2 (universe) from utopic" [Undecided,New]02:56
ali1234can someone test something for me please?15:31
ali1234open mousepad, open preferences, editor tab, set tab width to 33, press okay15:32
ali1234this will crash mousepad15:32
flocculantali1234: ack that with the version in dev ppa15:37
ali1234i'm on the dev ppa too... was hoping someone would test without it15:42
ali1234i'll test in virtualbox when it's updated15:42
ali1234thanks anyway tho15:42
flocculantI'll purge the ppa then15:43
ali1234it's okay15:44
flocculantdid it - crashed same with mousepad 0.4015:45
ochosiali1234: oh wow, interesting crash. and yeah, i can reproduce15:48
ali1234found the bug15:49
ali1234i'll send a patch upstream15:49
ochosiweird that a value that is out of schema range can cause a segfault15:49
ali1234yeah15:49
ochosiis it in gsettings?15:49
ali1234not sure15:49
ali1234i think i see it15:56
ali1234doing an apport...15:57
ali1234bug 147269016:19
ubottuError: Launchpad bug 1472690 could not be found16:19
ali1234bug 147269016:21
ubottubug 1472690 in mousepad (Ubuntu) "Mousepad crashes when setting tab width > 32" [Undecided,New] https://launchpad.net/bugs/147269016:21
ali1234https://bugzilla.xfce.org/show_bug.cgi?id=1205516:25
ubottubugzilla.xfce.org bug 12055 in General "Setting tab width to 33 crashes mousepad" [Normal,New]16:25
ali1234so what happens is the gsettings object becomes invalid when you try to store a wrong value in it, then later an assertion crashes mousepad because the object isn't valid16:26
ochosicodebrainz: ^ fun bug :)16:32
pleia2if anyone wants to proof read the latest Xubuntu at... article: http://xubuntu.org/?p=3361&preview=true (need to be a Xubuntu team member w/ login to the site to view)20:09
pleia2knome: ^^20:09
knomewill do that in an hour or so20:24
knome*within20:24
pleia2ty20:24
codebrainzali1234, ochosi, nice :)  The more curious thing to me is 1) why would one want 33-wide tabs, and 2) how did they set them to 33 since the UI limits to 3223:22
codebrainzI'll have a look. If it didn't hard-crash I'd just say "unsuported", but well...23:23
ali1234the UI doesn't limit to 32... that's the problem23:23
ali1234it limits to 12823:23
codebrainzit does here23:23
ali1234i put a patch on xfce bugzilla23:24
ali1234no really i checked the code :)23:24
codebrainzhttp://i.imgur.com/ZMVUa8g.png23:24
codebrainzi mean you could force it through dconf-editor though23:25
ali1234what is that...23:25
codebrainzscreenshot of mousepad from Git master with a nasty gtk theme23:26
ali1234is that a slider??23:26
codebrainzyeah23:26
ali1234mine doesn't have a slider23:26
ali1234it doesn't look anything like that at all23:26
codebrainzare you using gtk2 or 3?23:26
ali1234gtk223:26
ali1234http://i.imgur.com/FdwA3fZ.png23:27
ali1234why do you have a separate window just for the tab width? i don't even...23:27
codebrainzah ... I thought you meant Document->Tab Size->Other ...23:28
ali1234i didn't even know that was a thing23:28
Unit193Gtk2 mousepad is nicer. :/23:28
ali1234yeah the per-document setting is fine23:28
ali1234btw23:28
ali1234reason i wanted this was because i had a datafile which was tab-delimited23:28
codebrainzali1234: did you have any look at why the hard-crash?23:29
ali1234and i wanted the data columns to line up, and was too lazy to import in a spreadsheet23:29
ali1234so i just tried to make tab stop huge -> crash23:29
ali1234and the crash happens because if you try to set the gsettings value to something invalid, the whole gsettings object becomes invalid, then a later assertion crashes23:29
codebrainzugh, nice23:30
ali1234didn't look any deeper than that23:30
codebrainzsince it's hard-coded, I guess I won't investigate too deeply either, as it shouldn't be allowed to go out of range (modulo the bug)23:30
ali1234on a completely unrelated note, text files with 5MB of text and no line breaks makes mousepad unhappy23:30
codebrainzs/mousepad/many editors/ :)23:31
SwissBotcodebrainz: You did something wrong... Try s/you/me/ or tell me "help sed"23:31
ali1234but basically no text editors can handle that23:31
codebrainz5mb sure, but without the line break, even on Scintilla editors like Geany it'll bomb23:31
codebrainzIIRC Gtksourceview keeps a list of line strings, so I guess it only has one huge link23:32
ali1234gedit will warn you if you try to open such a file, i think23:32
ali1234mousepad opens it, thinks for like four hours, then draws the whole line wordwrapped but on a single line, so it looks like when the paper gets stuck in a typewriter and you just keep going23:33
codebrainzoh wow, with line-wrapping too, nice :)23:33
codebrainzI'm not even sure how you'd warn about that without scanning and counting how many newlines23:34
ali1234well you must have scanned through it before displaying it23:35
ali1234i could look at how gedit does it some time, if you're interested23:35
codebrainzi'd have to look to be sure, but I don't think mousepad does much besides dump the file contents straight into GSV buffer23:36
codebrainzali1234: I'm not strictly opposed, but it's kind of outside of mousepad's scope to handle such files (IMO)23:36
codebrainzbut someone made a simple patch that didn't add an additional pass of scanning the buffer just for that, I would probably be ok with it23:37
ali1234would be nice if it didn't crash though23:38
ali1234i tink this might be the cause of "mousepad becomes unresponsive after some time"23:38
codebrainzoh23:38
ali1234i mean technically it doesn't crash... if you are patient enough23:39
codebrainzmaybe it could just check if the file is greater than N kb/mb and put up a dialog "The mouspad text editor is not suitable to huge files, and if it doesn't have sufficient line breaks it will probably eat your breakfast"23:39
codebrainzwith an "I agree" button23:39
ali1234yeah i might be misremembering on gedit actually... it might just do that23:40
ali1234let me check23:40
codebrainzwe discussed such a thing for Geany, as it doesn't handle massive files well if syntax highlighting is enabled (or if on single line)23:40
ali1234hmm gedit has a loading progress bar with a cancel button now23:41
codebrainzneat23:41
ali1234but attempting to scroll the file killed it23:41
ali1234it actually lets you view the file before it finished loading too23:41
codebrainzmousepad seems to handle massive files quite well, assuming they have line breaks23:41
codebrainz(at least last time i checked)23:42
codebrainzali1234: i guess it needs to get lower bound set too23:43
codebrainzchanging it to zero also crashes it23:43
ali1234doh23:44
codebrainzyou mind if I amment your commit?23:44
ali1234go for it23:44
codebrainz*amend23:44
ali1234i tested setting -1 in gsettings23:44
codebrainz(just to avoid two micro commits for same issue)23:44
ali1234but not 023:44
ali1234-1 also seems to be the default in the schema23:45
codebrainzwhat happens with -1?23:45
ali1234it seems to use 4 as a default23:45
codebrainzok, fine23:45
ali1234but you can't have -1 without also allowing 023:46
ali1234i didn't understand what that was all about, so i left it23:46
codebrainzali1234: did you put your patch in a separate branch?23:47
ali1234i don't think so?23:48
ali1234i just git pulled23:48
codebrainzI mean i want to git commit --amend to it, which will re-write the sha1 of it23:48
codebrainzso you'll have to undo it or it might give grief when you pull next time23:48
ali1234no problem, i'm used to that stuff23:48
codebrainzokie23:48
codebrainzhttp://git.xfce.org/apps/mousepad/commit/?id=15f4e5a47bd85d2cd831f65d6a66e548ad4d570823:50
ali1234thanks23:51
codebrainzand to you23:52
codebrainznote to self: review all prefs to make sure there are no other crashes accessible from UI :)23:52
ali1234going to amend this too? http://git.xfce.org/apps/mousepad/tree/mousepad/org.xfce.mousepad.gschema.xml?id=15f4e5a47bd85d2cd831f65d6a66e548ad4d5708#n10723:52
codebrainzwhere is it from?23:53
codebrainzoh the schema23:53
codebrainzali1234: it _might_ be that I smarty made -1 use a safe hardcoded default value23:54
codebrainz*smartly23:54
ali1234hmm gedit loaded that 5MB text file23:54
ali1234wordwrapped it all, and it works absolutely fine23:54
codebrainzi don't see why I'd put -1 instead of 0 or 1 otherwise23:54
ali1234must be gtk3?23:54
codebrainzcould be. i think ./configure --enable-gtk3 will force it with mousepad, if you want to test23:55
ali1234i'll give it a try23:55
ali1234this works fine, as long as you wait for it to finish loading before you try to do anything23:55
ali1234oh wait, no, i just didn't get to the looooong line23:56
ali1234now it froze23:56
codebrainzhehe23:56
codebrainzyou need better files :)23:56

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