Comments (9)
@kehugter I believe avatars are just another form of file transfers. Since the previous api break (the new tox api from quite a while ago, not the toxav api that was merged recently), there can only be one filetransfer to one contact in one direction at a time. So that means your avatar will get sent only after the filetransfer is done.
tl;dr - toxcore "works as intended" behavior
from utox.
and there is no rush to get new avatar, when file sending ends then avatar goes.
from utox.
there can only be one filetransfer to one contact in one direction at a time.
This is incorrect. uTox will support 64 active file transfers, with 32 in each direction.
@kehugter
I've read your issue a few times and I'm having trouble understanding what the problem with uTox is...
Is uTox not sending the avatar when there's a FT in progress? Or is qTox simply not accepting the FT?
from utox.
works as it should in uTox, this is a qTox only issue...
If I'm wrong I need some more information as I couldn't dup this one.
from utox.
Ok, tried it from uTox to uTox and could reproduce. Both instances in Linux, the receiver
in a VM. So the answer would be that uTox is not sending the avatar when there's a FT in progress.
Steps:
sender
had an avatar set, receiver
could see it. sender
sends a 2GB file, receiver
starts the transfer. sender
changes the avatar twice, but receiver
doesn't get them until the file transfer is paused/cancelled.
uTox will support 64 active file transfers, with 32 in each direction.
I couldn't get more than one active.
from utox.
@kehugter I'm going to need the debug output from both...
from utox.
Test scenario for the original issue, ie, sending a file and updating the avatar.
sender
$ ./utox
Read 84 bytes (/home/sender/.config/tox/utox_save)
0
have GTK
new tox object ipv6: 1 udp: 1 proxy: 0 0
Meta Data not found (/home/sender/.config/tox/xxx.fmetadata)
File not found (/home/sender/.config/tox/xxx.txt)
File not found (xxx.txt)
Meta Data not found (/home/sender/.config/tox/xxx.fmetadata)
File not found (/home/sender/.config/tox/xxx.txt)
File not found (xxx.txt)
Meta Data not found (/home/sender/.config/tox/xxx.fmetadata)
Meta Data not found (/home/sender/.config/tox/xxx.fmetadata)
Tox ID: xxx
Tox Avatar Hash: xxx
Toxav thread init
Audio Filtering and Echo cancellation enabled in this build
frame size: xxx
desktop: xxx xxx
uTox audio input device list:
xxx
xxx
xxx
uTox audio output device list:
xxx
xxx
filter audio on
Video size: xxx xxx
Writing tox_save to: '/home/sender/.config/tox/tox_save.tox.tmp': Saved data! Trying to chmod: success!
uTox: Connected to DHT!
FileTransfer: Starting avatar to friend 3.
Friend-3: Online (TCP)
FileTransfer: New Avatar from friend (3)
FileTransfer: Avatar Unset from friend(3).
FileTransfer: We just killed file (3 & 65536)
Friend-3 Name: test-pclinuxos-utox
Friend-3 Status Message: Toxing on uTox
Friend-3 State: 0
Friend-3 Typing: 0
FileTransfer: Friend (3) rejected avatar
FileTransfer: Cleaning up file transfers! (3 & 0)
enter
drop
SelectionNotify
Type: STRING
Property: XdndDATA
FileTransfer: Starting outgoing file to friend 3. (filename, Fedora-Live-Workstation-x86_64-22-3.iso)
FileTransfer: .ftinfo for file Fedora-Live-Workstation-x86_64-22-3.iso set; ready to resume!
FileTransfer: Friend (3) has resumed file (0)
FileTransfer: Starting avatar to friend 0.
FileTransfer: Starting avatar to friend 2.
FileTransfer: Starting avatar to friend 3.
FileTransfer: Friend (2) has resumed file (0)
FileTransfer: Outgoing transfer is done (2 & 0)
FileTransfer: Incoming transfer is done (2 & 0)
Removing. /home/sender/.config/tox/xxx.ftoutfo
FileTransfer: Cleaning up file transfers! (2 & 0)
Writing tox_save to: '/home/sender/.config/tox/tox_save.tox.tmp': Saved data! Trying to chmod: success!
FileTransfer: Friend (3) has resumed file (1)
FileTransfer: Starting avatar to friend 0.
FileTransfer: Starting avatar to friend 2.
FileTransfer: Starting avatar to friend 3.
FileTransfer: Friend (2) has resumed file (0)
FileTransfer: Outgoing transfer is done (2 & 0)
FileTransfer: Incoming transfer is done (2 & 0)
Removing. /home/sender/.config/tox/xxx.ftoutfo
FileTransfer: Cleaning up file transfers! (2 & 0)
FileTransfer: Friend (3) has resumed file (2)
Writing tox_save to: '/home/sender/.config/tox/tox_save.tox.tmp': Saved data! Trying to chmod: success!
FileTransfer: Friend (3) has paused file (0)
FileTransfer: File now paused by them.
FileTransfer: Outgoing transfer is done (3 & 1)
FileTransfer: Incoming transfer is done (3 & 1)
Removing. /home/sender/.config/tox/xxx.ftoutfo
FileTransfer: Cleaning up file transfers! (3 & 1)
FileTransfer: Outgoing transfer is done (3 & 2)
FileTransfer: Incoming transfer is done (3 & 2)
Removing. /home/sender/.config/tox/xxx.ftoutfo
FileTransfer: Cleaning up file transfers! (3 & 2)
FileTransfer: Friend (3) has canceled file (0)
Removing. /home/sender/.config/tox/xxx.ftoutfo
FileTransfer: Cleaning up file transfers! (3 & 0)
FileTransfer: Friend 3 has gone offline, breaking transfers
FileTransfer: Cleaning up file transfers! (0 & 0)
Friend-3: Offline
Writing uTox Save ::
UTOX VIDEO: Clean thread exit!
UTOX AUDIO: Clean thread exit!
Writing tox_save to: '/home/sender/.config/tox/tox_save.tox.tmp': Saved data! Trying to chmod: success!
UTOXAV: Clean thread exit!
av_thread exit, tox thread ending
Tox tread: Clean exit!
XLIB main: Clean exit
receiver
$ ./utox
File not found (/home/receiver/.config/tox/utox_save)
File not found (utox_save)
File not found (utox_save)
0
have GTK
new tox object ipv6: 1 udp: 1 proxy: 0 0
Meta Data not found (/home/receiver/.config/tox/xxx.fmetadata)
Tox ID: xxx
Audio Filtering and Echo cancellation enabled in this build
frame size: xxx
desktop: xxx xxx
Toxav thread init
uTox audio input device list:
Built-in Audio Analog Stereo
Monitor of Built-in Audio Analog Stereo
uTox audio output device list:
Built-in Audio Analog Stereo
filter audio on
Writing tox_save to: '/home/receiver/.config/tox/tox_save.tox.tmp': Saved data! Trying to chmod: success!
uTox: Connected to DHT!
FileTransfer: Starting avatar to friend 0.
Friend-0: Online (TCP)
FileTransfer: New Avatar from friend (0)
FileTransfer: Avatar from friend (0) rejected: Same as Current
FileTransfer: We just killed file (0 & 65536)
FileTransfer: Cleaning up file transfers! (0 & 0)
Friend-0 Name: test-utox
Friend-0 Status Message: Toxing on uTox
Friend-0 State: 0
Friend-0 Typing: 0
FileTransfer: Friend (0) has canceled file (0)
FileTransfer: Unable to load saved info... uTox can't resume file
FileTransfer: New incoming file from friend (0) file number (65536)
FileTransfer: filename: Fedora-Live-Workstation-x86_64-22-3.iso
name: /home/receiver/Downloads/Fedora-Live-Workstation-x86_64-22-3.iso
path: /home/receiver/Downloads/Fedora-Live-Workstation-x86_64-22-3.iso
FileTransfer: We just resumed file (0 & 65536)
FileTransfer: .ftinfo for file Fedora-Live-Workstation-x86_64-22-3.iso set; ready to resume!
FileTransfer: New Avatar from friend (0)
FileTransfer: We just resumed file (0 & 131072)
FileTransfer: .ftinfo for file set; ready to resume!
FileTransfer: New Avatar from friend (0)
FileTransfer: We just resumed file (0 & 196608)
FileTransfer: .ftinfo for file set; ready to resume!
FileTransfer: We just paused file (0 & 65536)
FileTransfer: File now paused by us.
FileTransfer: Incoming transfer is done (0 & 131072)
Removing. /home/receiver/.config/tox/xxx.ftinfo
FileTransfer: Incoming transfer is done (0 & 196608)
Removing. /home/receiver/.config/tox/xxx.ftinfo
FileTransfer: We just killed file (0 & 65536)
Removing. /home/receiver/.config/tox/xxx.ftinfo
FileTransfer: Cleaning up file transfers! (0 & 65536)
Writing uTox Save ::
UTOX VIDEO: Clean thread exit!
UTOX AUDIO: Clean thread exit!
Writing tox_save to: '/home/receiver/.config/tox/tox_save.tox.tmp': Saved data! Trying to chmod: success!
UTOXAV: Clean thread exit!
av_thread exit, tox thread ending
Tox tread: Clean exit!
XLIB main: Clean exit
Some unrelated info from other friends in sender
stripped.
Perhaps interesting fact: after pausing, all pending avatars are updated, one after the other.
from utox.
OH... yeah... I understand what's going on. @LittleVulpix is correct, toxcore tries to finish files in order, and an avatar is just a file as far as toxcore is concerned, so it just waits until it's turn...
Open this issue at https://github.com/irungentoo/toxcore/issues/
from utox.
Ok, thanks all!
from utox.
Related Issues (20)
- "make install" didn't run ldconfig, apparently.
- Contacts or friends HOT 3
- Feature request: Split long messages.
- uTox doesn't save proxy settings HOT 1
- Where is history stored on macOS? HOT 2
- How to load complete history with version 0.16.1 HOT 2
- uTox updates?
- Changing appearance in the source code HOT 2
- Can't send file HOT 1
- Add support for NGC chat
- Memory leak
- broken link to APK package
- invalid toxid message isn't descriptive enough. HOT 1
- missing entries in utox theme .ini
- Always offline
- Slow Upload Speed, with Bursts HOT 4
- Some optimization suggestions for utox connections
- Can not change Tox ID
- Windows 11 uTox shutting when opened HOT 3
- 0.18.1.0 app crash - conflict with OBS?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utox.