Version: 0.8.9
Platform: Win10 x64
**Description**
After a session with sev…eral recordings (of downsampled 200 Hz data?), started a recording. About an hour later, the Joulescope UI crashed. Here is the log file:
```
*****************************
* Joulescope User Interface *
* UI Version = 0.8.9 *
* Driver Version = 0.8.8 *
*****************************
info = {
"joulescope": {
"ui_version": "0.8.9",
"driver_version": "0.8.8"
},
"platform": {
"name": "win32",
"python_version": "3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]",
"platform": "Windows-10-10.0.16299-SP0",
"processor": "Intel64 Family 6 Model 78 Stepping 3, GenuineIntel",
"executable": "C:\\Program Files (x86)\\Joulescope\\joulescope.exe",
"frozen": "C:\\Program Files (x86)\\Joulescope",
...
INFO:2020-04-02 13:47:12,561:control_widget.py:52:joulescope_ui.widgets.control.control_widget:control_widget record button True
INFO:2020-04-02 13:47:15,030:data_recorder_process.py:44:joulescope_ui.data_recorder_process:DataRecorderProcess recording: C:/Users/pstim-mfg/Documents/joulescope/20200402_134712.jls
INFO:2020-04-02 13:47:16,231:data_recorder_process.py:24:joulescope_ui.data_recorder_process:DataRecorder process start
INFO:2020-04-02 13:47:16,232:data_recorder.py:86:joulescope.data_recorder:init
INFO:2020-04-02 13:48:25,949:signal.py:465:joulescope_ui.widgets.waveform.signal.current:_on_y_range_changed(current, (-0.0003795577045808324, 0.0003573472909907588))
INFO:2020-04-02 13:48:28,379:signal.py:465:joulescope_ui.widgets.waveform.signal.current:_on_y_range_changed(current, (-0.09257514863818156, 0.7478893147370147))
INFO:2020-04-02 13:48:28,412:scrollbar.py:321:joulescope_ui.widgets.waveform.scrollbar:on_regionChange(97175.24751000002, 100000.0) pixels=1162.8296668785877
INFO:2020-04-02 13:48:28,412:waveform.py:416:joulescope_ui.widgets.waveform.waveform:on_scrollbarRegionChange(97175.24751000002, 100000.0, 1176)
INFO:2020-04-02 13:48:28,416:scrollbar.py:321:joulescope_ui.widgets.waveform.scrollbar:on_regionChange(97175.24751000002, 100000.0) pixels=1162.8296668785877
INFO:2020-04-02 13:48:28,416:waveform.py:416:joulescope_ui.widgets.waveform.waveform:on_scrollbarRegionChange(97175.24751000002, 100000.0, 1176)
INFO:2020-04-02 13:48:28,417:scrollbar.py:321:joulescope_ui.widgets.waveform.scrollbar:on_regionChange(97175.24751000002, 100000.0) pixels=1162.8296668785877
INFO:2020-04-02 13:48:28,417:waveform.py:416:joulescope_ui.widgets.waveform.waveform:on_scrollbarRegionChange(97175.24751000002, 100000.0, 1176)
INFO:2020-04-02 13:48:28,440:main.py:545:joulescope_ui.main:_on_dataview_service_x_change_request(97175.24751000002, 100000.0, 1176)
INFO:2020-04-02 13:48:28,440:main.py:545:joulescope_ui.main:_on_dataview_service_x_change_request(97175.24751000002, 100000.0, 1176)
INFO:2020-04-02 13:48:28,443:main.py:545:joulescope_ui.main:_on_dataview_service_x_change_request(97175.24751000002, 100000.0, 1176)
INFO:2020-04-02 14:33:09,131:signal.py:465:joulescope_ui.widgets.waveform.signal.voltage:_on_y_range_changed(voltage, (3.769146618480714, 4.183846297626464))
Windows fatal exception: access violation
Thread 0x00011590 (most recent call first):
File "threading.py", line 296 in wait
File "multiprocessing\queues.py", line 224 in _feed
File "threading.py", line 870 in run
File "threading.py", line 926 in _bootstrap_inner
File "threading.py", line 890 in _bootstrap
Thread 0x00010fa8 (most recent call first):
File "site-packages\joulescope\usb\winusb\win32_device_notify.py", line 119 in _run_window
File "threading.py", line 870 in run
File "threading.py", line 926 in _bootstrap_inner
File "threading.py", line 890 in _bootstrap
Thread 0x00010d00 (most recent call first):
File "threading.py", line 300 in wait
File "queue.py", line 179 in get
File "site-packages\joulescope\view.py", line 157 in run
File "threading.py", line 870 in run
File "threading.py", line 926 in _bootstrap_inner
File "threading.py", line 890 in _bootstrap
Thread 0x0000f168 (most recent call first):
File "site-packages\joulescope\usb\winusb\device.py", line 821 in process
File "site-packages\joulescope\usb\device_thread.py", line 128 in run
File "threading.py", line 870 in run
File "threading.py", line 926 in _bootstrap_inner
File "threading.py", line 890 in _bootstrap
Thread 0x0000f2d8 (most recent call first):
File "multiprocessing\connection.py", line 306 in _recv_bytes
File "multiprocessing\connection.py", line 216 in recv_bytes
File "multiprocessing\queues.py", line 94 in get
File "joulescope_ui\logging_util.py", line 182 in _listener_run
File "threading.py", line 870 in run
File "threading.py", line 926 in _bootstrap_inner
File "threading.py", line 890 in _bootstrap
Current thread 0x0000fd28 (most recent call first):
File "C:\Users\PSTIM-~1\AppData\Local\Temp\embedded.x7q532nv.zip\shibokensupport\signature\errorhandler.py", line 98 in seterror_argument
File "C:\Users\PSTIM-~1\AppData\Local\Temp\embedded.x7q532nv.zip\shibokensupport\signature\loader.py", line 101 in seterror_argument
File "pyqtgraph\functions.py", line 1520 in arrayToQPath
File "pyqtgraph\graphicsItems\PlotCurveItem.py", line 434 in generatePath
File "pyqtgraph\graphicsItems\PlotCurveItem.py", line 445 in getPath
File "pyqtgraph\graphicsItems\PlotCurveItem.py", line 463 in paint
File "pyqtgraph\debug.py", line 91 in w
File "pyqtgraph\widgets\GraphicsView.py", line 155 in paintEvent
File "joulescope_ui\main.py", line 1542 in run
File "joulescope_ui\entry_points\ui.py", line 48 in on_cmd
File "site-packages\joulescope\entry_points\runner.py", line 75 in run
File "joulescope_ui\__main__.py", line 41 in <module>
```
I investigated the pyqtgraph functions.py. The function is certainly unusual, but appears to respect the memory bounds. However, arr (the underlying numpy array) appears to go out of scope along with byteview, even though the QByteArray is returned. This could be the problem.