Martianmellow12/Piabetes

Occasional Crashing

Martianmellow12 opened this issue · 4 comments

For some reason, some requests will crash Piabetes. I've not been able to find a pattern, and this occurs in both standard and developer mode. If you ever send a normal request and it gives an error, please notify me so that I can add it to the table and hopefully find a pattern.

After going back and verifying that this issue has been present since v1.0, I've decided that it's not an issue with the Regex, and instead with the execution of message sending and receiving.

I've figured out that if Piabetes is disconnected from the internet, it doesn't crash, but freezes. I believe this is what is causing the seemingly random crashes, but even if it's not, it still needs to be fixed. Once I fix this, I will assume it was the issue when my uptime reaches 10 days.

I fixed the internet disconnection issue, but it still crashes randomly. This is really annoying, as it isn't caught by the crash controller, which almost implies that it's exiting legitimately.

This issue was remedied in v1.6. The problem was that the connection to Wolfram Alpha's servers was unstable, but handling for this was not implemented within the query function. I have since modified the software to handle this by halting for 10 seconds, and then retrying. If it cannot connect after trying this 3 times, it will assume the issue is internal and restart.