-
Notifications
You must be signed in to change notification settings - Fork 21
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
Load Checkpoint Fails #1759
Comments
Hi! I'm facing the same issue and I use Ubuntu 22.04. With the same scenario (And latest trick from the main branch at the time of writing this) I get the following error output: pc@pc:~/trick/trick_sims/Cannon/SIM_cannon_analytic$ ./S_main_Linux_11.4_x86_64.exe RUN_test/input.py
/home/pc/trick//bin/trick-simcontrol pc 43895 &
|L 1|2024/08/09,14:27:42|pc| |T 0|0.000000| Freeze ON. Simulation time holding at 0.000000 seconds.
Gtk-Message: 14:27:43.256: Failed to load module "canberra-gtk-module"
|L 1|2024/08/09,14:27:50|pc| |T 0|0.000000| Freeze OFF.
|L 1|2024/08/09,14:27:52|pc| |T 0|1.300000| Freeze ON. Simulation time holding at 1.300000 seconds.
|L 1|2024/08/09,14:27:57|pc| |T 0|1.300000| Dumped ASCII Checkpoint chkpnt_1.30.
|L 1|2024/08/09,14:28:00|pc| |T 0|1.300000| Freeze OFF.
|L 1|2024/08/09,14:28:01|pc| |T 0|2.100000| Freeze ON. Simulation time holding at 2.100000 seconds.
|L 1|2024/08/09,14:28:10|pc| |T 0|2.100000| Load checkpoint file /home/pc/trick/trick_sims/Cannon/SIM_cannon_analytic/RUN_test/chkpnt_1.30.
|L 1|2024/08/09,14:28:10|pc| |T 0|2.100000| Finished loading checkpoint file. Calling restart jobs.
restart message port = 41829
|L 1|2024/08/09,14:28:10|pc| |T 0|1.300000| restart variable server message port = 43895
|L 1|2024/08/09,14:28:12|pc| |T 0|1.300000| Freeze OFF.
Process terminated by signal SIGSEGV
[New LWP 85064]
[New LWP 85065]
[New LWP 85070]
[New LWP 85113]
[New LWP 85142]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007d86920ea42f in __GI___wait4 (pid=85268, stat_loc=stat_loc@entry=0x7ffc80d46768, options=options@entry=0, usage=usage@entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
30 ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory.
Thread 6 (Thread 0x7d868dcc8640 (LWP 85142) "VS_SimControl2"):
#0 0x00007d86920e57f8 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7d868dcc7ce0, rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
#1 0x00007d86920ea677 in __GI___nanosleep (req=req@entry=0x7d868dcc7ce0, rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2 0x00007d869211bf2f in usleep (useconds=<optimized out>) at ../sysdeps/posix/usleep.c:31
#3 0x00006055ed571b68 in Trick::VariableServerSessionThread::thread_body() ()
#4 0x00006055ed55d572 in Trick::ThreadBase::thread_helper(void*) ()
#5 0x00007d8692094ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6 0x00007d8692126850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Thread 5 (Thread 0x7d868e4c9640 (LWP 85113) "VS_SimControl"):
#0 0x00007d86920e57f8 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7d868e4c8ce0, rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
#1 0x00007d86920ea677 in __GI___nanosleep (req=req@entry=0x7d868e4c8ce0, rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2 0x00007d869211bf2f in usleep (useconds=<optimized out>) at ../sysdeps/posix/usleep.c:31
#3 0x00006055ed571b68 in Trick::VariableServerSessionThread::thread_body() ()
#4 0x00006055ed55d572 in Trick::ThreadBase::thread_helper(void*) ()
#5 0x00007d8692094ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6 0x00007d8692126850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Thread 4 (Thread 0x7d868ecca640 (LWP 85070) "DR_Writer"):
#0 __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x6055edc34288 <trick_data_record+616>) at ./nptl/futex-internal.c:57
#1 __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x6055edc34288 <trick_data_record+616>) at ./nptl/futex-internal.c:87
#2 __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x6055edc34288 <trick_data_record+616>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3 0x00007d8692093a41 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x6055edc34290 <trick_data_record+624>, cond=0x6055edc34260 <trick_data_record+576>) at ./nptl/pthread_cond_wait.c:503
#4 ___pthread_cond_wait (cond=0x6055edc34260 <trick_data_record+576>, mutex=0x6055edc34290 <trick_data_record+624>) at ./nptl/pthread_cond_wait.c:627
#5 0x00006055ed4ca798 in Trick::DRDWriterThread::thread_body() ()
#6 0x00006055ed55d572 in Trick::ThreadBase::thread_helper(void*) ()
#7 0x00007d8692094ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#8 0x00007d8692126850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Thread 3 (Thread 0x7d868f4cb640 (LWP 85065) "MessageListen"):
#0 0x00007d869211b63d in __GI___select (nfds=6, readfds=0x7d868f4cad00, writefds=0x0, exceptfds=0x0, timeout=0x7d868f4cacf0) at ../sysdeps/unix/sysv/linux/select.c:69
#1 0x00006055ed5206eb in Trick::MessageTCDeviceListenThread::thread_body() ()
#2 0x00006055ed55d572 in Trick::ThreadBase::thread_helper(void*) ()
#3 0x00007d8692094ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#4 0x00007d8692126850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Thread 2 (Thread 0x7d868fccc640 (LWP 85064) "VarServListen"):
#0 0x00007d869211b63d in __GI___select (nfds=7, readfds=0x7d868fccb7f0, writefds=0x0, exceptfds=0x0, timeout=0x7d868fccb7e0) at ../sysdeps/unix/sysv/linux/select.c:69
#1 0x00006055ed5ebb9c in SystemInterface::select(int, fd_set*, fd_set*, fd_set*, timeval*) ()
#2 0x00006055ed8c7582 in Trick::TCPClientListener::checkForNewConnections() ()
#3 0x00006055ed565cd2 in Trick::VariableServerListenThread::thread_body() ()
#4 0x00006055ed55d572 in Trick::ThreadBase::thread_helper(void*) ()
#5 0x00007d8692094ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6 0x00007d8692126850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Thread 1 (Thread 0x7d8692e1d740 (LWP 85063) "S_main_Linux_11"):
#0 0x00007d86920ea42f in __GI___wait4 (pid=85268, stat_loc=stat_loc@entry=0x7ffc80d46768, options=options@entry=0, usage=usage@entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1 0x00007d86920ea3ab in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc@entry=0x7ffc80d46768, options=options@entry=0) at ./posix/waitpid.c:38
#2 0x00007d8692050bdb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:171
#3 0x00006055ed4f1110 in Trick::Executive::signal_handler(int) ()
#4 0x00006055ed4f2603 in sig_hand(int) ()
#5 <signal handler called>
#6 0x00006055ed4d003e in Trick::DataRecordGroup::data_record(double) ()
#7 0x00006055ed4cd8bc in Trick::DataRecordGroup::call_function(Trick::JobData*) ()
#8 0x00006055ed4f4789 in Trick::FrameDataRecordGroup::call_function(Trick::JobData*) ()
#9 0x00006055ed557bdf in Trick::JobData::call() ()
#10 0x00006055ed4e7504 in Trick::Executive::loop_single_thread() ()
#11 0x00006055ed4e6fa2 in Trick::Executive::loop() ()
#12 0x00006055ed5fd000 in master(int, char**) ()
#13 0x00006055ed41948b in main ()
A debugging session is active.
Inferior 1 [process 85063] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (process 85063) detached] |
Did you mean that trick 19.6.0 works for the stated |
Yes. |
Ok, looks to me 19.7.2 and earlier work for the stated scenario however the latest is having an issue. Will look into this. |
Give it a try by turning off frame log |
I have turned frame log off (I think this is the right way please correct me if i used wrong https://nasa.github.io/trick/documentation/simulation_capabilities/Frame-Logging.html ) and Here is my input.py ->
I got the same result:
|
You got frame logging commands right. By default, it's off. However, |
Got it. I also commented out in realtime.py and it worked for cannon analytic. Btw just curious, what is frame log for? |
The |
We're still investigating this but I wanted to mention it so that you don't think we've forgotten about it. |
Hello,
I use Ubuntu 24.04 and latest master branch of trick (>= 19.7.2). I just wanted to dump and load checkpoint using your sim control panel with one of trick sims
trick/trick_sims/Cannon/SIM_cannon_analytic
but I got several errors when loading checkpoint.Note1: I have clean build of trick. Only change I made is from the Issue #1729 where @hchen99 is suggested to change a line from
configure
file.Note2: I have tried with Ubuntu 22.04 19.6.0 release and I was able to load checkpoint without any issue. (No change made on trick source)
Steps to reproduce:
1-
trick-CP
at this simtrick/trick_sims/Cannon/SIM_cannon_analytic
2- run
./S_main_*.exe ./RUN_test/input.py
3- Click
Start
and wait a few seconds.4- Click
Freeze
5- Click
Dump Chkpnt
and save sth like thatchkpnt_2.80
6- Click
Start
and wait a few seconds.7- Click
Freeze
8- Click
Load Chkpnt
and load the one you savedchkpnt_2.80
9- after waiting a sec, sim time should show the checkpoint time
10- Click
Start
And this is the resulting error:
The text was updated successfully, but these errors were encountered: