Project

General

Profile

Bug #1875

[gajim] local account can not connect after upgrade to V1.x.x

ani - almost 6 years ago - . Updated about 5 years ago.

Status:
fixed
Priority:
bug
Assignee:
-
% Done:

0%


Description

I ran Gajim and signed in with a custom status message, then it popped up an error dialog with this text:

  1. Versions
    - OS: Parabola GNU/Linux-libre
    - GTK+ Version: 3.22.30
    - PyGObject Version: 3.28.3
    - python-nbxmpp Version: 0.6.6
    - Gajim Version: 1.0.3
  1. Traceback
    ```
    Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/gajim/dialogs.py", line 747, in on_dialog_response
    self.on_response(message, self.pep_dict)
    File "/usr/lib/python3.6/site-packages/gajim/roster_window.py", line 3601, in on_continue
    self.send_status(account, status, message)
    File "/usr/lib/python3.6/site-packages/gajim/roster_window.py", line 2114, in send_status
    self.send_status_continue(account, status, txt, auto, to)
    File "/usr/lib/python3.6/site-packages/gajim/roster_window.py", line 2163, in send_status_continue
    app.connections[account].change_status(status, txt, auto)
    File "/usr/lib/python3.6/site-packages/gajim/common/connection.py", line 653, in change_status
    self._update_status(show, msg, idle_time=idle_time)
    File "/usr/lib/python3.6/site-packages/gajim/common/zeroconf/connection_zeroconf.py", line 312, in update_status
    if self.connection.set_show_msg(show, msg):
    File "/usr/lib/python3.6/site-packages/gajim/common/zeroconf/client_zeroconf.py", line 661, in set_show_msg
    return self.zeroconf.update_txt(show)
    File "/usr/lib/python3.6/site-packages/gajim/common/zeroconf/zeroconf_avahi.py", line 471, in update_txt
    txt = self.avahi_txt()
    File "/usr/lib/python3.6/site-packages/gajim/common/zeroconf/zeroconf_avahi.py", line 255, in avahi_txt
    return self.avahi.dict_to_txt_array(self.txt)
    File "/usr/lib/python3.6/site-packages/avahi/
    _init__.py", line 128, in dict_to_txt_array
    l.append(string_to_byte_array(b"%s=%s" % (k,v)))
    TypeError: %b requires a bytes-like object, or an object that implements bytes, not 'int'
```
  1. Steps to reproduce the problem
    ...

Files

History

#1

Updated by bill-auger almost 6 years ago

  • Status changed from open to info needed

this comes from [community]

i think those omitted "Steps to reproduce the problem" could be very important here - what does this mean to "sign in with a custom status message"? - is it possible to sign ing "without" a custom status message?

#2

Updated by ani almost 6 years ago

bill-auger

Not that I can see.

#3

Updated by bill-auger almost 6 years ago

i just do not understand what does this mean to "sign in with a custom status message"?

why did you not simply say: "i signed in" ?

if this status message is a mandatory part of signing in then why was it important to mention it?

#4

Updated by ani almost 6 years ago

I'm still having the problem.

#5

Updated by freemor almost 6 years ago

I have tried gajim with several custom status messages.

I can not reproduce.

This suggests to me that the issue is with:
1 - Your setup

- or -

2 - The status message you set

Please provide more info

#7

Updated by freemor almost 6 years ago

O.k. Since that status message looks perfectly normal it seems it's option 1 we need to Dx.

First lets rule out a messed up plugin. Please set all plugins inactive via

gajim -> plugins -> uncheck all the boxes

then re-launch gajim and try setting the status.

#8

Updated by ani almost 6 years ago

That still does not work. I get a crash report even if the plugins are disabled.

#9

Updated by freemor almost 6 years ago

Ok, then you can turn those back on..

since there is a lot of mention of zeroconf and since I know this aspect hasn't been working like it should since the last upgrade, please try:

