Semaphore Error only with Wired LAN

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Grasor
Posts: 1
Joined: October 23rd, 2022, 1:38 am

Semaphore Error only with Wired LAN

Post by Grasor »

Hello All,

I've been playing Wesnoth for a couple of months now playing on the official server. Yesterday I switched my desktop connection from WiFi to wired ethernet. Everything worked extremely well, until I tried to play multiplayer Wesnoth. Within 15 seconds of it being my turn, I get disconnected with the following errors in sequence....

"Save Game"
This game has been ended.
Reason: The semaphore timeout period has expired.
Do you want to save the game?

then

"Error"
Connection failed: The semaphore timeout period has expired.

This happened four games in a row before I switched back to WiFi and then the error stopped occurring.

I've tested for packet loss and didn't drop any packets.
I don't see anything in my log files that looks suspect.
I'm able to play other modern games using my wired connection without issue.

The last post I found about this on this forum was years ago.

Any ideas what could be causing this? I'm not familiar with semaphore errors but did some research and looks like a semaphore is a programming technique. I don't see how using a wired ethernet connection would affect that, so all things considered I am treating this like a bug.

Required Details for a Bug Report

Wesnoth Build Information

The Battle for Wesnoth version 1.16.6 x86_64
Running on Microsoft Windows 11 22H2 (10.0.22621) x86_64
Distribution channel: Steam

Game paths
==========

Data dir: C:\Program Files (x86)\Steam\steamapps\common\wesnoth
User config dir: C:\Users\USER\Documents\My Games\Wesnoth1.16
User data dir: C:\Users\USER\Documents\My Games\Wesnoth1.16
Saves dir: C:\Users\USER\Documents\My Games\Wesnoth1.16\saves
Add-ons dir: C:\Users\USER\Documents\My Games\Wesnoth1.16\data\add-ons
Cache dir: C:\Users\USER\Documents\My Games\Wesnoth1.16\cache

Libraries
=========

Boost: 1.79
Lua: 5.4.2
OpenSSL/libcrypto: 1.1.1o (runtime 1.1.1o)
Cairo: 1.17.6 (runtime 1.17.6)
Pango: 1.50.7 (runtime 1.50.7)
SDL: 2.0.22 (runtime 2.0.22)
SDL_image: 2.0.5 (runtime 2.0.5)
SDL_mixer: 2.0.4 (runtime 2.0.4)

Features
========

Lua console completion: yes
Win32 notifications back end: yes

Current video settings
======================

SDL video drivers: [windows] dummy
Window size: 2560x1440
Screen refresh rate: 165
Screen dots per inch: 96.000000x96.000000
Screen dpi scale factor: 1.000000x1.000000

Current audio settings
======================

SDL audio drivers: [wasapi] directsound
Number of channels: 2
Output rate: 48000 Hz
Sample format: signed 16 bit little-endian
Sample size: 4096 bytes

Installed add-ons
=================

No add-ons installed.


Example Game Log 1

Code: Select all

Battle for Wesnoth v1.16.6 x86_64
Started on Tue Nov 29 21:55:58 2022

Automatically found a possible data directory at C:\Program Files (x86)\Steam\steamapps\common\wesnoth

Data directory:               C:\Program Files (x86)\Steam\steamapps\common\wesnoth
User configuration directory: C:\Users\USER\Documents\My Games\Wesnoth1.16
User data directory:          C:\Users\USER\Documents\My Games\Wesnoth1.16
Cache directory:              C:\Users\USER\Documents\My Games\Wesnoth1.16\cache

Setting mode to 2560x1440
Checking lua scripts... ok
20221129 21:56:36 error network: caught network error: The semaphore timeout period has expired
20221129 21:56:36 error general: Connection failed: The semaphore timeout period has expired
Example Game Log 2

Code: Select all

Battle for Wesnoth v1.16.6 x86_64
Started on Tue Nov 29 21:40:11 2022

Automatically found a possible data directory at C:\Program Files (x86)\Steam\steamapps\common\wesnoth

Data directory:               C:\Program Files (x86)\Steam\steamapps\common\wesnoth
User configuration directory: C:\Users\USER\Documents\My Games\Wesnoth1.16
User data directory:          C:\Users\USER\Documents\My Games\Wesnoth1.16
Cache directory:              C:\Users\USER\Documents\My Games\Wesnoth1.16\cache

Setting mode to 2560x1440
Checking lua scripts... ok
20221129 21:40:48 error network: caught network error: The semaphore timeout period has expired
20221129 21:40:48 error general: Connection failed: The semaphore timeout period has expired
20221129 21:45:22 error network: caught network error: The semaphore timeout period has expired
20221129 21:45:22 error general: Connection failed: The semaphore timeout period has expired
20221129 21:46:30 error network: caught network error: The semaphore timeout period has expired
20221129 21:46:30 error general: Connection failed: The semaphore timeout period has expired
Example Game Log 3

Code: Select all

Battle for Wesnoth v1.16.6 x86_64
Started on Tue Nov 29 20:51:32 2022

Automatically found a possible data directory at C:\Program Files (x86)\Steam\steamapps\common\wesnoth

Data directory:               C:\Program Files (x86)\Steam\steamapps\common\wesnoth
User configuration directory: C:\Users\USER\Documents\My Games\Wesnoth1.16
User data directory:          C:\Users\USER\Documents\My Games\Wesnoth1.16
Cache directory:              C:\Users\USER\Documents\My Games\Wesnoth1.16\cache

Setting mode to 2560x1440
Checking lua scripts... ok
20221129 20:52:16 error network: caught network error: The semaphore timeout period has expired
20221129 20:52:16 error general: Connection failed: The semaphore timeout period has expired
20221129 21:01:44 error network: caught network error: The semaphore timeout period has expired
20221129 21:01:44 error general: Connection failed: The semaphore timeout period has expired
20221129 21:05:56 error gui/layout: Failed to fit vertical list to requested rect; expected bottom edge was 200, actual bottom edge was 118 (top edge is 118)
20221129 21:06:40 error network: caught network error: The semaphore timeout period has expired
20221129 21:06:40 error general: Connection failed: The semaphore timeout period has expired
How to reproduce problem

1. Enable Wired LAN Connection
2. Disable WiFi Adapter
3. Launch Multiplayer Game on Official Server, other players can be Human or AI, doesn't matter.
4. Wait until it's my turn.
5. 10-15 Seconds Later error occurs.

-G
User avatar
Pentarctagon
Project Manager
Posts: 5531
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Semaphore Error only with Wired LAN

Post by Pentarctagon »

If the only difference is whether you use wired vs wireless, then it's almost certainly an issue with your router settings. Another thing you can try would be to switch to the 1.17 branch (steam library -> right click Wesnoth -> properties -> Betas -> 1.17) and see if adjusting the "Server disconnect timeout" in the advanced preferences helps at all.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply