Triky313 / AlbionOnline-StatisticsAnalysis

A tool with many features for the game Albion Online
https://triky313.github.io/AlbionOnline-StatisticsAnalysis/
GNU General Public License v3.0
340 stars 103 forks source link

stack overflow #525

Open scientificCommunity opened 2 months ago

scientificCommunity commented 2 months ago

Describe the bug hi guys! Stack overflow appears on startup The reason is that SocketsPacketProvider#OnReceive keeps calling socket?.BeginReceive, and socket?.BeginReceive will eventually go to SocketsPacketProvider#OnReceive, which will get into a dead loop leading to stack overflow. I'm not sure what's causing the problem, my solution was to change the call to socket?.BeginReceive to asynchronous and it worked fine.

Here are my changes

To Reproduce

  1. run app
  2. select language, select server location, select game folder
  3. Stack overflow causes program crash

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Triky313 commented 2 months ago

I can't see any difference at the moment. I will have to observe this for a while longer.