Giter Site home page Giter Site logo

jfreegman / toxic Goto Github PK

View Code? Open in Web Editor NEW
1.2K 58.0 149.0 17.59 MB

A Tox-based instant messaging and video chat client

License: GNU General Public License v3.0

Makefile 1.72% C 95.34% Objective-C 0.84% Python 0.50% Starlark 0.18% Shell 1.06% C++ 0.03% Dockerfile 0.08% TypeScript 0.25%
tox dht privacy security decentralization security-tools decentralized-applications privacy-tools tox-client dht-network

toxic's Introduction

Coverity Scan Build Status

Toxic is a Tox-based instant messaging and video chat client.

Toxic Screenshot

Installation

See the install instructions

Settings

Running Toxic for the first time creates an empty file called toxic.conf in your home configuration directory ("~/.config/tox" for Linux users). Adding options to this file allows you to enable auto-logging, change the time format (12/24 hour), and much more. You can view our example config file here.

Troubleshooting

If your default prefix is "/usr/local" and you receive the following:

error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory

you can attempt to correct it by running sudo ldconfig. If that doesn't work, run:

echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
sudo ldconfig

toxic's People

Contributors

1100110 avatar aitjcize avatar ansa89 avatar dantok avatar fhahn avatar fullname avatar iphydf avatar irungentoo avatar jfreegman avatar krisl avatar louipc avatar lukechampine avatar mannol avatar manuel-arguelles avatar metala avatar mphe avatar nominate avatar nurupo avatar plutooo avatar robinlinden avatar rose-m avatar s3erios avatar stal888 avatar stqism avatar tha14 avatar tsarfox avatar urras avatar whtf0x avatar zetok avatar zugz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

toxic's Issues

Window resize causes visual problems

Example: chat messages from other users in groupchat disappear.

Window resize causes "textfield" on bottom to change size; cursor in strange locations

I'm using terminal.app on OSX. Can anyone else confirm these issues on other terminals and OSs?

Toxic doesn't display some messages correctly

2014-03-31 toxic doge2

Message that caused problem:

░▄░░░░░░░░░░░░░░▄
░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌
 ░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐
 ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
 ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌
 ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
 ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌
 ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌
 ▀▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒

Fails to build with --disable-av

settings.c includes audio_call.h (only for MAX_DEVICES) even when AV disabled

I'm not sure how it should be fixed so i didn't make a pull request, but this works

diff --git a/src/settings.c b/src/settings.c
index 877e920..4eee2e6 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -25,9 +25,14 @@

 #include "toxic_windows.h"
 #include "configdir.h"
-#include "audio_call.h"
 #include "settings.h"

+#ifdef _SUPPORT_AUDIO
+#include "audio_call.h"
+#else
+#define MAX_DEVICES 32
+#endif
+
 static void uset_autolog(struct user_settings *s, int val);
 static void uset_time(struct user_settings *s, int val);
 static void uset_alerts(struct user_settings *s, int val);

Design question: Which alerts are necessary?

