Fri 19 Nov 2010 02:24:46 PM UTC, comment #10:
Fixed in PyHLA 1.1.0
|
Sun 17 Oct 2010 03:40:24 PM UTC, comment #9:
Hi All!
It worked! This crash bug is really fixed!
The problem was with "install_manifest.txt" generated by cmake ...
Rather than build each sentence on a single line:
"/usr/lib/python2.6/dist-packages/hla/__init__.py"
Cmake inserts a "Line-Feed" on each line before hla directory:
"/usr/lib/python2.6/dist-packages^J/hla/__init__.py"
Then, PyHLA files were installed on the wrong place.
-------------------------------------------------------
odracir@nbi5lenovo:/usr/lib/python2.6$ pwd
/usr/lib/python2.6
odracir@nbi5lenovo:/usr/lib/python2.6$ tree ./dist-packages?
./dist-packages^J
`-- hla
|-- _init_.py
|-- omt
| |-- array.py
| |-- basic.py
| |-- enumerated.py
| |-- _init_.py
| `-- record.py
|-- _omt.so
|-- rti
| `-- _init_.py
`-- _rti.so
-------------------------------------------------------
Moving directory "hla" from "/usr/lib/python2.6/dist-packages^J/" to "/usr/lib/python2.6/dist-packages" makes it work!
Thank you very much!
|
Sat 16 Oct 2010 02:19:10 AM UTC, comment #8:
I've tried what you suggested (PyHLA-1.1.0-Source.tar.gz), but unfortunately I could not make it work properly. (Fatal Python error: deallocating None -> again!)
I think that my system migth be broken in some way ...
Next Monday I'm going to try again on another system installed from scratch.
Thank you very much for your quick replies.
|
Fri 15 Oct 2010 03:29:23 PM UTC, comment #7:
Hello all;
I agree that my original bug has been fixed.
Previously a print sys.getrefcount(None) statement before the rtia.tick(1.0, 1.0) in uav-send.py produced decreasing reference counts, and the program crashed when the reference count approached zero.
Now with both the CVS HEAD and release 1.1.0 I get a constant reference count and no crash.
I'm using Python 2.6.6 on Windows XP Professional x64 with SP2.
Thanks Petr.
|
Fri 15 Oct 2010 09:15:42 AM UTC, comment #6:
Hello,
the "deallocating None" crash is a pure Python issue, so CERTI version you use doesn't matter, but please check you're really using latest PyHLA. John confirmed that the newly released PyHLA 1.1.0 doesn't suffer from this bug, latest CVS HEAD version is also fine.
http://download.savannah.gnu.org/releases/certi/contrib/PyHLA
Petr
|
Thu 14 Oct 2010 10:14:35 PM UTC, comment #5:
Hi All,
I'm not able to reproduce the problem
here.
I'm using CERTI CVS and PyHLA CVS as of now.
Python 2.6.5
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Ubuntu 10.04 with 2.6.32-22-generic
I did slightly modified uav-send.py in order to
see evolution in uav-receive.py:
REFLECT (1, 2, 3)
REFLECT 4085.13989258
REFLECT text
REFLECT (1, 2, 3)
REFLECT 4086.13989258
REFLECT text
...
I attach the modified file to the tracker.
(file #21679)
|
Thu 14 Oct 2010 07:08:48 PM UTC, comment #4:
The demo application still crashes ...
I am using: CERTI RTIG 3.4.0cvs and PyHLA from CVS (CVS checkout at 10/14/2010)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Kubuntu Linux 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux
=============================================
$ python uav-send.py
Create ambassador
<rti.RTIAmbassador object at 0xb77c3140>
Federation already exists.
PROVIDE UAV (<__main__.MyAmbassador object at 0x8f3be14>, <rti.ObjectHandle=1>, ())
Fatal Python error: deallocating None
RTIA:: RTIA has thrown NetworkError exception.
RTIA:: Reason: Connection closed by client.
RTIA: Statistics (processed messages)
List of federate initiated services
--------------------------------------------------
Abortado
1 Message::OPEN_CONNEXION (MSG#1)
1 Message::JOIN_FEDERATION_EXECUTION (MSG#5)
1 Message::PUBLISH_OBJECT_CLASS (MSG#29)
1 Message::REGISTER_OBJECT_INSTANCE (MSG#41)
1010 Message::UPDATE_ATTRIBUTE_VALUES (MSG#42)
1 Message::GET_OBJECT_CLASS_HANDLE (MSG#113)
3 Message::GET_ATTRIBUTE_HANDLE (MSG#115)
1009 Message::TICK_REQUEST (MSG#142)
1 Message::TICK_REQUEST_NEXT (MSG#143)
List of RTI initiated services
--------------------------------------------------
1 NetworkMessage::PROVIDE_ATTRIBUTE_VALUE_UPDATE (MSG#84)
Number of Federate messages : 2028
Number of RTIG messages : 1
TCP Socket 3 : total = 88115 Bytes sent
TCP Socket 3 : total = 47889 Bytes received
UDP Socket 5 : total = 0 Bytes sent
UDP Socket 5 : total = 0 Bytes received
|
Mon 04 Oct 2010 09:24:08 PM UTC, comment #3:
Now it's really fixed. :-)
|
Tue 14 Sep 2010 03:30:44 PM UTC, comment #2:
The demo application still crashes after 1203 updates.
|
Fri 10 Sep 2010 09:08:23 PM UTC, comment #1:
The bug should be fixed now in CVS. I forgot to do Py_INCREF before returning Py_None values.
|
Tue 07 Sep 2010 04:22:40 PM UTC, original submission:
I'm using CERTI 3.3.3, with PyHLA 1.0.0, and Python 2.6.6 on Windows XP Professional x64 with SP2
The uav-send demo application runs 1203 updates and then python crashes.
The uav-send application writes the following to the console:
Fatal Python error: deallocating None
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
A Windows message box pops up with the following:
python.exe has encounted a problem and needs to close...
The uav-receive application simply stops updating.
|