davidgfnet / whatsapp-purple

WhatsApp protocol implementation for libpurple (pidgin)
855 stars 211 forks source link

bitlbee crashes: terminate called after throwing an instance of 'int' #409

Open magnific0 opened 8 years ago

magnific0 commented 8 years ago

Hi there, I have been able to succesfully use whatsapp-purple with bitlbee until now. If I connect to whatsapp the bitlbee server crashes and gives following output

> BITLBEE_DEBUG=1 /usr/sbin/bitlbee -nD
DEBUG util: Reading file blist.xml from directory /var/lib/bitlbee//purple/Jacco
DEBUG prefs: Reading /var/lib/bitlbee//purple/Jacco/prefs.xml
DEBUG prefs: /purple/savedstatus/default changed, scheduling save.
DEBUG prefs: /purple/savedstatus/idleaway changed, scheduling save.
DEBUG prefs: /plugins/core/nss_prefs/cipher_list changed, scheduling save.
DEBUG prefs: Finished reading /var/lib/bitlbee//purple/Jacco/prefs.xml
DEBUG prpl-telegram: tgprpl_status_types()
DEBUG account: Connecting to account 3100000000.
DEBUG connection: Connecting. gc = 0x7f28304367d0
DEBUG whatsapp: logging in 3100000000
DEBUG dnsquery: Performing DNS lookup for e2.whatsapp.net
DEBUG dns: Created new DNS child 25347, there are now 1 children.
DEBUG dns: Successfully sent DNS request to child 25347
DEBUG dns: Got response for 'e2.whatsapp.net'
DEBUG dnsquery: IP resolved for e2.whatsapp.net
DEBUG proxy: Attempting connection to 173.192.222.185
DEBUG proxy: Connecting to e2.whatsapp.net:443 with no proxy
DEBUG proxy: Connection in progress
DEBUG proxy: Connecting to e2.whatsapp.net:443.
DEBUG proxy: Connected to e2.whatsapp.net:443.
DEBUG blist: Updating buddy status for 3100000000 (WhatsApp)
DEBUG blist: Updating buddy status for 3100000000 (WhatsApp)
DEBUG whatsapp: Receiving update information from my groups
DEBUG whatsapp: Creating new group: 3100000000-3100000000
(...)
DEBUG whatsapp: Updating user profile picture for 3100000000
DEBUG util: Writing file /var/lib/bitlbee//purple/icons/01234567890123456789abcdefabcdef00000000.jpg
terminate called after throwing an instance of 'int'
Aborted

Just so other can find it weechat will complain that

irc: reading data on socket: error 84 (connection closed by peer)

I have the following version:

ii  bitlbee-common                        3.4.2+20160417+master+24-ga244877-git all          An IRC to other chat networks gateway (common files/docs)
ii  bitlbee-facebook                      20160329~119b75d~240                  amd64        Facebook protocol plugin for BitlBee
ii  bitlbee-libpurple                     3.4.2+20160417+master+24-ga244877-git amd64        An IRC to other chat networks gateway (using libpurple)
ii  pidgin-whatsapp                       0.9.0                                 amd64        WhatsApp plugin for Pidgin
ii  weechat                               1.0.1-1                               all          Fast, light and extensible chat client

Disabling whatsapp solves the issue for me.