tanjera / infirmary-integrated

Medical device simulator for training healthcare professionals.
http://www.infirmary-integrated.com/
Other
42 stars 5 forks source link

12 Lead ECG Crashing #208

Closed tanjera closed 3 months ago

tanjera commented 4 months ago

12 Lead ECG window crashing in Linux on rhythm change to asystole; hangs entire parent process.

Appears to take place on Rhythm.Strip refresh? Regardless of color scheme.

tanjera commented 4 months ago

Can also trigger a crash with NSR at 1 bpm, is unable to complete an entire flatline across half the screen before freezing. Htop shows repeatedly dying (draw?) threads.

tanjera commented 3 months ago

Appears to be d/t heap allocation in Rhythm.Strip (line 539):: public void Scroll (int? multiplier = 1) {

tanjera commented 3 months ago

Definitely a memory issue... this happens when the window freezes d/t flatline (e.g. NSR @ 1 bpm) or changing to asystole

image

tanjera commented 3 months ago

Fixed in 05889b3

tanjera commented 3 months ago

Implementation modified in 66511cb