Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting SocketError 'LocalSocket::connectToServer: Invalid name' for ''
Forum Updated to NodeBB v4.3 + New Features

Getting SocketError 'LocalSocket::connectToServer: Invalid name' for ''

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 660 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hello,
    I am totally new to QT and working on one issue which is related to socket error.
    We are actually creating the local socket for integration test.
    While running the integration test, we are getting the below socket error.
    SocketError 'LocalSocket::connectToServer: Invalid name' for ''
    Could not connect local socket.
    Could not set up shared ring buffer.
    Unable to push data into SharedBuffer 8

    Please help me to understand this issue.

    jsulmJ 1 Reply Last reply
    0
    • ? Guest

      Hello,
      I am totally new to QT and working on one issue which is related to socket error.
      We are actually creating the local socket for integration test.
      While running the integration test, we are getting the below socket error.
      SocketError 'LocalSocket::connectToServer: Invalid name' for ''
      Could not connect local socket.
      Could not set up shared ring buffer.
      Unable to push data into SharedBuffer 8

      Please help me to understand this issue.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Please show the code. Are you using an empty string as server name?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • P Offline
        P Offline
        Pia_
        wrote on last edited by
        #3

        I dont think server name is empty.
        I found https://bugreports.qt.io/browse/QTCREATORBUG-17945 while searching about this error.
        in one of the comment, they have mentioned about timing issue.
        https://bugreports.qt.io/browse/QTCREATORBUG-17945?focusedCommentId=352607&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-352607

        if its timing related issue where pipe name is not yet constructed completely and at that time it's trying to call the connectToServer then it will throw an error.
        If my understand is correct, then what can we do to resolve this error?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved