Gajim - 2017-01-12


  1. bot pushed commits to branch __ of _gajim-plugins_ <https://dev.gajim.org/gajim/gajim-plugins>:
  2. bot pushed commits to branch __ of _gajim_ <https://dev.gajim.org/gajim/gajim>:
  3. mrDoctorWho lovetox, hi. Unfortunately your changes did not fix the bug. As I said, this must be the gtk bug which causes python (and so gajim) to segfault. I've reported an issue to the gajim project https://dev.gajim.org/gajim/gajim/issues/8504
  4. mrDoctorWho I suppose it's somehow related to the progressbar which acts wierd. Or the upload window.
  5. lovetox what distribution are you running?
  6. lovetox mrDoctorWho
  7. lovetox ah i see in the bug report
  8. lovetox in the future we have a plugin repo with a own issue tracker, i will move this when im home
  9. mrDoctorWho lovetox: well yeah, I know that. But I decided to post it in the gajim project as it crashes gajim
  10. lovetox but weird issue, seems related to threads
  11. lovetox stacktrace is not helping much
  12. lovetox i will see if i can reporduce it on ubuntu
  13. lovetox are you using stock ubuntu or did you modify it in some way, with other display managers or stuff like that?
  14. mrDoctorWho I have googled the assertion error and found a bug on Debian tracker that didn't seem fixed
  15. mrDoctorWho Yes, I'm using awesome wm
  16. lovetox thats the problem then
  17. lovetox though i have an idea how i maybe can fix that
  18. lovetox the uploadbar window can have improvements i think
  19. lovetox am i right that it flickers much ?
  20. mrDoctorWho Yes
  21. mrDoctorWho Actually it changes its size as the progressbar goes but then resizes back to initial size
  22. lovetox does it progress until the end and then crashes?
  23. lovetox or in the middle of the upload?
  24. lovetox could you start gajim with -l gajim.plugin_system.httpupload=DEBUG
  25. lovetox and upload something, and post the log
  26. lovetox maybe into the issue report, mrDoctorWho
  27. mrDoctorWho In the middle. And as I noticed (not sure though) that the crash happens only if the upload goes fast enough. I had a network glitch so the upload slowed down
  28. mrDoctorWho And it didn't crash
  29. mrDoctorWho With the same file that usually causes a crash
  30. mrDoctorWho I will add logs when I come home
  31. mrDoctorWho I also can check it on KDE
  32. lovetox it doesnt have to do in my opinion with the distribution
  33. lovetox its a problem with the window manager you are using
  34. mrDoctorWho Well it causes several java issues
  35. mrDoctorWho At work I use intellij idea and sometimes my wm causes java windows to be transparent
  36. mrDoctorWho Also I develop apps with swing which has its own issues with my wm
  37. mrDoctorWho actually I managed to get rid of those problems, but not with gajim
  38. mrDoctorWho lovetox, so, is there any way to fix this problem for awesome wm?
  39. mrDoctorWho the problem does not appear with plasma5
  40. bot pushed commits to branch __ of _gajim-plugins_ <https://dev.gajim.org/gajim/gajim-plugins>:
  41. bot pushed commits to branch __ of _gajim_ <https://dev.gajim.org/gajim/gajim>:
  42. bot pushed commits to branch __ of _gajim-plugins_ <https://dev.gajim.org/gajim/gajim-plugins>:
  43. bot pushed commits to branch __ of _gajim_ <https://dev.gajim.org/gajim/gajim>:
  44. bot pushed commits to branch __ of _gajim-plugins_ <https://dev.gajim.org/gajim/gajim-plugins>:
  45. lovetox_ mrDoctorWho, i can try some things
  46. lovetox_ in a dev branch that you could then test
  47. mrDoctorWho looking forward to it
  48. lovetox_ i have now awesome window manager installed on ubuntu 16.04
  49. lovetox_ i can confirm the flickering, but it doesnt crash for me and uploads the image just fine
  50. mrDoctorWho did you try bigger files?
  51. lovetox_ yes, now it crashed
  52. lovetox_ it doesnt happen on every upload it seems
  53. mrDoctorWho yeah, didn't I say this?
  54. cippaciong lovetox_: I had the same problem with i3wm which is a tiling windows manager just like awesome
  55. cippaciong Even in that case the crash happens only with big files and not on every upload
  56. lovetox_ yeah but about the flickering, someone should open up a bug report with the window managers, i dont see what we do wrong, its a standard progressbar window
  57. lovetox_ maybe we need to set special stuff in the window for it to work correctly
  58. lovetox_ but i googled this and found nothing about it
  59. cippaciong A workaround has been to add a rule to open the progress window as a tiling window and not floating
  60. lovetox_ and that resolved the crashes?
  61. lovetox_ or the flickering or both
  62. lovetox_ what you told me is that other dialogs behave in another way when they are opend
  63. lovetox_ i think i fixed the crashes but not the flickering
  64. lovetox_ <error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error>
  65. bot pushed commits to branch __ of _gajim_ <https://dev.gajim.org/gajim/gajim>:
  66. lovetox_ i think i fixed it at least the last 5 uploads with big files no crash
  67. nick Hi #gajim. I'm wondering if anyone knows if Gajim supports the suggestion in xep 144 that when talking to a gateway, "processing [of roster changes] MAY occur automatically"
  68. nick I can get gajim to ask me for approval, but I want the gateway I'm writing to manage the gatewayed contacts automagically
  69. nick Is it just that Gajim always prompts, or do I need to somehow convince Gajim I'm gateway enough?
  70. lovetox_ in the xep is mentioned
  71. lovetox_ Furthermore, the receiving application SHOULD periodically verify automatic processing with the user
  72. lovetox_ (e.g., once per session in which the gateway sends roster item suggestions to the user).
  73. lovetox_ i dont know how it is currently implemented, do you get a request for approval more than once in a session?
  74. lovetox_ of course if you want to get completly rid of approval requests, such a option should not be hard to implement
  75. nick I get one request per <IQ>
  76. nick er
  77. nick yeah
  78. nick So every time I batch some contacts to gajim it asks
  79. nick also, it's hard to do batching so right now I send every contact in a different message which means gajim prompts for each
  80. lovetox_ its ok that gajim asks for every change in my opinion that should be the default, but there should be a option to trust the gateway completly
  81. nick Yes
  82. nick I was expecting to get prompted "trust this gateway?"
  83. nick I don't know if my code is wrong or if gajim just doesn't do that
  84. nick Conversations WONTFIX'D xep-0144 : https://github.com/siacs/Conversations/issues/1967
  85. nick I am trying to see if it's worth supporting. If not even Gajim, which is probably the most complete xmpp client out there, won't do it, I won't bother
  86. nick Right now the UI is basically the same as just sending a bunch of <presence type=subscribe>
  87. lovetox_ and whats the problem with 0321 like in the issue mentioned?
  88. nick 321 isn't supported anywhere
  89. nick :(
  90. nick gajim was going to be my workaround
  91. lovetox_ if you want to contribute the necessary changes you are welcome, but otherwise i dont think there is anyone who would invest into this right now
  92. nick Thank you lovetox_
  93. nick that answers my question
  94. nick I will try to solve it server-side instead I think
  95. nick the roster lives there anyway. having the client involved gets messy, especially with multiple clients active
  96. lovetox_ Link Mauve
  97. lovetox_ do you know how i can stop a thread that for example uploads data with urlopen
  98. lovetox_ the thread itself is blocked with the urlopen command, how can i stop it from outside
  99. lovetox_ Asterix :)
  100. Asterix the thread should regulary check for a variable to see if it should continue or stop, no?
  101. lovetox_ how can it check if it is blocked while executing urlopen?
  102. lovetox_ if i call urlopen it returns only after its finished or not?
  103. Asterix with having a non-blocking function :)
  104. lovetox_ ah i know, i can read or write the data in junks
  105. lovetox_ that way i can test for a flag after each junk
  106. Link Mauve lovetox_, generally you should not use blocking functions.
  107. lovetox_ so whats the alternativ to urlopen in python2 ?
  108. lovetox_ without another dependency
  109. Link Mauve Using python3.
  110. Asterix using non-blocking sockets, but that's way more complexe that urlopen ...
  111. lovetox_ yeah its easier to just supply urlopen not with the whole file at once
  112. lovetox_ that way you can test inbetween
  113. Asterix Yeah, I can connect, send and receive message with pyzeroconf!
  114. lovetox_ nice :)
  115. cippaciong > and that resolved the crashes? > or the flickering or both Both
  116. lovetox_ i think i fixed it cippaciong
  117. cippaciong great! :)
  118. Asterix next thing I'm not able to achieve for today: update starts and get updated status
  119. Asterix next thing I'm not able to achieve for today: update status and get updated status
  120. lovetox_ its accomplished with txt records right?
  121. Asterix yes