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

Robust Debug of Logging #4

Open
MarkSelden opened this issue Apr 14, 2021 · 0 comments
Open

Robust Debug of Logging #4

MarkSelden opened this issue Apr 14, 2021 · 0 comments

Comments

@MarkSelden
Copy link
Collaborator

After integrating the Rpyc server we got the following error:

Traceback (most recent call last):
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimLog.py", line 199, in log
json_string = json.dumps(content, sort_keys=True)
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/init.py", line 234, in dumps
return cls(
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type float64 is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "runSim.py", line 387, in
main(sys.argv[1:])
File "runSim.py", line 280, in main
runSimCombinations({
File "runSim.py", line 187, in runSimCombinations
simengine.join()
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimEngine.py", line 228, in join
raise self.exc
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimEngine.py", line 160, in run
cb()
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/Mote/app.py", line 322, in _broadcast_location
self._send_packet(
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/Mote/app.py", line 372, in _send_packet
self.log(
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimLog.py", line 210, in log
output += [traceback.format_exc(err)]
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 167, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 120, in format_exception
return list(TracebackException(
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 509, in init
self.stack = StackSummary.extract(
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 340, in extract
if limit >= 0:
TypeError: '>=' not supported between instances of 'TypeError' and 'int'

this was patched by type casting the returned numbers from the Rpyc server to floats but warrants a more significant investigation.

raneshandroid pushed a commit to killershrimp/BotNet that referenced this issue Sep 17, 2021
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