Changing the format specifier on the Annotate Time source from %f to either %d or %i crashes ParaView
The default format specifier for the Annotate Time source is
That results in a default format with 6 decimals after the decimal point e.g. 7.000000 As an animation runs, the default values increment as integers. So one might expect a format specifier of %d or %i to just show in the value converted to an int Doing that freezes, crashes or locks up program execution with no run time exception, error message. As a workaround, I found I could simply use Time: %.0f to get displayed values e.g. 0, 1, 2 , 3, ...
I'm happy using this, but others will surely bump into this issue eventually when using Annotate Time source. Hovering over the text field entry does not give any applicable hints or tips such as typical format specifiers for printf in fortran, c, java, etc. such as in c programming language :
- %d (print as a decimal integer)
- %6d (print as a decimal integer with a width of at least 6 wide)
- %f (print as a floating point)
- %4f (print as a floating point with a width of at least 4 wide)
- %.4f (print as a floating point with a precision of four characters after the decimal point)
- %3.2f (print as a floating point at least 3 wide and a precision of 2)
- %i or %d int
- %c char
- %f float (see also the note below)
- %s string
Thanks for wonderful program.