davidgfnet / whatsapp-purple

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

Crash when certain contacts are added #363

Open Raaff opened 8 years ago

Raaff commented 8 years ago

After updating to the latest whatsapp-purple, I had to delete several contacts because they were making pidgin crash. Today I pidgin crashed again. When I removed the contact that was last mentioned in the output of pidgin -d, pidgin worked again, but upon re-adding the contact with pidgin it crashed. The output when adding that contact was

Tag: presence at[to]=xxcrashxx25@s.whatsapp.net at[type]=subscribe Data: ...

Tag: iq at[id]=a7 at[to]=xxcrashxx25@s.whatsapp.net at[type]=get at[xmlns]=w:profile:picture Data: ... Tag: picture at[type]=preview Data: ...

Tag: iq at[id]=b7 at[to]=s.whatsapp.net at[type]=get at[xmlns]=status Data: ... Tag: status Data: ... Tag: user at[jid]=xxxxxxxxx44@s.whatsapp.net Data: ... Tag: user at[jid]=xxxxxxxxx32@s.whatsapp.net Data: ... Tag: user at[jid]=xxxxxxxxx31@s.whatsapp.net Data: ... // Raaff: etcetera

Tree read:

Tag: presence at[from]=xxcrashxx25@s.whatsapp.net at[last]=deny at[type]=unavailable Data: ...

(21:30:26) blist: Updating buddy status for xxcrashxx25 (WhatsApp) (21:30:26) pidgin-libnotify: notify(), new: title: 'contact of Raaff', body: 'is online', buddy: 'contact of Raaff' (21:30:26) pidgin-libnotify: notify(), has a prpl icon. (21:30:26) blist: Updating buddy status for xxcrashxx25 (WhatsApp) Tree read:

Tag: iq at[from]=xxcrashxx25@s.whatsapp.net at[id]=a7 at[type]=error Data: ... Tag: error at[code]=404 at[text]=item-not-found Data: ...

terminate called after throwing an instance of 'int' /usr/bin/pidgin: line 10: 12490 Afgebroken (=Aborted) (geheugendump gemaakt (=core dumped)) /usr/bin/pidgin.orig $*

(this is with a fresh make cleanall && git checkout && make debug && sudo make install

Docbroke commented 8 years ago

similar issue (not sure if it is related to contacts), facing crash within 10-15 seconds on starting pidgin, after updating to 0.9

sudo pacman -U purple-whatsapp-0.9.0-1-x86_64.pkg.tar.xz [sudo] password for sharad: loading packages... resolving dependencies... looking for conflicting packages...

Packages (1) purple-whatsapp-0.9.0-1

Total Installed Size: 1.11 MiB Net Upgrade Size: 0.71 MiB

:: Proceed with installation? [Y/n] y (1/1) checking keys in keyring [##########################################] 100% (1/1) checking package integrity [##########################################] 100% (1/1) loading package files [##########################################] 100% (1/1) checking for file conflicts [##########################################] 100% (1/1) checking available disk space [##########################################] 100% :: Processing package changes... (1/1) upgrading purple-whatsapp [##########################################] 100% sharad abs > pidgin terminate called after throwing an instance of 'int' Aborted (core dumped)

Raaff commented 8 years ago

@Docbroke You could try renaming blist.xml (located in ~/.purple) to something else, to see if it's related to your contacts.

Docbroke commented 8 years ago

confirm, removing blist prevents crash hard-work of adding all contacts again, ahead

Docbroke commented 8 years ago

@Raaff, I added all contacts gradually to find out the one causing problem. I deleted old logs of that contact(which included ciphered msg) and re-added that contact, and now whatsapp is working without issue. eureka!!!

Raaff commented 8 years ago

I confirm deleting the logs of that contact works, but now his messages are empty :(

davidgfnet commented 8 years ago

Please build it doing "make debug" and run using gdb, otherwise that dump you just pasted is completely useless..

anmol26s commented 8 years ago

@Docbroke @Raaff
How did you deleted the logs ?