sfc-aqua / quisp

Open source implementation of quantum internet simulation package
BSD 3-Clause "New" or "Revised" License
89 stars 36 forks source link

Fatal: direct deletion of a module is illegal #59

Closed rdviii closed 4 years ago

rdviii commented 4 years ago

image

rdviii commented 4 years ago

All the way at the end of the sim:

`[CNOT] No=0.9995, IX=0.999556, XI=0.999611, XX=0.999667 IZ=0.999722, ZI=0.999778, ZZ=0.999833 IY=0.999889, YI=0.999944, YY=1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 undisposed object: (quisp::messages::deleteThisModule) Realistic_Layer2_Simple_MIM_MM_5km.Repeater1[0].app. -- check module destructor Hash is 306626261, t = 10192351332260671701, long = 10192351332260671701 Creating rules now RS_id = 10192351332260671701, partner_address = 2 Creating rules now RS_id = 10192351332260671701, partner_address = 3 Ruleset arrived id=10192351332260671701 partner node=2 node[3 Process size is ....1 node[3 Hash is 306939250, t = 8351437338415882474, long = 8351437338415882474 Creating rules now RS_id = 8351437338415882474, partner_address = 1 Creating rules now RS_id = 8351437338415882474, partner_address = 3 Ruleset arrived id=8351437338415882474 partner node=1 node[3 Process size is ....1 node[3 Ruleset arrived id=10192351332260671701 partner node=3 node[2 Process size is ....1 node[2 Ruleset arrived id=8351437338415882474 partner node=3 node[1 Process size is ....1 node[1 RuleSet_id=10192351332260671701 node[3]:RuleSet deleted. RuleSet_id=10192351332260671701 node[2]:RuleSet deleted. RuleSet_id=8351437338415882474 node[1]:RuleSet deleted. RuleSet_id=8351437338415882474 node[3]:RuleSet deleted. "default"!="Realistic_Layer2_Simple_MIM_MM_5km_test" Opened new file to write. EndNode1[0]<-->QuantumChannel{cost=602856;distance=5km;fidelity=0.487046;bellpair_per_sec=10;}<-->Repeater1[0]; F=0.487046; X=0.512954; Z=0.00895361; Y=-0.00895361 Closed file to write.

Simulation terminated with exit code: 134 Working directory: /Users/rdv/Dropbox/new/quantum/quantum-internet-simulator/quisp/quisp/networks Command line: ../quisp -m -n .. omnetpp.ini

Environment variables: PATH=/Users/rdv/Dropbox/new/quantum/omnet/omnetpp-5.6/bin::/Users/rdv/Dropbox/new/quantum/omnet/omnetpp-5.6/bin:/Users/rdv/Dropbox/new/quantum/omnet/omnetpp-5.6/tools/macosx/bin:/Users/rdv/miniconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/git/bin DYLD_LIBRARY_PATH=/Users/rdv/Dropbox/new/quantum/omnet/omnetpp-5.6/lib:: OMNETPP_IMAGE_PATH=/Users/rdv/Dropbox/new/quantum/omnet/omnetpp-5.6/images `

rdviii commented 4 years ago

Resolved. Indeed, the RuleEngine was trying to directly use the C++ object deletion on the RealTimeController. Fixed.