STKCodeExamples icon indicating copy to clipboard operation
STKCodeExamples copied to clipboard

STK engine flag incorrect + what is required for interactive mode in console?

Open ChristopherRabotin opened this issue 3 months ago • 1 comments

Describe the bug

In https://github.com/AnalyticalGraphicsInc/STKCodeExamples/tree/master/StkEngineContainerization/linux/stk-engine-baseline, the documentation says that the flag should be --nographics, but it's actually in camel case as --noGraphics.

# ./bin/stkruntime --help
Failed to load libX11.so.6 which is required to use graphics. Switching to noGraphics mode.
usage: stkruntime <Options>
STK Runtime gRPC Server

-portvalue, --grpcPort=value  gRPC Port number, default is 40704.
-hostvalue, --grpcHost=value  IP address or DNS hostname to start gRPC server,
                              default is 0.0.0.0. Use "localhost" to allow
                              external connections on the default IP.
-noGraphics, --noGraphics     Disable graphics (which are on, by default).
-h, --help                    Display help information.

Question How can I pass a command to the stk console? If I use the --interactive flag (which is not documented in the engine, cf. the help message above), then the command returns immediately:

/opt/stk_engine_linux/stk12.9.0 # ./bin/stkruntime connectconsole --interactive --noGraphics
/opt/stk_engine_linux/stk12.9.0 #

If I don't specify it, STK engine starts ... and just hangs.

# ./bin/stkruntime connectconsole --noGraphics
STK Runtime gRPC Server listening on 0.0.0.0:40704

^C/opt/stk_engine_linux/stk12.9.0 #

Same behavior if I try to specify the STK connect command at the end:

# ./bin/stkruntime connectconsole --noGraphics "GetSTKVersion /"
STK Runtime gRPC Server listening on 0.0.0.0:40704
^C/opt/stk_engine_linux/stk12.9.0 #

To Reproduce Install STK binaries v12.9.0 on a Linux system without X11.

Desktop (please complete the following information): Linux ("Wolfie" minimalistic distribution for containers), STK 12.9.0

ChristopherRabotin avatar Oct 01 '25 18:10 ChristopherRabotin

On another note, can the gRPC interface to STK serve as a replacement to the overall API? If so, how can I use it? Thanks

ChristopherRabotin avatar Oct 01 '25 18:10 ChristopherRabotin