delmic/odemis

semcomedi blocks sometimes when (re)starting an analog scan

Opened this issue · 1 comments

From a user point of view, the GUI freezes when changing the dwell time. Looking at the logs, there is something like this:

2015-09-28 13:24:06,919 (semcomedi) DEBUG: Reading 5450 lines at a time: 16775100 samples/read every 3 µs
2015-09-28 13:24:06,920 (semcomedi) DEBUG: Going to read 1024 lines
2015-09-28 13:24:06,920 (semcomedi) DEBUG: Generating new write and read commands for 1050624 scans on channels [1, 0]/(0,)
2015-09-28 13:24:06,920 (semcomedi) DEBUG: Going to preload 2097152 bytes
2015-09-28 13:24:06,939 (semcomedi) DEBUG: Waiting 3.56706 s for the acquisition to finish
2015-09-28 13:24:07,880 (semcomedi) DEBUG: Found duplication & over-sampling rates: 800 ns x 1 x 37 = 29600 ns
2015-09-28 13:24:07,883 (_dataflow) DEBUG: Listener '/var/run/odemisd/SEM%20Scan%20Interface.ipc@obj_df85dddea24f401cb4a66811d7325b56' unsubscribed, now 0 subscribers
2015-09-28 13:24:07,883 (semcomedi) DEBUG: cancelling npnotifier
2015-09-28 13:24:07,883 (semcomedi) DEBUG: Cancelling write
2015-09-28 13:24:07,883 (semcomedi) DEBUG: Write cmd cancel sent
2015-09-28 13:24:08,383 (semcomedi) DEBUG: Cancelling read
2015-09-28 13:24:08,384 (semcomedi) DEBUG: read took 1.44568 s
2015-09-28 13:24:08,386 (_dataflow) DEBUG: Listener '/var/run/odemisd/SEM%20Scan%20Interface.ipc@obj_df85dddea24f401cb4a66811d7325b56' subscribed, now 1 subscribers
2015-09-28 13:24:08,404 (semcomedi) DEBUG: Waited for the read thread for actually 1.46577 s
2015-09-28 13:24:08,404 (semcomedi) DEBUG: Acquisition was cancelled
2015-09-28 13:24:08,404 (semcomedi) DEBUG: ranges X = (-3.1722990234374997, 3.1722990234374997)V, Y = (-3.1732017999580076, 3.1732017999580076)V
2015-09-28 13:24:08,410 (semcomedi) DEBUG: Reading 442 lines at a time: 16762850 samples/read every 29.6 µs
2015-09-28 13:24:08,410 (semcomedi) DEBUG: Going to read 442 lines
2015-09-28 13:24:08,410 (semcomedi) DEBUG: Generating new write and read commands for 453050 scans on channels [1, 0]/(0,)
2015-09-28 13:24:08,417 (semcomedi) DEBUG: Going to preload 1812200 bytes

Then it stops. There is no message further, as would be expected. That seems like a AO writer problem. Could also be lock-related.

Fixed in master and v2.2.3