gajim -> accounts and disable the "local" account

then try setting the status

#10

Updated by ani almost 6 years ago

That worked! Thanks! :)

#11

Updated by bill-auger almost 6 years ago

so is this bug reproducible? what are the steps to reproduce this bug?

#12

Updated by freemor almost 6 years ago

I was unable to reproduce the same crash that the OP was experiencing. even after several attempts.

I noted the references to zeroconf in the debug output and deduced that the problem was most likely with the 'local' (a.k.a. zeroconf) account.
I also suspected this because since gajim moved to V1.x.x the 'local' account on my machines refuses to go "online" (which is a weird nominclature for a serverless account).

Deactivating the account seems to be a good work-around for the issue given that I suspect that very few people use that feature.

I did not check with th OP about his avahi set-up. which might be part of the issue as avahi is an optional depend and thus might not be installed/set-up on the OPs machine

If it feels important to get this sorted I'd suggest re-naming this issue to something like "local account doesn't work properly after upgrade to V1.x.x"
The same issue exists in my wifes Arch machine so it is not a Parabola specific problem. The local account worked fine on my Machine and my wifes before the move to 1.x.x. So it is definitely something that was introduces then.

#13

Updated by bill-auger almost 6 years ago

ok - so becuase this packages comes from arch, the main thing i would be trying to determine is if this bug exists in arch - if you say it does then there is nothing more for us to do other than to forward it to the arch packager and make this issue as "forwarded upstream" until it is fixed

i have never used this program before so my install is fresh from 'gajim-1.0.3-2' - when i try to put the "local" account online it fails and i get a desktop notification:

could not start local service - please check if avahi-deamon is running?
#14

Updated by ani almost 6 years ago

How exactly do I setup avahi?

#15

Updated by freemor almost 6 years ago

yes that is the same message that show up om my wifes Arch machine (which has avahi installed and configured)
It worked fin on both Arch and Parabola prior to 1.x.x

#16

Updated by bill-auger almost 6 years ago

  • Subject changed from [gajim] crash to [gajim] local account can not connect after upgrade to V1.x.x
#18

Updated by freemor almost 6 years ago

Nope. But I suppose I could make one easy enough.
Is the standard protocol to create a similarly named bug and then reference this thread?

#19

Updated by bill-auger almost 6 years ago

i dont know if there is a protocol but thats what i would do

#20

Updated by freemor almost 6 years ago

Done. Now exists there as:

https://bugs.archlinux.org/task/59259

#21

Updated by bill-auger almost 6 years ago

  • Status changed from info needed to forwarded upstream
#22

Updated by freemor almost 6 years ago

I've been following this on the Arch tracker.
After an initial question about the state on Avahi the bug was assinged to: Balló György (City-busz)

The last comment by the assignee was:

Comment by Balló György (City-busz) - Wednesday, 11 July 2018, 16:11 GMT
Please report to upstream:
https://dev.gajim.org/gajim/gajim/issues

The issue was then closed on the Arch tracker reason: Upstream

I've checked on: https://dev.gajim.org/gajim/gajim/issues But see no sign of the bug reported there which leaves me wondering if they (Arch) wanted me to report it upstream.

#23

Updated by freemor almost 6 years ago

Out of curiosity and some free time decided to debug this a bit further.. with verbose output on one sees:

2018-07-12 09:02:08 (D) gajim.c.z.zeroconf_avahi To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_default_main_loop(...)
2018-07-12 09:02:08 (I) gajim.c.z.client_zeroconf Disconnecting ZeroconfListener:

So yep looks like the dbus communications from gajim <-> dbus may be hosed in this version.

I'm going to see if there is a git/devel version to see if the issue has been fixed already before reporint it further upstream.

#24

Updated by freemor about 5 years ago

  • Status changed from forwarded upstream to fixed

Working in Gajim V1.1.2 so closing this as fixed.

Also available in: Atom PDF