Pulseview hangs on startup in some strange situations in method pv:views:trace::View::calculate_tick_spacing.
I tried to debug it a little bit and here are my findings:
- Running pulseview with LANG=C solves the problem for me
- My regular LANG is cs_CZ.utf8 which triggers the bug but it seems that it is not the only thing.
- Debugging the application in qt-creator hides the bug but using pure gdb reveals it. Maybe qt-creator is doing something with environment variables.
In the code, there is a loop
} while (tick_period_width < label_width);
which never ends.
Difference in executions is for first tick_period=0.01 and scale_=0.001 where equation
tick_period_width = (tick_period / scale_).convert_to<double>();
the result is 10 for LANG=C and 9 for LANG=cs_CZ.utf8. I really don't understand the consequences and how can LANG influence this calculation. So my debugging ends here. The value of label_width is calculated correctly and the same in both cases.
*** This bug has been marked as a duplicate of bug 1773 ***