Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Socket assertion failure
10-03-2016, 08:42 PM
Post: #1
Socket assertion failure
A user has reported occasional crashes caused by this error:

Os/Posix/Os.c:663: CreateHandle: Assertion `aSocket >= 0 && aSocket < 1024' failed.

There is no more information at present. Any suggestions for what might be causing this would be much appreciated.
Find all posts by this user
14-03-2016, 05:08 PM
Post: #2
RE: Socket assertion failure
(10-03-2016 08:42 PM)simoncn Wrote:  A user has reported occasional crashes caused by this error:

Os/Posix/Os.c:663: CreateHandle: Assertion `aSocket >= 0 && aSocket < 1024' failed.

There is no more information at present. Any suggestions for what might be causing this would be much appreciated.

Apologies for the slow reply.

The assertion suggests ohNet is leaking sockets. This'd presumably point towards incorrect/missing exception handling in code that creates/destroys its own sockets (e.g. SSDP announcements, action invocation, (un)subscribing).

If it was possible to get any logs from the user with DebugLevel.Error logging enabled, that might help show us which area(s) to try code reviewing.
Find all posts by this user
17-05-2016, 09:37 AM
Post: #3
RE: Socket assertion failure
To close the loop on this, it was not caused by a problem in ohNet. MinimServer was leaking file descriptors.
Find all posts by this user
07-02-2017, 05:59 AM (This post was last modified: 24-08-2017 12:27 PM by Shawest.)
Post: #4
RE: Socket assertion failure
(17-05-2016 09:37 AM)simoncn Wrote:  To close the loop on this, it was not caused by I prefer the crazy Bulk a problem in ohNet. MinimServer was leaking file descriptors.

What can be done to stop this leak?
Find all posts by this user


Forum Jump: