-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whatsapp purple crashes when trying to send file #280
Comments
I'm pretty sure it crashes because of the std::stoi calls. Can you comopile it as debug and get the same trace again please? |
Hi, I ran into this issue when trying to send an audio file. And yes, the problem are those stoi calls, because there's no width or height for this kind of files. I've made some changes to fix this and be able to send aac files. I also created a PR for review. |
Does this help? Produced by debug build of whatsapp-purple as found on git here today.
Backtrace:
|
Hi all,
This is what happens :-
[$] gdb pidgin
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pidgin...Reading symbols from /usr/lib/debug//usr/bin/pidgin...done.
done.
(gdb) handle SIGPIPE nostop noprint pass
Signal Stop Print Pass to program Description
SIGPIPE No No Yes Broken pipe
(gdb) set logging on
Copying output to gdb.txt.
(gdb) run
Starting program: /usr/bin/pidgin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffd865d700 (LWP 483)]
[New Thread 0x7fffd7e5c700 (LWP 484)]
[New Thread 0x7fffd718f700 (LWP 585)]
[New Thread 0x7fffd698e700 (LWP 586)]
[New Thread 0x7fffd618d700 (LWP 587)]
[New Thread 0x7fffd598c700 (LWP 588)]
[New Thread 0x7fffd518b700 (LWP 589)]
[New Thread 0x7fffd498a700 (LWP 590)]
[New Thread 0x7fffb7fff700 (LWP 591)]
[New Thread 0x7fffb77fe700 (LWP 592)]
[New Thread 0x7fffb6ffd700 (LWP 593)]
[New Thread 0x7fffb67fc700 (LWP 594)]
[Thread 0x7fffd698e700 (LWP 586) exited]
[Thread 0x7fffd518b700 (LWP 589) exited]
[Thread 0x7fffb67fc700 (LWP 594) exited]
[Thread 0x7fffd598c700 (LWP 588) exited]
[Thread 0x7fffb6ffd700 (LWP 593) exited]
[Thread 0x7fffd718f700 (LWP 585) exited]
[Thread 0x7fffb77fe700 (LWP 592) exited]
[Thread 0x7fffd498a700 (LWP 590) exited]
[Thread 0x7fffb7fff700 (LWP 591) exited]
[New Thread 0x7fffb7fff700 (LWP 653)]
[Thread 0x7fffb7fff700 (LWP 653) exited]
[Thread 0x7fffd618d700 (LWP 587) exited]
[New Thread 0x7fffd618d700 (LWP 738)]
[New Thread 0x7fffb7fff700 (LWP 739)]
[New Thread 0x7fffd498a700 (LWP 740)]
[Thread 0x7fffd618d700 (LWP 738) exited]
[Thread 0x7fffb7fff700 (LWP 739) exited]
terminate called after throwing an instance of 'std::invalid_argument'
what(): stoi
Program received signal SIGABRT, Aborted.
0x00007ffff494d107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff494d107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff494e4e8 in __GI_abort () at abort.c:89
#2 0x00007fffeb5c35ed in __gnu_cxx::__verbose_terminate_handler() () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007fffeb5c1646 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007fffeb5c1691 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007fffeb5c18a9 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007fffeb5e479f in std::__throw_invalid_argument(char const*) () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007fffe74e5e67 in () at /usr/lib/purple-2/libwhatsapp.so
#8 0x00007fffe74d8ef5 in WhatsappConnection::updateFileUpload(std::string) () at /usr/lib/purple-2/libwhatsapp.so
#9 0x00007fffe74de71e in WhatsappConnection::processIncomingData() () at /usr/lib/purple-2/libwhatsapp.so
#10 0x00007fffe74c3b8a in () at /usr/lib/purple-2/libwhatsapp.so
#11 0x00005555555c930e in pidgin_io_invoke (source=, condition=, data=0x555555ce8c20) at /tmp/buildd/pidgin-2.10.11/./pidgin/gtkeventloop.c:73
#12 0x00007ffff5563bcd in g_main_context_dispatch (context=0x555555899a50) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3122
#13 0x00007ffff5563bcd in g_main_context_dispatch (context=context@entry=0x555555899a50) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3737
#14 0x00007ffff5563fa0 in g_main_context_iterate (context=0x555555899a50, block=block@entry=1, dispatch=dispatch@entry=1, self=) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3808
#15 0x00007ffff55642c2 in g_main_loop_run (loop=0x55555635dc10) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:4002
#16 0x00007ffff680e5d7 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#17 0x000055555558f557 in main (argc=1, argv=0x7fffffffe958) at /tmp/buildd/pidgin-2.10.11/./pidgin/gtkmain.c:937
(gdb) bt full
#0 0x00007ffff494d107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff494e4e8 in __GI_abort () at abort.c:89
#2 0x00007fffeb5c35ed in __gnu_cxx::__verbose_terminate_handler() () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007fffeb5c1646 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007fffeb5c1691 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007fffeb5c18a9 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007fffeb5e479f in std::__throw_invalid_argument(char const*) () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007fffe74e5e67 in () at /usr/lib/purple-2/libwhatsapp.so
#8 0x00007fffe74d8ef5 in WhatsappConnection::updateFileUpload(std::string) () at /usr/lib/purple-2/libwhatsapp.so
#9 0x00007fffe74de71e in WhatsappConnection::processIncomingData() () at /usr/lib/purple-2/libwhatsapp.so
#10 0x00007fffe74c3b8a in () at /usr/lib/purple-2/libwhatsapp.so
#11 0x00005555555c930e in pidgin_io_invoke (source=, condition=, data=0x555555ce8c20) at /tmp/buildd/pidgin-2.10.11/./pidgin/gtkeventloop.c:73
#12 0x00007ffff5563bcd in g_main_context_dispatch (context=0x555555899a50) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3122
#13 0x00007ffff5563bcd in g_main_context_dispatch (context=context@entry=0x555555899a50) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3737
#14 0x00007ffff5563fa0 in g_main_context_iterate (context=0x555555899a50, block=block@entry=1, dispatch=dispatch@entry=1, self=) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3808
#15 0x00007ffff55642c2 in g_main_loop_run (loop=0x55555635dc10) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:4002
#16 0x00007ffff680e5d7 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#17 0x000055555558f557 in main (argc=1, argv=0x7fffffffe958) at /tmp/buildd/pidgin-2.10.11/./pidgin/gtkmain.c:937
(gdb)
#0 0x00007ffff494d107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff494e4e8 in __GI_abort () at abort.c:89
#2 0x00007fffeb5c35ed in __gnu_cxx::__verbose_terminate_handler() () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007fffeb5c1646 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007fffeb5c1691 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007fffeb5c18a9 in () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007fffeb5e479f in std::__throw_invalid_argument(char const*) () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007fffe74e5e67 in () at /usr/lib/purple-2/libwhatsapp.so
#8 0x00007fffe74d8ef5 in WhatsappConnection::updateFileUpload(std::string) () at /usr/lib/purple-2/libwhatsapp.so
#9 0x00007fffe74de71e in WhatsappConnection::processIncomingData() () at /usr/lib/purple-2/libwhatsapp.so
#10 0x00007fffe74c3b8a in () at /usr/lib/purple-2/libwhatsapp.so
#11 0x00005555555c930e in pidgin_io_invoke (source=, condition=, data=0x555555ce8c20) at /tmp/buildd/pidgin-2.10.11/./pidgin/gtkeventloop.c:73
#12 0x00007ffff5563bcd in g_main_context_dispatch (context=0x555555899a50) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3122
#13 0x00007ffff5563bcd in g_main_context_dispatch (context=context@entry=0x555555899a50) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3737
#14 0x00007ffff5563fa0 in g_main_context_iterate (context=0x555555899a50, block=block@entry=1, dispatch=dispatch@entry=1, self=) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:3808
#15 0x00007ffff55642c2 in g_main_loop_run (loop=0x55555635dc10) at /build/glib2.0-b3wpTa/glib2.0-2.45.2/./glib/gmain.c:4002
#16 0x00007ffff680e5d7 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#17 0x000055555558f557 in main (argc=1, argv=0x7fffffffe958) at /tmp/buildd/pidgin-2.10.11/./pidgin/gtkmain.c:937
(gdb) quit
A debugging session is active.
Quit anyway? (y or n) y
The text was updated successfully, but these errors were encountered: