Skip to content

IBC hangs on windows #357

@pps83

Description

@pps83

in my tests lately ibc stopped working today.
I run it this way:

D:\work-pps\tws-api\vs> set TWSUSERID=user-sim && set TWSPASSWORD=pass && Ibc.bat
+==============================================================================
+
+ IBC version 3.23.0
+
+ Running GATEWAY 1046 at 15-May-26 17:55:23.49
+

No output after that line. With AI debugging it says that code to detect day of week hangs:

● THIS IS THE BUG. wmic hangs forever on your Windows build (10.0.26200, which is 24H2+). IBC's getDayOfWeek.bat calls wmic path win32_localtime get DAYOFWEEK /format:list which hangs. That's why:

  - Banner prints up to "+ Running GATEWAY..."
  - Then nothing - stuck inside getDayOfWeek.bat -> wmic hang
  - No log file ever gets written (the LOG_FILE line comes AFTER getDayOfWeek)
  - No Java spawned (we never reach StartIBC.bat)
  - Our waitForGwReady polls forever because cmd.exe is alive but doing nothing useful

If I simply run wmic path win32_localtime get DAYOFWEEK /format:list it does hung.

Ibc.bat is autogenerated by my code:

@echo off
setlocal enableextensions enabledelayedexpansion
set TWS_MAJOR_VRSN=1046
set CONFIG=D:\work-pps\tws-api\vs\Ibc.ini
set IBC_PATH=C:\IBC
set TWS_PATH=C:\Jts
set LOG_PATH=C:\IBC\Logs
set TWS_SETTINGS_PATH=
set TRADING_MODE=
set TWOFA_TIMEOUT_ACTION=exit
set FIXUSERID=
set FIXPASSWORD=
set JAVA_PATH=
set HIDE=
set APP=GATEWAY
set INLINE=1
call "%IBC_PATH%\scripts\DisplayBannerAndLaunch.bat"
:: HASH=ed0285b3958ae713

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions