friends icon indicating copy to clipboard operation
friends copied to clipboard

[Bug]: NintendoClients (still) hangs sometimes when doing friend actions on Pretendo

Open Preloading opened this issue 1 year ago • 1 comments

Checked Existing

  • [X] I have checked the repository for duplicate issues.

What happened?

I was told in here that is this issue persisted, to make a bug report. So here we are.

When connected through NintendoClients, it hangs (iirc due to never receiving a response back from the server). It seemingly does this at random, but less frequently than before

What did you expect to happen?

For NintendoClients to not hang after sending requests for a while.

Steps to reproduce?

I've written a handy little python script to trigger the bug by repeatedly sending get_all_friends. bug-tester.zip

To set it up (i assume you have some idea as to python in this)

  1. download the zip and extract it
  2. setup a python venv
  3. run pip install nintendoclients (this totally isn't because i forgot to add a requirements.txt)
  4. make a copy of template.private.py, and name it private.py
  5. fill in the spots with a 3DS you are willing to use for this in private.py. there should be instructions as to how to get some of the values
  6. run main.py by typing python main.py

It may take a couple of minutes to hang, but it will eventually, it will. it should print some debug info to maybe make troubleshooting easier. (yes i did cobble this together in a few hours)

Other relevant information. (OPTIONAL)

This problem can still be worked around with s["prudp.ping_timeout"] = 100000000000 (in the demo project, this goes between L26 & L27

Is essentially a reopening of https://github.com/PretendoNetwork/friends/issues/16 (might have more details), and also https://github.com/PretendoNetwork/nex-go/issues/54

Preloading avatar Oct 20 '24 06:10 Preloading

This seems to be no longer occuring for smaller operations, but large ones (sync_friend remove 100 add 100) still causes this

Preloading avatar Feb 17 '25 02:02 Preloading