xqms / rosmon

ROS node launcher & monitoring daemon
Other
180 stars 47 forks source link

Std out issue since latest noetic update #178

Closed alaurenzi closed 11 months ago

alaurenzi commented 11 months ago

Hi Max, I am experiencing an issue regarding std out prints, I believe since the last noetic update. It looks somehow related to ASCII formatting codes. Apparently, bold formatting is not showing up, as well as anything between the end of bold formatting and newline.

Check the last three lines of these pictures:

Rosmon compiled from source, checked out at 4f9b10e (works ok) Screenshot from 2023-09-29 10-10-09

Rosmon compiled from source, latest master (broken output) Screenshot from 2023-09-29 10-12-44

I'll try to provide a minimal example reproducing this issue, in the meantime maybe this already rings a bell to you!

Thanks in advance, Arturo

xqms commented 11 months ago

Hey Arturo, interesting... The color coding stuff is pretty complicated, since rosmon needs to parse all codes and remember them. There might be a line from another node in between, so rosmon parses and restores all color coding for each node. Probably you guys are using an escape code that the current version doesn't handle correctly...

Are you using a library for the logging? Or is that custom code? It would be great if we could find out which escape codes you are outputting. Maybe launch the xbot2 node with rosrun ... &> log.txt and paste the log file here?

xqms commented 11 months ago

I found at least one bug in the parser and fixed it in master. Can you compile current master and test if it fixes your case as well?

alaurenzi commented 11 months ago

Thank you Max, it seems it works now!

xqms commented 11 months ago

Thanks for confirming :) I triggered a new package release so the fix should come into the apt repos at the next sync.