davidgfnet / whatsapp-purple

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

Crash when trying to send file #338

Open cleitonss opened 8 years ago

cleitonss commented 8 years ago

pidgin-crash001

ariasrodolfo commented 8 years ago

pidgin-PORTABLE.EXE?????

cleitonss commented 8 years ago

ariasrodolfo yes! Pidgin Portable - 2.10.11 (libpurple 2.10.11)

ariasrodolfo commented 8 years ago

Pidgin portable is NOT an official release, so please try https://pidgin.im/ version

Nicolas79 commented 8 years ago

It happens the same with the official release, it's a problem for audio files treated here: https://github.com/davidgfnet/whatsapp-purple/pull/330

programacion-web commented 8 years ago

Before same problem for send any files pictures and audio after update plugin I can send images jpeg, but not audio mp3, acc when send audio pidgin crash

terminate called after throwing an instance of 'std::invalid_argument'
  what():  stoi
Aborted (core dumped)

I am used arch linux Pidgin 2.10.12 (libpurple 2.10.12) y lastest plugin of github

I am start "pidgin -d" for debug, I tried send audio

(12:01:40) prefs: /pidgin/filelocations/last_open_folder changed, scheduling save.
(12:01:40) xfer: request accepted for 0x24a1950
(12:01:40) pidgin-encryption: Using pre-existing menu icon for conv 0x2280a00, win 0x27eba80, item 0x20d8300
(12:01:40) whatsapp: File xfer init...
(12:01:40) whatsapp: Transfer file ans.aac at /home/myuser/ans.aac with size 464940 (given ref 45)
terminate called after throwing an instance of 'std::invalid_argument'
  what():  stoi
Aborted (core dumped)

thanks

hoehermann commented 8 years ago

@programacion-web That is bug #280 . There is a fix available in https://github.com/hoehermann/whatsapp-purple/commit/610b8f844f816bedb04912fbad2499af97114e28 , which is yet to be incorporated.