Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start Trick TV (Trick 15.2.3) #374

Closed
translunar opened this issue Jan 11, 2017 · 4 comments
Closed

Cannot start Trick TV (Trick 15.2.3) #374

translunar opened this issue Jan 11, 2017 · 4 comments

Comments

@translunar
Copy link

When I start up Trick TV, turning on the control panel and have it freeze automatically at sim start, TV can't connect.

image

image

Here's what I'm getting:

./S_main_Linux_4.7.exe RUN_rendezvous/input_prox_ops.py
/home/mohawkjohn/trick/bin/sim_control   axiom-dev 34176 &
|L   1|2017/01/11,15:18:49|axiom-dev| |T 0|0.000000| Freeze ON. Simulation time holding at 0.000000 seconds.
|L   3|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| Variable Server: var_add cant add "trick_cmd_args.cmd_args.default_dir" because its a composite variable.
|L   3|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| Variable Server: var_add cant add "trick_cmd_args.cmd_args.cmdline_name" because its a composite variable.
|L   3|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| Variable Server: var_add cant add "trick_cmd_args.cmd_args.input_file" because its a composite variable.
|L   3|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| Variable Server: var_add cant add "trick_cmd_args.cmd_args.run_dir" because its a composite variable.
|L   2|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| 0x7f7824002f50 Variable Server string buffer[8192] too small for symbol trick_cmd_args.cmd_args.default_dir, TRUNCATED IT.
|L   2|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| 0x7f7824002f50 Variable Server string buffer[8192] too small for symbol trick_cmd_args.cmd_args.cmdline_name, TRUNCATED IT.
|L   2|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| 0x7f7824002f50 Variable Server string buffer[8192] too small for symbol trick_cmd_args.cmd_args.input_file, TRUNCATED IT.
|L   2|2017/01/11,15:18:50|axiom-dev| |T 0|0.000000| 0x7f7824002f50 Variable Server string buffer[8192] too small for symbol trick_cmd_args.cmd_args.run_dir, TRUNCATED IT.
Exception in thread "Thread-1" java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:592)
	at java.lang.Integer.parseInt(Integer.java:615)
	at trick.sniffer.SimulationInformation.getMajorVersionNumber(SimulationInformation.java:82)
	at trick.common.ui.panels.ConnectionStatusBar$3$1.simulationAdded(ConnectionStatusBar.java:95)
	at trick.sniffer.SimulationSniffer.run(SimulationSniffer.java:100)
|L   3|2017/01/11,15:19:02|axiom-dev| |T 0|0.000000| Variable Server: var_add cant add "trick_cmd_args.cmd_args.default_dir" because its a composite variable.
|L   2|2017/01/11,15:19:02|axiom-dev| |T 0|0.000000| 0x7f78240c6ba0 Variable Server string buffer[8192] too small for symbol trick_cmd_args.cmd_args.default_dir, TRUNCATED IT.

I get the same errors if I try to have it connect by pushing the connect button myself.

Here's text of the status messages in the Sim Control:

|L   3|2017/01/11,15:19:02|axiom-dev| |T 0|0.000000| Variable Server: var_add cant add "trick_cmd_args.cmd_args.default_dir" because its a composite variable.
|L   2|2017/01/11,15:19:02|axiom-dev| |T 0|0.000000| 0x7f78240c6ba0 Variable Server string buffer[8192] too small for symbol trick_cmd_args.cmd_args.default_dir, TRUNCATED IT.
|L   3|2017/01/11,15:19:23|axiom-dev| |T 0|0.000000| Variable Server: var_add cant add "trick_cmd_args.cmd_args.default_dir" because its a composite variable.
|L   2|2017/01/11,15:19:23|axiom-dev| |T 0|0.000000| 0x7f78240c6ba0 Variable Server string buffer[8192] too small for symbol trick_cmd_args.cmd_args.default_dir, TRUNCATED IT.

I'm using Trick 15.2.3.

@alexlin0
Copy link
Contributor

Can you post the a partial listing of ${TRICK_HOME}/trick_source/sim_services/CommandLineArguments/io_src/io_CommandLineArguments.cpp.

I only need to see the contents of "ATTRIBUTES attrTrick__CommandLineArguments[] = { ... }"

@translunar
Copy link
Author

Sure.

ATTRIBUTES attrTrick__CommandLineArguments[] = {
{ "output_dir_timestamped", "bool", "--", "", "",
  "record data into a separate timestamped directory",
  15,TRICK_BOOLEAN,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "default_dir", "std::__cxx11::basic_string", "--", "", "",
  "Directory of executable",
  15,TRICK_STRUCTURED,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "cmdline_name", "std::__cxx11::basic_string", "--", "", "",
  "Name of sim from the cmdline",
  15,TRICK_STRUCTURED,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "run_dir", "std::__cxx11::basic_string", "--", "", "",
  "Run directory name \"RUN_<unique_tag>\"",
  15,TRICK_STRUCTURED,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "user_output_dir", "std::__cxx11::basic_string", "--", "", "",
  "user specified output dir",
  15,TRICK_STRUCTURED,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "time_stamp_dir", "std::__cxx11::basic_string", "--", "", "",
  "time stamp sub directory",
  15,TRICK_STRUCTURED,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "output_dir", "std::__cxx11::basic_string", "--", "", "",
  "Directory name to hols S_job_execution, chkpnt_* files, and the rt logging files",
  15,TRICK_STRUCTURED,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "input_file", "std::__cxx11::basic_string", "--", "", "",
  "Simulation input data file name",
  15,TRICK_STRUCTURED,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} },
{ "", "", "--", "", "",
  "",
  3,TRICK_VOID,0,0,0,Language_CPP,0,
  0,NULL,0,{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}} } };

@alexlin0
Copy link
Contributor

From what I see, this is the same issue as #352

@alexlin0
Copy link
Contributor

Closing this issue because I have confirmed the fix for #352 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants