Bug 1529 - Numpy broken
Summary: Numpy broken
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Bindings: Python (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-21 15:51 CET by Eugene
Modified: 2021-01-28 14:11 CET (History)
0 users



Attachments
patch file (1.49 KB, patch)
2021-01-28 14:09 CET, Eugene
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene 2020-03-21 15:51:46 CET
Trying to get data from packet.payload.data right at datafeed_callback, Numpy(1.17) produce error below:
python: numpy/core/src/multiarray/alloc.c:70: _npy_alloc_cache: Assertion `NPY_CHECK_GIL_HELD()' failed.

In previous versions alloc.c has contained stub that disables GIL check. Was deleted in newer versions as numpy drops python2.7 support.
Comment 1 Eugene 2021-01-28 14:09:19 CET
Created attachment 719 [details]
patch file

Adding GIL state to sigrok::Analog and sigrok::Logic
Comment 2 Eugene 2021-01-28 14:11:26 CET
(In reply to Eugene from comment #1)
> Created attachment 719 [details]
> patch file
> 
> Adding GIL state to sigrok::Analog and sigrok::Logic