Open atiselsts opened 2 years ago
If you get all output to the console it might be something with the printf interception. It could also be some truncation of something and then missing error checks in Cooja so it just continues despite things going wrong. Do both of you use the docker container, or are you running on 64-bit systems?
The Cooja platform in current HEAD on develop in contiki-ng is updated to use dbg-io. Cooja itself has a number of 64-bit fixes and is updated to use log4j 2.x.
The output issues shouldn't be triggered by the algorithms you are looking at in your modified Contiki-NG 4.6, can you replicate the problems on the develop branch with some other simulation?
We're using a modified version of Contiki-NG (based on 4.6) along with unmodified version of Cooja, commit 7a7fd5e471b3333c97d09c24224a865be4a4f4f4 from June 2021.
There are some big problems with the log output in Cooja. The amount seems to depend on the exact system used to run the simulation. On my PC, most of the nodes show expected logging output in "Mote output" window, except the gateway node, which has most of the logs missing. My colleague on his PC sees empty output from all nodes. It's not a fault of the C code I think, as the actual correct log output for some reason appears in the output of the Cooja console window! The logs do reach Cooja, but they are not reaching the Mote output plugin for some reason.
This bug is a strange one. I've been looking into this for a while, but I feel that I'm not expert enough in how Cooja works, perhaps you guys can help me.
Same thing happens when running without GUI. This is output in COOJA.log, when running a simulation with just the gateway node:
This is output in COOJA.testlog: