PDA

View Full Version : Access violation at ts3client_win64.dll ( ts3client_startConnection )



broly
April 13th, 2016, 11:13 AM
Hello, dears TeamSpeakTeam! :)

I came here again to post strange unhandled exception error message with details!

Just look at screenshot. I want to connect to server with channel Lobby as canna be seen in local variables.
Stack trace show the breakpoint, all details here :)

I would look there myself, but I do not have a code of library!

Thanks for attention!

UPD: I sent clear defaultChannelArray, and error now is not occurs. But I want to connect with specified channel...

13752

dante696
April 13th, 2016, 11:33 AM
Thank for sharing this. I will send this to a developer.

Meanwhile try following and please give feedback for the result.
1. Use a valid identity and not just a random invalid string
2. Try without a default a channel

//Update
1. This is no bug:
Use a valid identity and not just a random invalid string
2. A fixed version for the default channel will be released in the middle of this week.

broly
July 25th, 2016, 10:21 AM
Thank for sharing this. I will send this to a developer.

Meanwhile try following and please give feedback for the result.
1. Use a valid identity and not just a random invalid string
2. Try without a default a channel

//Update
1. This is no bug:
Use a valid identity and not just a random invalid string
2. A fixed version for the default channel will be released in the middle of this week.

I used next cython code:



def connect(self, char* name):
print(self.connection_handler_id, self.connection_identity, self.ip, self.port, name)
cdef int err = ts3client_startConnection(self.connection_handler_ id, self.connection_identity, self.ip, self.port, name, NULL, "", "secret")
check_err(err)


connection_identity is not invalid string, ts3client_createIdentity(&self.connection_identity) used for this.
So I got error, "Process finished with exit code -1073741819 (0xC0000005)" (exits before "check_err(err)" line)
connection_handler_id = 1
connection_identity = '219VL5elGE7pRdTtsFZ37lcoyWvY4HN2P0BISQNQXiV8YUIiA A1aCl5EUlQCUxR7CgNBLU0BYVN1YzUkUn0Jc2h1a2BbfWp2DQx WMl1DIVYODBJGeQEAVWAHNmMDXk9TBF4bPHNvVWdMSU5BaUF3a jhEMk1qOGltMkw4SWFmajNPM3A4dUdhaW5EcjN5d3hUNmt4RHk 4bTFRPT0='
ip = '127.0.0.1'
port = 9987
name = 'nick'


Log:
2016-07-25 08:25:37.485020|INFO | | |TeamSpeak 3 Client 3.0.3.2 (2015-06-10 10:47:37) SDK
2016-07-25 08:25:37.485020|INFO | | |SystemInformation: Windows 9 8664 {6} {3} {9600} (9600) x64 (AMD or Intel) Binary: 32bit
2016-07-25 08:25:37.485020|INFO | | |Using hardware aes
2016-07-25 08:25:37.495030|DEBUG |Direct Sound | |setting timer resolution to 1ms
2016-07-25 08:25:37.507171|ERROR |SoundBckndIntf| |D:/UNREAL/ServerManager/TeamSpeak3/soundbackends/directsound_win32.dll error: NO_DEFAULT_FOUND
2016-07-25 08:25:37.507171|ERROR |SoundBckndIntf| |D:/UNREAL/ServerManager/TeamSpeak3/soundbackends/directsound_win32.dll error: NO_DEFAULT_FOUND
2016-07-25 08:25:37.507171|ERROR |SoundBckndIntf| |Could not load "ts3soundbackend_isSupported" from backend dynamic library
2016-07-25 08:25:37.512177|ERROR |Windows Audio Session| |ERROR (-107 -2147023728): -;5<5=B =5 =0945=.
2016-07-25 08:25:37.512177|ERROR |SoundBckndIntf| |D:/UNREAL/ServerManager/TeamSpeak3/soundbackends/windowsaudiosession_win32.dll error: GETTING_DEFAULTAUDIOENDPOINT

xoancosmed
April 14th, 2018, 04:47 PM
Hi!

I think I am having a very similar problem. I am getting this message when starting the TeamSpeak's client:


libts3client.dll caused an Access Violation (0xc0000005)
in module libts3client.dll at 0033:a84a47d4.

This is my code:



public class VoiceChat : MonoBehaviour {

/* ********************* *
* ***** VARIABLES ***** *
* ********************* */

private static TeamSpeakClient ts3_client;

[SerializeField] private GameObject connectButton;
[SerializeField] private GameObject disconnectButton;

/* ************************* *
* ***** UNITY METHODS ***** *
* ************************* */

void Start ()
{
// Getting the TeamSpeak's client
ts3_client = TeamSpeakClient.GetInstance();

// Enabling logging
TeamSpeakClient.logErrors = true;
}

void Update ()
{
if (TeamSpeakClient.started == true)
{
connectButton.SetActive(false);
disconnectButton.SetActive(true);
}
else
{
connectButton.SetActive(true);
disconnectButton.SetActive(false);
}
}

/* ********************** *
* ***** UI METHODS ***** *
* ********************** */

public void Connect()
{
// HERE IS WHERE IT FAILS
ts3_client.StartClient(NetInfo.VoiceService.ip, (uint) NetInfo.VoiceService.port, NetInfo.VoiceService.secret, UserInfo.userName, ref NetInfo.VoiceService.defaultChannel, NetInfo.VoiceService.defaultChannelPassword); // HERE IS WHERE IT FAILS
}

public void Disconnect()
{
ts3_client.StopConnection("");
ts3_client.StopClient();
}


Also, the content of my "NetInfo" class is:



public class NetInfo : MonoBehaviour {

public const int DEFAULT_PORT = 7777;

public enum State { SERVER, HOST, CLIENT, OTHER };
public static State state = State.OTHER;

public static string ip = "127.0.0.1";
public static int port = DEFAULT_PORT;

public class VoiceService
{
public static string ip = "192.168.1.22"; // MY SERE
public static int port = 9987;
public static string secret = "MYSECRET";
public static string[] defaultChannel = new string[] { "default", "" };
public static string defaultChannelPassword = null;
}

}


And finaly, the "UserInfo" class:



public class UserInfo : MonoBehaviour
{

public static string userName = "Yo";
public static string token = "";

}

Chris
April 16th, 2018, 10:39 AM
libts3client.dll caused an Access Violation (0xc0000005)
in module libts3client.dll at 0033:a84a47d4.

This is my code:



Minimum username length is three characters.
If after fixing that it still crashes, then don't pass null as channel password, use an empty string instead.

xoancosmed
April 17th, 2018, 12:59 PM
Minimum username length is three characters.
If after fixing that it still crashes, then don't pass null as channel password, use an empty string instead.

I think that the problem was the "null" as channel password (the username of that file is changed after the execution and has more than 4 characters). So now with that change it doesn't crash, but I'm still not able to connect to the server (I don't receive any error, but in the command line of the server doesn't appear any message), but that is probably another problem I have to investigate ...

Thanks for your help.