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

Example network MyConfig throws exception #2

Open
valbucci opened this issue Feb 26, 2022 · 2 comments
Open

Example network MyConfig throws exception #2

valbucci opened this issue Feb 26, 2022 · 2 comments

Comments

@valbucci
Copy link

valbucci commented Feb 26, 2022

Hi, I tried running MyConfig, but I get the following error:

(omnetpp::cChannel)temp: Fatal: Direct deletion of a channel object is illegal, use cGate's disconnect() or reconnectWith() instead; ABORTING -- in module (SimpleUnderlayConfigurator) SimpleUnderlayNetwork.underlayConfigurator (id=2), at t=0s, event #2

I ran the debugger and the issue seems to happen in SimpleNodeEntry::SimpleNodeEntry() at SimpleNodeEntry.cc:143 where tempRx and tempTx are deleted.

Do you know how I can fix this?

@valbucci
Copy link
Author

valbucci commented Feb 26, 2022

I think this is not a solution, but I figured that commenting out those lines gets rid of the error, though, I'm not sure if the simulation environment will work appropriately after this change.

@valbucci
Copy link
Author

valbucci commented Feb 26, 2022

I think this is not a solution, but I figured that commenting out those lines gets rid of the error, though, I'm not sure if the simulation environment will work appropriately after this change.

I didn't like this fix, so I dug a bit deeper and I think it must have something to do with an update from OMNeT++ (I'm running version 5.7).
In /OverSim/src/underlay/simpleunderlay/SimpleNodeEntry.cc I replaced the lines 143-144:
delete tempRx;
delete tempTx;

to

tempRx->setDisabled(true);
tempTx->setDisabled(true);

Again, I am not sure if this a solution, but the simulation environment runs. If I understood correctly, this way the cDataRateChannel objects don't get deleted, but will discard all messages sent on them.

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

1 participant