The prompt and chat windows seem to get spammed with excess information, especially when someone connects (nick change/online/status/statusmsg all at once, some of which i've already disabled in my latest pull). I think only vital information should be actively shown in the prompt/chat windows, and everything else can be viewed passively.

Using other messengers as examples, we don't normally get a popup when someone changes nicks or updates their personal note etc. They're usually reserved for connection alerts, and friend requests. I think userstatus and note changes should be shown in active chat windows, but not the prompt, and nick changes should be completely silent.

Though with no way to uniquely identify a friend, nick change alerts might be necessary. I'm not sure...any thoughts or suggestions?

Show ID prefix in friends screen

Anonymous: they are legion

When you try to add friends and some of them are still "anonymous" (a stage every new user goes through), it's impossible to know which is which (if I wanted to delete the one that started with 1234, it would take many keystrokes and lots of concentration).

"anonymous" is not the only concern: If an "anonymous" turns out to be an "Alice", and I already know an "Alice", I'd still have a similar (or worse) problem 😖

Multiple IDs

Just like the Bitcoin client, we should be able to generate as many IDs as we want and name them.

Symbol Lookup Error

Receiving the follow error, whenever I try to ctrl +o / +p:

toxic: symbol lookup error: toxic: undefined symbol: tox_get_num_online_friends

Toxic v.0.2.4_r631
Terminal(s): urxvt / Gnome Terminal / xTerm
OS: Arch

Friends nicknames gets "obfuscated"

[prompt] sais
[15:02:37] * iM-(M-?%xTM-7 has come online

[friends] sais
> O DinoSaurus (this is the correct nickname)

The actual chat window I open, sais
[Online] ~XM-1M-- (~\^^A as title.
My "tab/tool bar" sais TOXIC 0.3.2_r793 | [prompt] [friends] [~XM-1M-- (~\^^A]

I /quit Toxic, restart it, and I get
[15:05:01] * ~XM-1M-- (~\^^A has come online

The name in the friends list is the same still, "DinoSaurus", and when I open the PM window, I get
[Online] ~MM-?% M-7
Yes, on two lines.

The "tab/tool bar" sais
TOXIC 0.3.2_r793 | [prompt] [friends] [

Third restart
[15:06:40] * ~MM-?% M-7 has come online

I switched to the friend list before they "came online", and the name in the friend list looked like that. But when they "came online", the name in the friend list got fixed so it was "DinoSaurus", but when I PM them they are still called that "obfuscated" name.

This happened recently, but I don't rememver which commit.

Edit
My friend just PM'd me back, so here is how it looks:
The [prompt] window sais
[15:06:40] * ~MM-?% M-7 has come online

the [friends] window looks like intended; > O DinoSaurus

and the PM window now sais
[Online] ~X~A~(~\^^A
[15:14:43] ~X~A~(~\^^A: did you get that? [15:14:52] Brottweiler: i did get that ^ [15:16:27] ~X~A~(~\^^A: k

and the "tab/tool bar":
TOXIC 0.3.2_r793 | [prompt] [friends] [~X~A~(~\^^A]

compiling error

make all-recursive
make[1]: Entering directory ~/toxic-master' Making all in build make[2]: Entering directory/toxic-master/build'
CC toxic-settings.o
In file included from ../src/settings.c:28:0:
../src/audio_call.h:8:23: fatal error: tox/toxav.h: No such file or directory
compilation terminated.
make[2]: *** [toxic-settings.o] Error 1
make[2]: Leaving directory ~/toxic-master/build' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/toxic-master'
make: *** [all] Error 2

No connection on FreeBSD

Toxic currently does not connect to the Tox network. It will open, but it will endlessly print "Establishing connection..."
Furthermore, tcpdump doesn't detect anything trying to connect to port 33445.
screenshot from 2014-03-12 16 06 16

CC: @irixuser

jack_client_new: deprecated

Building latest Toxic from git, start it, I get jack_client_new: deprecated.
Obviously, I am using JACK Audio. It has worked before, but after the last 3 commits, this happened.

I do not get this error if I compile without AV support.

Remember groupchats

Implement a /save command that saves the ID of a groupchat so it can be rejoined on the next launch of toxic

Prompt.c command parsing

a few weeks ago @fhahn refactored the command parsing in prompt.c, but it was left unfinished and remains broken.

Issues:

  • You shouldn't be forced to add a status message with the status command
  • Status messages and add messages should not require quotes in order to contain more than a single word.
  • Command functions should handle their own arguments completely; the commands struct should not exist in its current form.

If it were up to me we'd go back to the old method that's still being used in chat.c. It might be ugly, but it's simple, versatile and it works perfectly. If this issue doesn't get resolved soon I'm probably going to end up reverting back to that, because rather than finding this refactor saner, I find it unnecessarily complicated and restricting.

Segmentation faults on Cygwin and OpenSuSE

toweI has reported in a Tox IRC channel a segmentation fault he experiences with Toxic running on Cygwin, a stack trace being available at: https://gist.github.com/anonymous/9c2dc6d6ce6ea2f41e9a

@sudden6 reported a segmentation fault on OpenSuSE 13.1 in ticket #106 with a basically identical stack trace, available at: https://gist.github.com/sudden6/9652660

It is worth noting that toweI reported that Toxic worked once (the same binary) on Windows for him. This raises some interesting ideas - could there be a threading related issue?

build error on os x 10.9

libtoxcore-HEAD installed using brew, and I have problems with toxic-HEAD, so I cloned from this git and tried to make, error log:

➜  toxic git:(master) ./configure --disable-av 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... configure_aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for iswprint... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for setlocale... yes
checking for strchr... yes
checking for strdup... yes
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for NCURSES... no
checking for NCURSES... no
configure: WARNING: No package 'ncurses' found
checking for ncursesw5-config... no
checking for ncursesw5.4-config... no
checking for ncurses5-config... no
checking for ncurses5.4-config... /usr/bin/ncurses5.4-config
checking ncurses cflags... -I/usr/include/ncurses
checking ncurses libraries... -lncurses
checking for LIBTOXCORE... yes
checking for git... /usr/local/bin/git
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating misc/Makefile
config.status: creating build/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
➜  toxic git:(master) make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in build
  CC       toxic-settings.o
In file included from ../src/settings.c:28:
../src/audio_call.h:8:10: fatal error: 'tox/toxav.h' file not found
#include <tox/toxav.h>
         ^
1 error generated.
make[2]: *** [toxic-settings.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
➜  toxic git:(master) 

Need complete redraw for /clear and /help

If you have toxav, you might get some stderr messages until it figures out the best in and out devices (then it says audio's fine).
Neither /clear nor /help redraw the screen from scratch. The only way to get the screen to redraw is by resizing the terminal window 😈
/help doesn't redraw

Toxic doesn't support some unicode characters

2014-03-31 toxic smirk
http://graphemica.com/%F0%9F%98%8F

That, and many other.
Problem isn't just that Toxic doesn't want to display it, I also can't paste symbols in Toxic, to send them.

It wouldn't be a big issue, if not for Antox, which apparently supports them quite nicely, and allows to send many unicode characters as messages.. And they're not displayed in Toxic.

12 or 24 hour time?

Ideally we should have this as a setting, but until then, let's have a vote. Should toxic stick with 24 hour time, or switch to AM/PM?

Toxic splitts, while Venom stays connected

2014-02-23 venom and toxic comparison - toxic strange splitting

↑ comparison between Venom and Toxic, while Toxic experiences something 'split alike'.

Beside easily noticeable problems:
• What is written in Toxic is shown in Venom, also other peers seem to see it
• Messages by other peers aren't displayed in Toxic, but are in Venom
• From time to time list of connected peers fluctuates rapidly by ~ 30-60%. At all time number of connected peers in Toxic differs from number in Venom.

EDIT: Sorry, wrong image.

SIGSEVG upon friend hanging up

CC: @mannol1

Reproduced like so:
A calls B
B answers
A hangs up right away
SIGSEVG on B

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffed0d7700 (LWP 17011)]
0x000000000040879c in friendlist_onAv (self=<optimized out>, av=<optimized out>) at ../src/friendlist.c:481
481     if (friends[id].chatwin == -1) {
(gdb) backtrace
#0  0x000000000040879c in friendlist_onAv (self=<optimized out>, av=<optimized out>) at ../src/friendlist.c:481
#1  0x000000000040f2d8 in callback_call_ended (arg=<optimized out>) at ../src/audio_call.c:372
#2  0x00007ffff70dcf6e in start_thread (arg=0x7fffed0d7700) at pthread_create.c:311
#3  0x00007ffff6e079cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
(gdb) l
476     if ( id >= max_friends_index)
477         return;
478     
479     Tox* m = toxav_get_tox(av);
480     
481     if (friends[id].chatwin == -1) {
482         if (get_num_active_windows() < MAX_WINDOWS_NUM) {
483             friends[id].chatwin = add_window(m, new_chat(m, friends[id].num));
484         } else {
485             uint8_t nick[TOX_MAX_NAME_LENGTH] = {'\0'};

Toxic misbehaves and is killed

On latest Toxic:

toxic[11004]: *** buffer overflow detected ***: toxic - terminated
toxic[11004]: buffer overflow attack in function <unknown> - terminated
[11004]: Report to http://bugs.gentoo.org/

How to reproduce:

  1. Hardened Gentoo
  2. Pick a Venom and start messaging ↓ to Toxic (i.e. ctrl + v, enter; repeatedly and fast)

Message used:

ib-GObject: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
GLib-GObject: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
GLib-GObject: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
GLib-GObject: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
GLib-GObject: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
GLib-G

Segfault

Toxic will segfault after my mac goes to sleep.
I was running toxic 0.2.4_r634.

Warning about not sent message fails to appear

When sending messages in bulk (i.e. many/second) Toxic seems to not be able to send more than 16 messages between clients on a localhost. Rest of messages isn't sent, with warning displayed as * Failed to send message.. Unfortunately, if sending messages in bulk is kept (i.e. I keep CTRL + SHIFT + V pressed) message about inability to send message disappears, even though last messages are dropped.

↓ Below is testing message I've used. Copypaste it continuously into chat in Toxic.

☺

☻

✌

☹
♡

♥

❤

⚘
❀

❃

❁

✼
☀

✌

♫

♪
☃

❄

❅

❆

Toxic does not support certain characters

Toxic in version 0.2.7_r689 does not support certain characters.
The ones I personally need, are:

ą
Ą
ć
Ć

https://en.wikipedia.org/wiki/%C4%84#Computing_codes
https://en.wikipedia.org/wiki/%C4%86

When typing 'ą' “cursor” seems to go into next character position ( Alt gr + a ).
When typing 'Ą' “cursor” seems to go into previous character position ( Alt gr + Shift + A ).
When typing 'ć' after some characters, it seems to remove previous character ( Alt gr + c ).
When typing 'Ć' “cursor” seems to go into beginning position ( Alt gr + Shift + c ).

They are widely used in Polish language, and I was very upset when I saw that other characters I need did work, except those few..

When typed in IRC and sent by SyncBot are rendered correctly:
2014-03-03 toxic unsupported characters

Please fix it.

Configurable tab-switching shortcuts for alternative keyboard layouts

The shortcuts for tab-switching which are ctrl+o and ctrl+p are designated for the QWERTY keyboard layout.
This can be bothersome for users of alternative keyboard layouts such as Colemak and Dvorak.
It would be preferable to have the ability to change the shortcut for these functions.
An alternative would be to use ctrl+, and ctrl+. instead as these buttons are almost always beside each other in most layouts.

build fail

.
.
.
toxic-0.3.0.1/src/windows.c
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:9: run info '(automake)Extending aclocal'
/usr/share/aclocal/imlib.m4:9: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:94: installing configure_aux/compile' configure.ac:80: installingconfigure_aux/config.guess'
configure.ac:80: installing configure_aux/config.sub' configure.ac:9: installingconfigure_aux/install-sh'
configure.ac:9: installing configure_aux/missing' build/Makefile.am: installingconfigure_aux/depcomp'
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
configure: Will search for libtoxcore header files in /usr/include/tox
configure: Will search for libtoxcore libraries in /usr/lib64
configure: Will search for libsodium header files in /usr/include/sodium
configure: Will search for libsodium libraries in /usr/lib64
checking build system type... x86_64-slackware-linux-gnu
checking host system type... x86_64-slackware-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for stdbool.h that conforms to C99... yes
checking for Bool... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for iswprint... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for setlocale... yes
checking for strchr... yes
checking for strdup... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for NCURSES... yes
checking for LIBTOXCORE... yes
checking for OPENAL... yes
checking for LIBTOXAV... yes
checking tox/toxav.h usability... yes
checking tox/toxav.h presence... yes
checking for tox/toxav.h... yes
configure: Building with audio support
checking for git... /usr/bin/git
configure: creating ./config.status
config.status: creating Makefile
config.status: creating misc/Makefile
config.status: creating build/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory /tmp/SBo/toxic-0.3.0.1' Making all in build make[2]: Entering directory/tmp/SBo/toxic-0.3.0.1/build'
CC toxic-main.o
../src/main.c: In function ‘init_tox’:
../src/main.c:141:5: warning: passing argument 2 of ‘tox_callback_typing_change’ from incompatible pointer type [enabled by default]
tox_callback_typing_change(m, on_typing_change, NULL);
^
In file included from ../src/main.c:54:0:
/usr/include/tox/tox.h:350:6: note: expected ‘void (
)(struct Tox *, int32_t, uint8_t, void *)’ but argument is of type ‘void (_)(struct Tox _, int, int, void *)’
void tox_callback_typing_change(Tox *tox, void (_function)(Tox tox, int32_t, uint8_t, void *), void *userdata);
^
../src/main.c:142:5: warning: passing argument 2 of ‘tox_callback_friend_request’ from incompatible pointer type [enabled by default]
tox_callback_friend_request(m, on_request, NULL);
^
In file included from ../src/main.c:54:0:
/usr/include/tox/tox.h:313:6: note: expected ‘void (
)(struct Tox , uint8_t *, uint8_t *, uint16_t, void *)’ but argument is of type ‘void ()(uint8_t _, uint8_t *, uint16_t, void *)’
void tox_callback_friend_request(Tox *tox, void (_function)(Tox tox, uint8_t *, uint8_t *, uint16_t, void *),
^
../src/main.c:145:5: warning: passing argument 2 of ‘tox_callback_user_status’ from incompatible pointer type [enabled by default]
tox_callback_user_status(m, on_statuschange, NULL);
^
In file included from ../src/main.c:54:0:
/usr/include/tox/tox.h:345:6: note: expected ‘void (
)(struct Tox , int32_t, uint8_t, void *)’ but argument is of type ‘void ()(struct Tox _, int, enum TOX_USERSTATUS, void *)’
void tox_callback_user_status(Tox *tox, void (_function)(Tox tox, int32_t, uint8_t, void *), void *userdata);
^
CC toxic-chat.o
../src/chat.c: In function ‘send_action’:
../src/chat.c:465:5: error: too many arguments to function ‘tox_get_self_name’
tox_get_self_name(m, selfname, TOX_MAX_NAME_LENGTH);
^
In file included from ../src/toxic_windows.h:34:0,
from ../src/chat.c:31:
/usr/include/tox/tox.h:219:10: note: declared here
uint16_t tox_get_self_name(Tox *tox, uint8_t *name);
^
../src/chat.c: In function ‘chat_onKey’:
../src/chat.c:649:13: error: too many arguments to function ‘tox_get_self_name’
tox_get_self_name(m, selfname, TOX_MAX_NAME_LENGTH);
^
In file included from ../src/toxic_windows.h:34:0,
from ../src/chat.c:31:
/usr/include/tox/tox.h:219:10: note: declared here
uint16_t tox_get_self_name(Tox *tox, uint8_t *name);
^
make[2]: *
* [toxic-chat.o] Error 1
make[2]: Leaving directory /tmp/SBo/toxic-0.3.0.1/build' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/tmp/SBo/toxic-0.3.0.1'
make: *** [all] Error 2

Groupchat display fails to update

Version: 0.3.1_r768
OS: debian linux

Steps to reproduce

Add syncbot
Msg invite
join groupchat
talk a bit in groupchat
go to syncbot window and /close
Groupchat window no longer updates
????
Profit
If you then open any other window, it starts to update again.

Toxic uses 5-20% CPU while idle

Toxic seems to constantly run on 5% CPU usage up to 30% at times looking at in htop. I use PulseAudio.

Not even Skype uses this much. Skype idle's on like 4%. What can be the cause of this? A/V?

collect2: error: ld returned 1 exit status

Was going to build Toxic after #101 was fixed, but when running make it fails to build:

/usr/bin/ld: cannot find -ltoxcore
/usr/bin/ld: cannot find -ltoxav
collect2: error: ld returned 1 exit status
Makefile:423: recipe for target 'toxic' failed
make[2]: *** [toxic] Error 1
make[2]: Leaving directory '/home/brott/build/toxic/build'
Makefile:382: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/brott/build/toxic'
Makefile:322: recipe for target 'all' failed
make: *** [all] Error 2

I did rebuild and installed ToxCore before I tried to build Toxic.

aalib for video

Creating an issue here in case anybody actually steps up to implement it. Would be epic.

[20:38] <SylvieLorxu> You've got to be kidding me
[20:38] <SylvieLorxu> A CLI client is the first one to support audio?
[20:38] <SylvieLorxu> Holy shit, lol
[20:38] <SylvieLorxu> I've NEVER seen that before
[20:38] <zetok> not lol
[20:38] <Landswellsong> SylvieLorxu: inb4 ascii art video
[21:14] <cpolymeris> yes, please: toxic video using aalib

Compiling with AV fails

I just compiled Tox Core from git, and now Toxic fails to compile. Toxic compiles fine with --disable-av though.

Makefile:676: recipe for target 'toxic-audio_call.o' failed
make[2]: *** [toxic-audio_call.o] Error 1
make[2]: Leaving directory '/home/brott/build/toxic/build'
Makefile:382: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/brott/build/toxic'
Makefile:322: recipe for target 'all' failed
make: *** [all] Error 2

Auto-connect failed with error code 1, can't get rid of it

I've googled, found the solution for this issue, but it won't work;

mkdir -p ~/.config/tox
wget -O DHTnodes http://stupiddog.soupwhale.com/files/tox/dht/DHTnodes
mv DHTnodes $HOME/.config/tox/DHTnodes

I even ran the python script to update the nodes, but still getting the error;

Starting audio...
$ Input device: Built-in Audio Analog Stereo
Output device: OpenAL Soft
Audio started with no problems.
$
Auto-connect failed with error code 1
$ DHT connected.

As you can see, I do get a "DHT connected" message, but that's after I get the error.
For that matter, that DHTnodes file seems to maybe be outdated, looking at wiki.tox.im/nodes.

symbol lookup error

toxic: symbol lookup error: toxic: undefined symbol: tox_callback_group_namelistchange

Happened after updating toxcore, libsodium and dependencies on Arch. What I did:

git clone git://github.com/Tox/toxic.git; cd toxic
autoreconf -if
./configure --with-dependency-search=/usr/local/lib/
make; sudo make install
sudo /sbin/ldconfig
toxic

Can't see messages of myself and other people

I can't see them for some reason
Also I got this error while running the terminal
(venom:7617): Gtk-WARNING **: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead

(venom:7617): Gtk-CRITICAL **: gtk_scrollable_get_vscroll_policy: assertion `GTK_IS_SCROLLABLE (scrollable)' failed

(venom:7617): Gtk-CRITICAL **: gtk_scrollable_get_hscroll_policy: assertion `GTK_IS_SCROLLABLE (scrollable)' failed

Voice chat echoes

I was testing voice chat with my brother and the audio calls worked! The problem is that when we initiated our call, I saw this error pop up in the Toxic window that said "AL lib: (EE) alsa_available_samples: avail update failed: Broken pipe". Also, there is this odd echo whenever I talk. I hear myself from my brother's laptop and also through my headphones. Even with his speakers down all the way, it'd echo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.