YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

MQTTnet: Multiple IDEs try to bind to the same socket #7057

Open gm-bug-reporter[bot] opened 4 months ago

gm-bug-reporter[bot] commented 4 months ago

Description

not working

Steps To Reproduce

bg

Which version of GameMaker are you reporting this issue for?

IDE v2024.6.2.162 Runtime v2024.6.1.208

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

64b25511-9041-4f4b-ab8f-d9e0a3a509a2

stuckie commented 3 months ago

I have no idea what is supposed to be wrong here. From the ui.log, it looks like there were two instances of the IDE at one point as I thought there was a crash early on after Initialise(0.0) but there were two interleaved sets of initialisation calls, and the following logged MQTTnet error, but it carried on.

[14:52:48:640(a302)] MQTT - System.AggregateException: One or more errors occurred. (Only one usage of each socket address (protocol/network address/port) is normally permitted.) ---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted. at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at MQTTnet.Implementations.CrossPlatformSocket.Bind(EndPoint localEndPoint) at MQTTnet.Implementations.MqttTcpServerListener.Start(Boolean treatErrorsAsWarning, CancellationToken cancellationToken) at MQTTnet.Implementations.MqttTcpServerAdapter.RegisterListeners(MqttServerTcpEndpointBaseOptions options, X509Certificate2 tlsCertificate, CancellationToken cancellationToken) at MQTTnet.Implementations.MqttTcpServerAdapter.StartAsync(IMqttServerOptions options) at MQTTnet.Server.MqttServer.StartAsync(IMqttServerOptions options) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at YoYoStudio.IDE.MqttInitialise()

What in particular was not working? You will have to give us more information than this if you want us to help.