Skip to content

websocket-related crash  #83

Open
Open
@VladimirAkopyan

Description

@VladimirAkopyan
Member

The app on the tablet crashes sometimes while publishing data, happens every 10 hours or so.
The stack-trace form the store says it's related to the web-socket class, which is entirely feasible.
stackTrace.txt

Activity

added this to the Backlog milestone on Oct 5, 2017
VladimirAkopyan

VladimirAkopyan commented on Oct 7, 2017

@VladimirAkopyan
MemberAuthor

Example of crash from the Tablet, compiled to native
Log-171007-222244395.zip

modified the milestones: Backlog, 1.8 on Oct 8, 2017
VladimirAkopyan

VladimirAkopyan commented on Oct 8, 2017

@VladimirAkopyan
MemberAuthor

Found the bug, by running the app in Visual Studio for a long time:
Crash report:

   at Windows.Storage.Streams.DataWriter.DetachStream()
   at Quickbird.Internet.WebSocketConnection.CleanUp()
   at Quickbird.Internet.WebSocketConnection.MessageRecieved(MessageWebSocket sender, MessageWebSocketMessageReceivedEventArgs args)

related code:

private void CleanUp()
{
	_ReconnectTimer?.Dispose();

	try
	{
		_webSocket?.Close(1000, SocketCloseMessage);
	}
	catch (Exception ex)
	{
		LoggingService.LogInfo($"Closing Websocket Failed, {ex.ToString()}", Windows.Foundation.Diagnostics.LoggingLevel.Error);
	}

	_messageWriter?.DetachStream();
	_messageWriter?.Dispose();
	_messageWriter = null;

	_webSocket?.Dispose();
	_webSocket = null;
}   
added a commit that references this issue on Oct 8, 2017

improved WebSocket #83, improved logging to capture any errors.

VladimirAkopyan

VladimirAkopyan commented on Oct 8, 2017

@VladimirAkopyan
MemberAuthor
changed the title [-]websocket-related crash on the publishing app [/-] [+]websocket-related crash [/+] on Oct 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @VladimirAkopyan

        Issue actions

          websocket-related crash · Issue #83 · quickbird-uk/QuickbirdUWPDashboard