Group history load glitch #200

Closed
opened 2019-08-10 02:27:52 +00:00 by dan · 3 comments
Owner

When I open cwtch and click on a group, it shows me the latest.

When it connects to the server and starts syncing it starts saying "x new messages" and the message pane starts flowing with messages.

This was made more clear by deleteing everything in ~/.cwtch/profiles/xxxxxx/ except the 'profile' file

First suspicion: the server is storing more logs than local so we're reacting weirdly to legacy messages we haven't seen

However, max file partitions in cwtch stream store is 16 and none of my groups have more than like 6 or 9 backing files so.... possibly a loading error or something is getting cut off somewhere?

When I open cwtch and click on a group, it shows me the latest. When it connects to the server and starts syncing it starts saying "x new messages" and the message pane starts flowing with messages. This was made more clear by deleteing everything in ~/.cwtch/profiles/xxxxxx/ except the 'profile' file First suspicion: the server is storing more logs than local so we're reacting weirdly to legacy messages we haven't seen However, max file partitions in cwtch stream store is 16 and none of my groups have more than like 6 or 9 backing files so.... possibly a loading error or something is getting cut off somewhere?

Possibly related:

My console would get stuck in a loop, where it would continually print 1000s of messages such as:


2019/08/09 18:42:08 tor/BaseOnionService.go [DBUG] Error connecting to 2ylkvox3mj4twgqd3jddzqyhnxw4zoyvwo5tudcazpa34hsruhstyoad socks connect tcp 127.0.0.1:39505->2ylkvox3mj4twgqd3jddzqyhnxw4zoyvwo5tudcazpa34hsruhstyoad.onion:9878: unknown error host unreachable
2019/08/09 18:42:08 event/eventmanager.go [DBUG] Sending PeerStateChange to 0xc0000a2600
2019/08/09 18:42:08 event/eventmanager.go [DBUG] Sending PeerStateChange to 0xc00012d4a0
2019/08/09 18:42:08 event/eventmanager.go [DBUG] Sending PeerStateChange to 0xc00012d5c0PeerStateChange to 0xc00012d5c0

While never launching the UI.

deleteing everything in ~/.cwtch/profiles/xxxxxx/ except the 'profile' file

This fixed the issue, though I foolishly rm'd the files rather than moving them for analysis.

Possibly related: My console would get stuck in a loop, where it would continually print 1000s of messages such as: ``` 2019/08/09 18:42:08 tor/BaseOnionService.go [DBUG] Error connecting to 2ylkvox3mj4twgqd3jddzqyhnxw4zoyvwo5tudcazpa34hsruhstyoad socks connect tcp 127.0.0.1:39505->2ylkvox3mj4twgqd3jddzqyhnxw4zoyvwo5tudcazpa34hsruhstyoad.onion:9878: unknown error host unreachable 2019/08/09 18:42:08 event/eventmanager.go [DBUG] Sending PeerStateChange to 0xc0000a2600 2019/08/09 18:42:08 event/eventmanager.go [DBUG] Sending PeerStateChange to 0xc00012d4a0 2019/08/09 18:42:08 event/eventmanager.go [DBUG] Sending PeerStateChange to 0xc00012d5c0PeerStateChange to 0xc00012d5c0 ``` While never launching the UI. > deleteing everything in ~/.cwtch/profiles/xxxxxx/ except the 'profile' file This fixed the issue, though I foolishly `rm`'d the files rather than moving them for analysis.
Author
Owner

hmmm that's interesting...

as for me, I have narrowed down the problem. on a fresh profile with no history:

2019/08/10 11:31:55 fetch/peer_fetch_channel.go [INFO] Read 1852 messages on fetch for server 
2019/08/10 11:31:56 storage/profile_store.go [INFO] synced add recived 1017 messages

2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [385] from group 37b6c1d6e4a7dbcec00599edcf26ef18
2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [342] from group d077fb5d547cef175f6ebececd9b673f
2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [578] from group 66b46c88c1475de1819af2a95d39548d
2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [1] from group c3667cfa2a2dd76777059ab012e165b1

the UI adds up to receiving 1206 messages, and the more intense working storage got 1017.

Cool! closing in

hmmm that's interesting... as for me, I have narrowed down the problem. on a fresh profile with no history: ``` 2019/08/10 11:31:55 fetch/peer_fetch_channel.go [INFO] Read 1852 messages on fetch for server 2019/08/10 11:31:56 storage/profile_store.go [INFO] synced add recived 1017 messages 2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [385] from group 37b6c1d6e4a7dbcec00599edcf26ef18 2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [342] from group d077fb5d547cef175f6ebececd9b673f 2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [578] from group 66b46c88c1475de1819af2a95d39548d 2019/08/10 11:31:55 characters/incominglistener.go [INFO] Synced messages [1] from group c3667cfa2a2dd76777059ab012e165b1 ``` the UI adds up to receiving 1206 messages, and the more intense working storage got 1017. Cool! closing in
Author
Owner

This is now fixed with #205

This is now fixed with #205
dan closed this issue 2019-08-20 18:42:02 +00:00
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/ui#200
No description provided.