[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [certi-dev] Running Portico example under CERTI
From: |
Roth, Christoph |
Subject: |
AW: [certi-dev] Running Portico example under CERTI |
Date: |
Fri, 2 Jul 2010 16:23:34 +0200 |
> What CERTI versions do you have installed on your machine? Which version?
I use certi 3.3.3.
> Did you use the prebuild CERTI binaries (rtia, rtig, libRTI), or do you
> build CERTI on your own?
I built certi on my own on a ubuntu linux machine: kernel 2.2.24-28, gcc 4.2.4.
I think there are some files missing in the archive you sent me (especially the
CMakeLists.txt) :)
I also set the RTI_EXCEPTION=X now and changed the deleteObjectInstance
function. I get the following (for the federate that is initiated secondly), so
the reason is obviously before the deleteObjectInstance call:
HLALOG - 1278078405.295837 - Federate - RTItypes.cc> RTI::Exception
[FederationExecutionAlreadyExists,0x0] - reason=
HLALOG - 1278078405.296061 - Federate - RTItypes.cc> RTI::Exception
[FederationExecutionAlreadyExists,0x0] - reason=
RTIA:: RTIA has thrown RTIinternalError exception.
RTIA:: Reason: Unknown Message type received from RTIG.
UN Socket(EmettreUN) : : Broken pipe
HLALOG - 1278078405.316942 - Federate - RTItypes.cc> RTI::Exception
[RTIinternalError,0x0] - reason=NetworkError in tick() while sending
TICK_REQUEST: Error while sending UN message.
terminate called after throwing an instance of 'RTI::RTIinternalError'
RTI_EXCEPTION variable read, content = X
Didn't create federation, it already existed
Joined Federation as exampleFederate2
Handles initialized
RTIA: Statistics (processed messages)
List of federate initiated services
--------------------------------------------------
1 Message::JOIN_FEDERATION_EXECUTION (MSG#4)
1 Message::REGISTER_FEDERATION_SYNCHRONIZATION_POINT (MSG#6)
1 Message::GET_OBJECT_CLASS_HANDLE (MSG#112)
3 Message::GET_ATTRIBUTE_HANDLE (MSG#114)
1 Message::GET_INTERACTION_CLASS_HANDLE (MSG#116)
2 Message::GET_PARAMETER_HANDLE (MSG#118)
List of RTI initiated services
--------------------------------------------------
1 NetworkMessage::ANNOUNCE_SYNCHRONIZATION_POINT (MSG#13)
47 NetworkMessage::GET_FED_FILE (MSG#84)
Number of Federate messages : 9
Number of RTIG messages : 48
*** W ** Removing temporary file _RTIA_8044_testfom.fed on RTIA stop.
RTIA: Federate destroyed
TCP Socket 3 : total = 3706 Bytes sent
TCP Socket 3 : total = 5442 Bytes received
UDP Socket 5 : total = 0 Bytes sent
UDP Socket 5 : total = 0 Bytes received
> The example seems to run just fine.
Did you also try it using two federates? For only one federate it also works on
my machine. Do you think I should try 3.4?
Thanks!
Christoph
-----Ursprüngliche Nachricht-----
Von: address@hidden im Auftrag von Eric Noulard
Gesendet: Fr 02.07.2010 15:14
An: CERTI development discussions
Betreff: Re: [certi-dev] Running Portico example under CERTI
2010/7/2 Gotthard, Petr <address@hidden>:
> Hmmmm. Let me ask you few questions. ;-)
>
> What CERTI versions do you have installed on your machine? Which version?
As noted by Petr,
this should be specified almost every time when reporting a problem.
> Did you use the prebuild CERTI binaries (rtia, rtig, libRTI), or do you
> build CERTI on your own?
>
>
> Could you please send us the log files from the RTIG and the federate?
I can answer that one:
"HLALOG - 1278075976.802115 LibRTI::exampleFederate -
/DATA/ERIC/workspace/certi/libRTI/RTItypes.cc> RTI::Exception
[RTIinternalError,0x0] - reason=Calling deleteObjectInstance with Tag
NULL"
I did run the provided example with CERTI 3.40cvs (latest from CVS) on
a Linux 32 bits box.
The message is only displayed if we asked CERTI to display extensive
information about exception
by setting the environment variable RTI_EXCEPTION to "X"
with a bourne shell:
export RTI_EXCEPTION=X
Now if I replace the
rtiamb->deleteObjectInstance( objectHandle, NULL);
with
rtiamb->deleteObjectInstance( objectHandle, "unused" );
The example seems to run just fine.
You'll find attach the modified example with an extra CMakeLists.txt which may
be used to compile it.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
<<winmail.dat>>