-
Notifications
You must be signed in to change notification settings - Fork 159
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
Crash when change "Trigger" "Slope" to "up&down" from just being up, if trigger set to left edge of screen #278
Comments
I can always get the crash...is completely reproducible. |
Hi Eric,
(lot of output) |
log: OH.log |
I have edited my first comment to change Qt version to 5.15.3 |
The crash happens both when I use 32 Hz calibration square wave as well as the 100 kHz calibration square wave, as well as any frequency in between. |
I'll build from latest git and debug in qtcreator to see what is going on. |
the |
So I think I know how to reproduce it. You must put your trigger at the very left edge of the oscilloscope area. |
the for loop condition tries to check for the condition that k is negative by using |
(also looking at that for loop condition, and I see |
I've made a simple PR that fixes this by using signed int for calculation, and casting all those unsigned ints to regular ints just to be safe incase there is another corner case such as |
Cool, thank you for the detailed analysis of this error. I did also some more tests in the meantime and found also this |
Describe the bug
Crash when change "Trigger" "Slope" to "up&down" from just being up, when I am viewing a 25% duty-cycle 3.3v square wave in channel 2 with twigger mode "Auto" with trigger source "CH2".
To Reproduce
Expected behavior
no crash
Screenshots
![image](https://user-images.githubusercontent.com/6502474/160008458-5406ad43-46e7-4200-b9ca-8ed73c13fe98.png)
before crash:
Computer environment (please complete the following information):
Scope device (please complete the following information):
The text was updated successfully, but these errors were encountered: