OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000943OMNeT++simulation kernelpublic2015-12-11 13:442017-01-11 20:07
till 
rhornig 
highcrashalways
resolvedfixed 
5.0b1 
5.0 
0000943: cDatarateChannel: busy vector failes on forceTransmissionFinishTime()
When using forceTransmissionFinishTime() in cDatarateChannel and afterwards receiving a packet with processMessage() before the last txFinishTime would be over the simulation fails due to wrong order of timestamps in the vector.

The problem is that txFinishTime is already emitted on processMessage(), but at that time it cannot be assured that the transmissionFinishTime is not forced.
Proposed solution is attached:

- emit txFinishTime only on next processMessage() or finish() (for last emit)
No tags attached.
? cdataratechannel.h (7,337) 2015-12-11 13:44
https://dev.omnetpp.org/bugs/file_download.php?file_id=188&type=bug
patch cdataratechannel.h.patch (431) 2015-12-11 13:44
https://dev.omnetpp.org/bugs/file_download.php?file_id=189&type=bug
patch cdataratechannel.cc.patch (1,368) 2015-12-11 13:45
https://dev.omnetpp.org/bugs/file_download.php?file_id=190&type=bug
Issue History
2015-12-11 13:44tillNew Issue
2015-12-11 13:44tillFile Added: cdataratechannel.h
2015-12-11 13:44tillFile Added: cdataratechannel.h.patch
2015-12-11 13:45tillFile Added: cdataratechannel.cc.patch
2015-12-11 13:47tillNote Added: 0001155
2015-12-11 14:53tillNote Added: 0001156
2016-04-01 14:13rhornigStatusnew => resolved
2016-04-01 14:13rhornigFixed in Version => 5.0
2016-04-01 14:13rhornigResolutionopen => fixed
2016-04-01 14:13rhornigAssigned To => rhornig

Notes
(0001155)
till   
2015-12-11 13:47   
Sorry, the header upload was a mistake, I wanted to select the patch file
(0001156)
till   
2015-12-11 14:53   
Please note: Patch is only compatible with OMNeT++ 5.0