Skip to content

Segmentation after changing 'command Listen Port' #128

@kianbehzad

Description

@kianbehzad

Describe the bug
The initial state of the commandSocket works fine. However, after changing the command Listen Port grSim crashes after receiving new commands. (this issue happens most frequently in macOS )

To Reproduce
Steps to reproduce the behavior:
most frequently happens in macOS, rarely in ubuntu due to its memory management policy

  1. open both grSim and the client
  2. change command Listen Port from grSim
  3. connect to the new port from the client and send new commands.
  4. grSim will be terminated

Expected behavior
receive the commands from the new port and apply them.

Desktop

  • OS: macOS
  • Version 10.15

My opinion to fix the issue
add the following line in mainwindow.cpp -> reconnectCommandSocket function (before connecting signal and slot)

glwidget->ssl->commandSocket = commandSocket;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions