Ok, i started digging, and it doesn't crash in qutecom code, but in libgaim (libs/3rdparty/gaim/src/libgaim/xmlnode.c). I added some debug output, and I get this:
$ ./qutecom.sh //start (info) 11:53:12 [Common] void QtLanguage::loadLanguageFromConfig(): no Qt translation available for locale 'cs_CZ' //this is standard error, no problem xmlnode_inser_data: //first call of the function ** (process:23518): CRITICAL **: xmlnode_insert_data: assertion `data != NULL' failed //and it failed xmlnode_inser_data: prpl-jabber //second call is ok, protocol type xmlnode_inser_data: pitel/qutecom //login/resource xmlnode_inser_data: 0 xmlnode_inser_data: 0 xmlnode_inser_data: 0 xmlnode_inser_data: jabbim.cz //server xmlnode_inser_data: xmlnode_inser_data: 0 xmlnode_inser_data: 0 xmlnode_inser_data: WengoPhone xmlnode_inser_data: 5222 //port xmlnode_inser_data: 1 xmlnode_inser_data: none xmlnode_inser_data: available //status, and that's all So... what should be in the first data of the function call? If someone wants to add the debug output, diff is in the attachement. And one long-term idea: Should we use libpurple, since gaim is now obsolete afaik. Jan Kaláb napsal(a): > Has someone working jabber in qutecom? I always get this error: > ** (process:10989): CRITICAL **: xmlnode_insert_data: assertion > `data != NULL' failed > Can someone give me any hint what's wrong and how to fix it before I > start to dig in the code? > > Thanks > > > > ------------------------------------------------------------------------ > > _______________________________________________ > QuteCom-dev mailing list > [email protected] > http://lists.qutecom.org/mailman/listinfo/qutecom-dev
diff -r eee543fb3e0c libs/3rdparty/gaim/src/libgaim/xmlnode.c --- a/libs/3rdparty/gaim/src/libgaim/xmlnode.c Tue Jul 08 09:40:43 2008 +0200 +++ b/libs/3rdparty/gaim/src/libgaim/xmlnode.c Tue Jul 08 12:07:28 2008 +0200 @@ -26,6 +26,7 @@ * libxode uses memory pools that we simply have no need for, I decided to * write my own stuff. Also, re-writing this lets me be as lightweight * as I want to be. Thank you libxode for giving me a good starting point */ +#include <stdio.h> #include "internal.h" @@ -102,6 +103,8 @@ xmlnode *child; gsize real_size; +fprintf(stderr, "xmlnode_insert_data: "); + g_return_if_fail(node != NULL); g_return_if_fail(data != NULL); g_return_if_fail(size != 0); @@ -109,6 +112,8 @@ real_size = size == -1 ? strlen(data) : size; child = new_node(NULL, XMLNODE_TYPE_DATA); + +fprintf(stderr, "%s\n", data); child->data = g_memdup(data, real_size); child->data_sz = real_size;
signature.asc
Description: OpenPGP digital signature
_______________________________________________ QuteCom-dev mailing list [email protected] http://lists.qutecom.org/mailman/listinfo/qutecom-dev
