0

Adafruit BBIO hang in debian stretch
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit BBIO hang in debian stretch

by popjxc on Mon Aug 14, 2017 1:48 am

I install debian stretch in my beaglebone black, from this article: http://www.elinux.org/BeagleBoardDebian ... _with_eMMC
Python version is 3.5.3, and I use pip to install adafruit_bbio with version 1.0.3.

The problem is when I setup SPI with following code, the python process is hang:
>>> from Adafruit_BBIO.SPI import SPI
>>> spi = SPI(0, 0) # hang here

with top command, I found the python process cost almost 100% of CPU, and unfortunately the process can't be killed with: kill -9 <pid>.

I also try to use gdb to attach to the process, but gdb also hang.

Maybe stretch is too new for adafruit_bbio, or I miss something?

popjxc
 
Posts: 2
Joined: Mon Aug 14, 2017 1:30 am

Re: Adafruit BBIO hang in debian stretch

by popjxc on Mon Aug 14, 2017 2:41 am

Hi,
When I read the code, I found this comment: https://github.com/adafruit/adafruit-be ... mon.c#L484

But this fix is not in adafruit_bbio 1.0.3. I try to build from newest source code, and then it works.

Please update it on https://pypi.python.org/pypi, thanks.

popjxc
 
Posts: 2
Joined: Mon Aug 14, 2017 1:30 am

Re: Adafruit BBIO hang in debian stretch

by drewfustini on Mon Aug 14, 2017 11:51 am

Thanks for pointing this out. I will publish an updated version to PyPI

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Please be positive and constructive with your questions and comments.