TissueImageAnalytics / tiatoolbox

Computational Pathology Toolbox developed by TIA Centre, University of Warwick.
https://warwick.ac.uk/tia
Other
382 stars 79 forks source link

BUG: Tests Dumping PNG Contents To Stdout #267

Closed John-P closed 2 years ago

John-P commented 2 years ago

Description

A test in test_stainaugment is causing a whole PNG file to be dumped to stdout. Here is some sample output from Travis:

Update: It appears in different places on different runs and is likely not to do with stain augmentation but rather some other thread or process dumping to stdout during tests running.

tests/test_stainaugment.py Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.*?)}/ at /usr/bin/run-mailcap line 528.

Error: no "view" rule for type "image/png" passed its test case

       (for more information, add "--debug=1" on the command line)

Can't create config directory (/.w3m)!?PNG



IHDR??m?IDATx??Yo&;???i?U?Z???F???

?E?s???????7

???????]kՠy????g?#?T?R?z?Icbd&?d????-?-?-?-?-?-?-?#,?????A??o??:M???D???k??????k???????????X??xiS????u?<?_?X??wttt<??C??????????j???o????????/s?????3???????=?????tttttt̳??a?~?<?t?$????a??????9-??-?9?[׺[?[?[?[?[?mY???yw???o??5??????o?=??joR?@?@?@?@??Og^????<?O???p?@?@?@?@?@???f?s???xoo?@?@?@?@??????Q??Wט?P?@?@?@?@?@?@?@?@_ϥX?????????????U???Qk??o,Pϑ

?'K5E?tttt????0z?-?-?-?-?-?-0}s??M*m??^?h?*&'K?M~Ճ???-0?@:?{??uz??,?c./g???[?[?[?[?[?[`??v'??????[`Y???e-?????????z.???]J?@?@?@?@?@?????????F??n?n?n?n??@p^Ĭ????1?M???????^?O??t???Jg?-?-?-?-????}?h??kmR?????W?@?@?@?@???d?<?  ??]~?s???[?[?[?,P???iM?????????tp?@?@?@?@?@??w?@??./?????v???????VGk???1??h??~5K??>?z???-??uttttt,m?i7??ί)&+Aw??\?@?@??/o?q??5G???:??K?gs\????9????;??A?????/n?%}??n???䰸%?L$1??e/????֖??f?<?k?-?-?J-0??R?C}????9Ve{?'?@???????-?-?-?-?-?#-P??Tbs?? ?G#???{4??NК1??|???

IHDR and IDAT are markers within the PNG file.

shaneahmed commented 2 years ago

This was an issue on travis. Travis seems to be producing correct output now.