Gajim - 2017-08-17

  1. mimi89999 Traceback (most recent call last): File "/usr/share/gajim/gajim/", line 113, in on_status_icon_left_clicked self.on_left_click() File "/usr/share/gajim/gajim/", line 419, in on_left_click self.handle_first_event() File "/usr/share/gajim/gajim/", line 431, in handle_first_event gajim.interface.handle_event(account, jid, event.type_) File "/usr/share/gajim/gajim/", line 1745, in handle_event self.new_private_chat(gc_contact, account, session=session) File "/usr/share/gajim/gajim/", line 2062, in new_private_chat account, message_control.TYPE_PM) File "/usr/share/gajim/gajim/", line 1103, in create_window self._position_window(win, acct, type_) File "/usr/share/gajim/gajim/", line 1053, in _position_window gtkgui_helpers.move_window(win.window, pos[0], pos[1]) File "/usr/share/gajim/gajim/", line 302, in move_window if x < 0: TypeError: unorderable types: NoneType() < int()
  2. mimi89999 lovetox
  3. Asterix mimi89999: what's your window mode?
  4. Asterix one window for everything? roster + one message window? ... ?
  5. Asterix mimi89999: and what type of window were you trying to open? chat? gc ?
  6. mimi89999 Asterix‎: Private chat in conference
  7. mimi89999 Asterix‎:
  8. mimi89999 Asterix‎: Gajim version is
  9. Asterix and your window behaviour in pref window?
  10. mimi89999 Asterix‎: "Liste des contacts détachée avec conversations groupées par type"
  11. Asterix ok I see
  12. mimi89999 What is the issue?
  13. Asterix something wrong in Gajim
  14. Asterix I compare with previous versions to identify where we break it
  15. Asterix in py2: >>> None < 0 True
  16. Asterix in py3: >>> None < 0 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unorderable types: NoneType() < int()
  17. lovetox ha didnt know that
  18. Asterix and for years we miss an option in config
  19. Asterix pm-msgwin-x-position
  20. Asterix so pm window position is saved when in your mode one window per type of chat
  21. Asterix so for years it's not saved and always shown in (0,0)
  22. Asterix but probably nobody uses this mode except you mimi89999 :)
  23. lovetox why are you different mimi89999?
  24. lovetox 🤣
  25. mimi89999 I don't know :-(
  26. mimi89999 What can I do to have it work again?
  27. Asterix ok ok I commit a fix then :)
  28. lovetox call it the mimi89999 fix
  29. Asterix mimi89999: one question: does it sound logical for you that in this mode, pm != chat message?
  30. Asterix I mean it's normal that pm window can have different size / position than chat window?
  31. mimi89999 You mean that PM in MUCs are not in the same window than messages to JIDs?
  32. Asterix yes
  33. Asterix and that those 2 windows have different position / size saved to position them when you open it
  34. mimi89999 For me it will be OK if they are the same window... My problem is that I am in a dozen of conferences, and having conf and PM in the same window is bad, because my screen is not that large... So I want to have conferences in a separate window.
  35. Flow kalkin: my colleague wants to add gajim-omemo to macports. Could it be that is a bit outdated?
  36. kalkin Flow: I'm not sure. The development is done by lovetox now. I'm just using the arch packagr
  37. Flow lovetox: does gajim-omemo still require the patched python-axolotl?
  38. Flow as mentioned in 5.
  39. bot Yann Leboulanger pushed 1 commit to branch _refs/heads/master_ of _gajim_ <>: *cfbf45cd* <> add missing config options to save pm position and size
  40. Asterix mimi89999: fixed
  41. lovetox Flow, no i dont think so
  42. lovetox i will remove that
  43. Asterix this was a more that 11 years old bug, never reported :)
  44. lovetox i think current version of axolotl is 0.1.39
  45. Link Mauve Asterix, how does that work on systems which don’t allow applications to position themselves?
  46. mimi89999 Asterix‎: Thanks
  47. vanitasvitae Asterix: nice :D
  48. lovetox probably the call to the gtk method to position a window will do nothing, Asterix
  49. lovetox ah Link Mauve
  50. Link Mauve Ok.
  51. Asterix probably. Ask GTK Devs ;)
  52. lovetox Flow, what version do you package?
  53. Flow lovetux: likely the latest
  54. Zash I've seen some apps behave oddly when they don't get the window size they asked for, so that's something to check for too.
  55. lovetox whats macports? is gajim itself packaged for macports?
  56. Link Mauve Asterix, the GTK+ dev who sat in front of me left in November. :(
  57. lovetox Flow, you are aware that you need a version > 0.16.6 for omemo to work
  58. lovetox i dont know what is on macports
  59. Flow lovetox: I think raim also bumped gajim
  60. lovetox
  61. lovetox this says 0.16.3
  62. lovetox i dont know how updated this site is
  63. Link Mauve Isn’t Brew the one most used nowadays?
  64. Link Mauve I’ve been told to use this one instead of macports when I did the OS X stuff for PyTouhou.
  65. lovetox yeah a brew package would be nice
  66. lovetox but for master not for 0.16x
  67. Link Mauve Is there a list of blockers for a master alpha?
  68. Asterix the treeview bug
  69. Asterix that we can't repro when we want
  70. Asterix that is very hard to debug
  71. Asterix that don't touch everybody
  72. Asterix that is probably (but not only) related to metacontcts
  73. Link Mauve Wasn’t it just a matter of not displaying the self-contact?
  74. lovetox no its a cumulation of multiple problems, some of them has been fixed but not all of them
  75. Link Mauve Ok.
  76. mimi89999
  77. mimi89999 Can you please correct that?
  78. mimi89999 lovetox
  79. lovetox to what
  80. mimi89999 'Chats'
  81. mimi89999 I see '?Noun:Chats' as window title
  82. lovetox hm then something with translation does not work
  83. mimi89999 Other labels don't have '?Noun
  84. lovetox i have to ask asterix why this is there
  85. lovetox i think its meant as a hint for gettext translation
  86. lovetox but it seems to be not working
  87. lovetox weird we have that multiple times in the code
  88. lovetox but i dont find any reference on the net for it
  89. lovetox i wrote him a message
  90. vanitasvitae Gajim crashes everytime I upload a file with http upload. Gajim and plugins are all latest master/gtk3. I tried to get logs, but there is nothing interesting.
  91. lovetox system?
  92. lovetox vanitasvitae,
  93. vanitasvitae antergos. I open a bug ticket
  94. vanitasvitae
  95. mimi89999 vanitasvitae‎: Maybe you could try installing modules with the module plugin?
  96. vanitasvitae mimi89999, what difference would that make?
  97. mimi89999 Shouldn't a crash give a backtrace?
  98. lovetox should but if its a secfault we dont get anything
  99. lovetox hm, i cant reproduce here
  100. lovetox can you test on another server vanitasvitae
  101. lovetox its definitly something with the connection, i suspect a problem with certificates maybe
  102. vanitasvitae certificates should be okay (letsencrypt, up to date)
  103. vanitasvitae It definitely worked before
  104. lovetox can you try unencrypted
  105. vanitasvitae lovetox, gimme a sev
  106. vanitasvitae *sec
  107. vanitasvitae unencrypted crashes as well
  108. vanitasvitae mimi89999, your server has http upload?
  109. mimi89999 vanitasvitae‎: Yes and it works
  110. vanitasvitae mimi89999, on your server it doesn't crash, but I get 403 forbidden when the upload is finished
  111. vanitasvitae let me check, what happens when i upload on my server with conversations
  112. mimi89999 vanitasvitae‎: secfault in Python?
  113. mimi89999 :-/
  114. vanitasvitae conversations can upload without problems
  115. mimi89999
  116. mimi89999 Works well for me
  117. mimi89999 Gajim
  118. lovetox for me also encrypted works
  119. mimi89999 HTTP upload 0.6.3
  120. mimi89999 Maybe issue with urllib?
  121. ApoRes1337 Hello everybody :)
  122. lovetox hi
  123. doczkal Have to accept the certificate twice to download image
  124. vanitasvitae mimi89999: what python version do you have?
  125. mimi89999 michel@debian:~$ python3 --version Python 3.5.3
  126. vanitasvitae I have 3.6.2. anyone with that version here?
  127. vanitasvitae (Any arch users?)
  128. Link Mauve Hi. o/
  129. Link Mauve Never tried uploading files with Gajim though.
  130. vanitasvitae Could you try?
  131. Link Mauve I don’t get this plugin in Gajim > Plugins.
  132. vanitasvitae Link Mauve: i cloned gajim-plugins in .local/share/gajim/plugins
  133. Link Mauve Ok.
  134. vanitasvitae created a symlink
  135. Link Mauve lovetox, you really should rename the GTK+ branch as master. :/
  136. Link Mauve Also: 17/08/17 18:54:28 (W) gajim.plugin_system Plugin file_sharing not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin gnome_session_manager not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin gotr not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin offline_bookmarks not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (E) gajim.plugin_system.omemo No module named 'google' 17/08/17 18:54:28 (E) gajim.plugin_system.omemo No module named 'axolotl' 17/08/17 18:54:28 (W) gajim.plugin_system Plugin snarl_notifications not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin tictactoe not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin triggers not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin url_shortener not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin whiteboard not loaded, plugin incompatible with current version of gajim: > 0.15.9 17/08/17 18:54:28 (W) gajim.plugin_system Plugin ubuntu_integration not loaded, plugin incompatible with current version of gajim: > 0.15.9
  137. Link Mauve vanitasvitae, 17/08/17 18:54:59 (W) gajim.plugin_system.plugin_installer file_sharing/manifest.ini is missing mandatory fields {'version'}. Plugin not loaded.
  138. vanitasvitae Link Mauve: did you install gajim from gtk3 branch?
  139. Link Mauve master, yes.
  140. lovetox Link Mauve, thats not httpupload
  141. Link Mauve Oh.
  142. lovetox filesharing is a old not ported plugin thats why its not loaded
  143. Link Mauve vanitasvitae, worked fine, doesn’t crash.
  144. lovetox its a problem with python 3.6 and your server, a combination
  145. Link Mauve Although I was on 572fb921c7fa024c3c7e54c7addb512247754ca5, let me update.
  146. Link Mauve The client icon plugin only gives me ? icons, should I also install a database of known clients?
  147. Link Mauve vanitasvitae, still works on master.
  148. vanitasvitae Hm
  149. vanitasvitae Strange
  150. andrey.g I noticed that a couple months ago, now, after Link Mauve posted enough lines so that instead a link got posted, it is easy to reproduce. Right-clicking on that "view paste ...", I get a copy/paste menu, after I click somewhere else I get... oh, a second menu for the same link: "Copy Link Location + Open Link in Browser". One of them is one too much.
  151. lovetox i cant reproduce that
  152. lovetox if i click the link, it always shows me the copy link location
  153. Link Mauve I can’t reproduce either here.
  154. andrey.g You've tried on current gajim 0.16 git?
  155. Link Mauve master.
  156. Link Mauve I don’t even have gtk2 installed anymore. ^^
  157. andrey.g Link Mauve‎, BTW, what is the working way for gtk3 to start with a fully separate profile?
  158. Link Mauve Set XDG_DATA_HOME and XDG_CONFIG_HOME (and XDG_CACHE_HOME if you are that paranoid) to point to other locations, I guess?
  159. Link Mauve There is probably also a Gajim flag for that, but this method works with every single software so I don’t have to remember anything specific.
  160. andrey.g I thought you're using a new flag.
  161. lovetox andrey.g, start gajim with the -c flag
  162. lovetox -c PATH
  163. lovetox and PATH is a folder where everything user related will be stored by gajim
  164. andrey.g lovetox‎, OK, I'll try.
  165. andrey.g lovetox‎, regarding right-click issue, I have no ImageDownloader plugin, which could influence the behavior of right-click.
  166. Link Mauve (gajim:14943): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
  167. Link Mauve Not sure what I did to get that, only saw it once I closed Gajim. :(
  168. lovetox i know where it comes from
  169. lovetox but it needs expert level knowledge to fix it ^^
  170. lovetox vanitasvitae, i found out it must have to do with the size of the file
  171. lovetox i dont get the same error when i upload really small files
  172. Link Mauve lovetox, can you explain it (in an issue maybe)?
  173. mimi89999 What can break with large files?
  174. lovetox mimi89999, for you nothing :)
  175. mimi89999 If the server refuses it, then it shouldn't crash
  176. lovetox for vanitasvitae server maybe
  177. Link Mauve It’s generally easier to ask for help when the issue is well-described.
  178. lovetox it does not crash on big files mimi89999 you can easily test that with your server, as there is never a connection initiated, because the size of the file is negotiated before uploading
  179. lovetox it with the new scrolled window for the input textview Link Mauve
  180. mimi89999 So why would it crash for vanitas?
  181. lovetox thats what we are trying to find out here..
  182. mimi89999 vanitasvitae‎: How large was your file?
  183. vanitasvitae I tried multiple
  184. vanitasvitae One was 3mib
  185. vanitasvitae Other one was 132kib
  186. mimi89999 vanitasvitae‎: 100mb should work well with my server.
  187. mimi89999 No reason to get an error
  188. vanitasvitae mimi89999: on yours it works
  189. vanitasvitae On mine it crashes
  190. mimi89999 You said you got 403
  191. vanitasvitae Yep
  192. vanitasvitae But no crash
  193. mimi89999 But you shouldn't get it...
  194. vanitasvitae But i do :)
  195. vanitasvitae Xmpp is weird thing
  196. Link Mauve This is just HTTP here. :p
  197. vanitasvitae Point taken
  198. Zash HTTP has some really weird corners too
  199. mimi89999 vanitasvitae‎: What were the URLs you got for my server?
  200. lovetox vanitasvitae, maybe look in your httpserver log
  201. lovetox when gajim crashes
  202. lovetox maybe we find out some thing the httpserver sent
  203. vanitasvitae good idea
  204. vanitasvitae nothing useful afaict
  205. vanitasvitae http upload creates slot, accets connection, starts ejabberd_http_init, waits for stream resumption
  206. mimi89999 vanitasvitae‎: Can you give me the URLs you got for my server? The 403 isn't something expected...
  207. vanitasvitae mimi89999, let me start gajim in debug mode
  208. mimi89999 vanitasvitae‎: Just open XML console
  209. vanitasvitae mimi89999, gajim.plugin_system.httpupload Please download from
  210. vanitasvitae 17.08.2017 20:33:12 (E) gajim.plugin_system.httpupload URLError Traceback (most recent call last): File "/home/vanitas/.local/share/gajim/plugins/httpupload/", line 312, in upload_file transfer = urlopen(request, timeout=30) File "/usr/lib/python3.6/urllib/", line 223, in urlopen return, data, timeout) File "/usr/lib/python3.6/urllib/", line 532, in open response = meth(req, response) File "/usr/lib/python3.6/urllib/", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.6/urllib/", line 570, in error return self._call_chain(*args) File "/usr/lib/python3.6/urllib/", line 504, in _call_chain result = func(*args) File "/usr/lib/python3.6/urllib/", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden
  211. mimi89999 vanitasvitae‎: Is sending the filename?
  212. vanitasvitae yep
  213. vanitasvitae (its a test file I use for my client)
  214. mimi89999 So everything is correct
  215. mimi89999 But the file wasn't uploaed
  216. vanitasvitae it uploaded to 100% and then I got the forbidden message
  217. vanitasvitae along with the debug output I pasted
  218. vanitasvitae is it normal, that uploading url and download url dont match?
  219. mimi89999 What was your download URL?
  220. vanitasvitae ah i see, the upload irl has an anchor
  221. vanitasvitae 17.08.2017 20:32:47 (I) gajim.plugin_system.httpupload Uploading file to
  222. mimi89999 vanitasvitae‎: It is the same URL. After `?v=` there is the AES-GCM key to decrypt the file
  223. lovetox vanitasvitae, i did a bit of testing and this is most probably a problem with your HTTPServer
  224. lovetox the upload of the file is fine, we send 100% of the data
  225. mimi89999 lovetox‎: Still the 403 shouldn't cause a crash
  226. lovetox then python crashes with requesting something thats called "endheader"
  227. vanitasvitae really? for me it crashes just at the beginning of the transmission
  228. lovetox but your server already closed the connection
  229. vanitasvitae hm
  230. lovetox mimi89999, why do you think gajim crashes on 403
  231. vanitasvitae so an ejabberd bug then?
  232. lovetox nobody said that
  233. vanitasvitae mimi89999, the "forbidden" is an error I get on your server
  234. vanitasvitae but that isnt crashing gajim
  235. Link Mauve mimi89999, so you transmit the encryption key to the server?
  236. mimi89999 Holger...
  237. lovetox vanitasvitae, this could probably be verified if someone else has the same ejabbered version like you
  238. vanitasvitae I don't know anyone :D
  239. vanitasvitae also what Link Mauve said sounds concerning indead
  240. lovetox and why do you think gajim doesnt upload the data in full befor it crashes?
  241. mimi89999 No, the thing after the v is the token
  242. mimi89999 Sorry. My mistake
  243. lovetox mhm, i just wanted to say ^^
  244. vanitasvitae lovetox, the file I tried sending is 3mib in size. On mimi89999 server it took about 5 seconds. On my server it crashes at like 4% progress (according to the popup)
  245. vanitasvitae ah
  246. lovetox vanitasvitae, the crash happens before the popup is updated
  247. lovetox i think
  248. mimi89999 if($upload_token !== $calculated_token) { header('HTTP/1.0 403 Forbidden');
  249. mimi89999 This is where I send 403
  250. vanitasvitae yeah but still it crashes pretty quickly
  251. lovetox ok let me try with a bigger file
  252. mimi89999 $upload_token = $_GET['v'];
  253. mimi89999 $calculated_token = hash_hmac('sha256', "$upload_file_name $upload_file_size", $CONFIG_SECRET);
  254. lovetox vanitasvitae, i always get
  255. lovetox ConnectionResetError: [WinError 10054] Eine vorhandene Verbindung wurde vom Remotehost geschlossen
  256. lovetox there has to be a log that tells you what happend here on the server
  257. lovetox look for my account
  258. lovetox its beyond me why this crashes on linux and not on windows though
  259. lovetox but i think this is beyond what i could fix
  260. vanitasvitae let me change my log settings (right now I dont log usernames, ips)
  261. andrey.g Where does it come from: "view paste (... lines)" / "view rest of paste (... lines)"? How can I craft an url to get some text description visible and the url visible on mouse hover as a tooltip?
  262. vanitasvitae lovetox, could you upload once more, so I can get the logs?
  263. Asterix andrey.g: a module of prosody that does that when text is too long
  264. lovetox did
  265. andrey.g Asterix‎, so I must look there, how it formats the url+title. Do you recall, what module is it?
  266. Zash
  267. andrey.g Asterix‎, never mind, it must be mod_pastebin.
  268. andrey.g Zash‎, thanks.
  269. vanitasvitae 2017-08-17 20:56:48.843 [info] <0.489.0>@mod_http_upload:create_slot:641 Got HTTP upload slot for (file: gajim.png) 2017-08-17 20:56:49.007 [info] <0.601.0>@ejabberd_listener:accept:333 (#Port<0.11194>) Accepted connection ::FFFF:URIP:54310 -> ::FFFF:MYIP:5443 2017-08-17 20:56:49.204 [info] <0.915.0>@ejabberd_http:init:163 started: {fast_tls,{tlssock,#Port<0.11194>,#Port<0.11195>}}
  270. lovetox and thats it nothing more?
  271. vanitasvitae nope, thats it
  272. vanitasvitae i could try again with highest log settings though
  273. lovetox yeah
  274. lovetox tell me when
  275. vanitasvitae lovetox, you can try once more
  276. lovetox done
  277. vanitasvitae oh man, I'll never find it :D
  278. vanitasvitae 20000 lines -.-
  279. lovetox why
  280. lovetox search for the file
  281. lovetox golf-bilder-kostenfrei (8).jpg
  282. vanitasvitae lovetox, how was your image called? gajim.png?
  283. vanitasvitae ah
  284. vanitasvitae hm, its too much output
  285. vanitasvitae ejabberd.log grew to 8 mb in just 10 mins
  286. bot Yann Leboulanger pushed 1 commit to branch _refs/heads/master_ of _gajim_ <>: *a47bb9f0* <> fix error when someone changes nick ina room
  287. lovetox vanitasvitae, i found the problem
  288. vanitasvitae lovetox: what is it?
  289. lovetox gajim doesnt send Content-Length in the header
  290. vanitasvitae Nice golf course :)
  291. lovetox which should result in your server sending a http error 411
  292. lovetox but it seems it just closes the connection
  293. lovetox either way should be fixed in a few minutes
  294. vanitasvitae Nice :)
  295. mimi89999 lovetox: That's why I send a 403
  296. bot Philipp Hörist pushed 2 commits to branch _refs/heads/gtk3_ of _gajim-plugins_ <>: *01a8fbf9* <> [httpupload] Send content-length in header *507bf9a9* <> [httpupload] Update manifest.ini
  297. bot Yann Leboulanger pushed 1 commit to branch _refs/heads/master_ of _gajim_ <>: *43fbcbf8* <> remove call to old XEP-0136 function
  298. andrey.g Is there an easy way to send an html pre-formated message?
  299. Asterix in XML console, is it easy enough? ;)
  300. andrey.g I've tried this, but no message appeared: <message xmlns="jabber:client" type="chat" id="acbfcf11-75a7-4508-97e8-bfe43093XXXX" to="bob@testhost/gajim.XXXXXXX" from="alice@testhost/gajim.YYYYYYY"> <html xmlns=''> <body xmlns=''> <p><a href=''>URL Text</a>?</p> </body> </html> </message>
  301. Asterix it must be: <message to="xxx" from="yyy" type="chat" id="zzz"> <body>test</body> <html xmlns=""> <body xmlns=""> <p> <strong>test</strong> </p> </body> </html> </message>
  302. Asterix body and html content are different things
  303. Asterix I mean you also miss a real body
  304. andrey.g Asterix‎, thanks, now I can easy trigger the right-click bug.
  305. Asterix which bug?
  306. andrey.g If I right-click on an html url in gajim 0.16 git, I get two menus simultaneously: the normal one on top and after I click somewhere else, the link special "copy/open in browser".
  307. andrey.g If I right-click on an html url in gajim 0.16 git, I get two menus simultaneously: the normal one on top and after I click somewhere else, the link special "copy/open in browser".
  308. Asterix haha funny