Adafruit is open and shipping! Let's build back better, together!
0

python3 adafruit_rgb_display library BORKed??
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

python3 adafruit_rgb_display library BORKed??

by destockwell on Tue Jan 05, 2021 4:40 pm

Starting about ten days ago, a python3 script started throwing Segmentation faults. After installing the faulthandler, I found that the following line was throwing the fault:

Code: Select all | TOGGLE FULL SIZE
import adafruit_rgb_display.ili9341 as ili9341


A similar line causes the Segmentation fault:

Code: Select all | TOGGLE FULL SIZE
import adafruit_rgb_display.st7789 as st7789

I tried reinstalling the adafruit_circuitpython_rgb_display library, even with --force-install, but the same Segmentation Fault is being thrown.

So, what else can I try? Or, is the library just borked?

Thanks for a quick reply...

destockwell
 
Posts: 27
Joined: Sun Sep 06, 2020 6:37 pm

Re: python3 adafruit_rgb_display library BORKed??

by destockwell on Tue Jan 05, 2021 6:28 pm

command used for reinstall was:
Code: Select all | TOGGLE FULL SIZE
sudo pip3 install --force-reinstall adafruit_circuitpython_rgb_display

destockwell
 
Posts: 27
Joined: Sun Sep 06, 2020 6:37 pm

Re: python3 adafruit_rgb_display library BORKed??

by destockwell on Wed Jan 06, 2021 12:37 pm

Looks like the fault is actually being thrown way down in numpy/numeric.py. Not sure why...

segfault.txt
Segmentation Fault Trace
(2.94 KiB) Downloaded 2 times

destockwell
 
Posts: 27
Joined: Sun Sep 06, 2020 6:37 pm

Re: python3 adafruit_rgb_display library BORKed??

by destockwell on Wed Jan 06, 2021 7:58 pm

Resolved the situation by pulling these test programs into an environment. Then installed local copies of numpy, plus adafruit_circuitpython_rgb_display, pillow, etc. into that environment.

Still getting used to the oddnesses of Python.

Anyway, looks like we are good to go.

destockwell
 
Posts: 27
Joined: Sun Sep 06, 2020 6:37 pm

Please be positive and constructive with your questions and comments.