alttester / AltTester-Unity-SDK

AltTester Unity SDK is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them using tests written in C#, Python, Robot or Java.
https://alttester.com/docs/sdk/latest/home.html
GNU General Public License v3.0
61 stars 7 forks source link

[Intermittent] C# Driver Connection Can't Be Terminated from Desktop When Error Occurs During Connection #1680

Closed RobertPoienar closed 1 month ago

RobertPoienar commented 1 month ago

An intermittent issue occurs where, after establishing a connection and checking with GetServerVersion to confirm the connection, a NullReferenceException is sometimes thrown. This issue seems to be related to threading. It's difficult to reproduce consistently, and attempts to debug via logs have not been successful. It appears that the commandParam might be set to null when trying to receive the server's response.

Steps to reproduce

  1. Connect to the app using the Desktop.
  2. Attempt to reproduce the issue (though it happens unpredictably).

Actual result

AR: Null Reference exception is thrown

Expected result

ER: Connection is made and you can see the information of the app in the Desktop

iulianatodoran commented 1 month ago

Tested in https://github.com/alttester/AltTester-Desktop/issues/1803.

Moving the ticket to Done.