Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run on ubuntu server #53

Closed
LuisDiazUgena opened this issue Oct 30, 2019 · 2 comments
Closed

Unable to run on ubuntu server #53

LuisDiazUgena opened this issue Oct 30, 2019 · 2 comments

Comments

@LuisDiazUgena
Copy link

LuisDiazUgena commented Oct 30, 2019

Hi!

I'm developing a bot to run this PID-Analzyer (I've been using the bot on my w10 computer without no problems at all). Now, I want to run it on an Ubuntu server result of uname -a:

uname -a
Linux ubuntu 5.3.0-1008-raspi2 #9-Ubuntu SMP Fri Oct 18 13:26:35 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

I've followed the instructions on issue #44 and i'm facing some problems to run it. If I type:

python3 PID-Analyzer.py --blackbox_decode ./blackbox_decode -l /home/ubuntu/bots/plasmatreebot/downloadDir/539011/btfl_004.bbl

the output is:

Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(PID-Analyzer.py:24039): Gdk-CRITICAL **: 15:10:16.449: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(PID-Analyzer.py:24039): Gdk-CRITICAL **: 15:10:16.458: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
INFO 2019-10-30 15:10:18,283 PID-Analyzer.py:982: Decoding with '/home/ubuntu/bots/plasmatreebot/plasmatreeUnix/PID-Analyzer-master/blackbox_decode'
INFO 2019-10-30 15:10:18,283 PID-Analyzer.py:984: PID-Analyzer 0.52
INFO 2019-10-30 15:10:18,283 PID-Analyzer.py:985: Hello Pilot!
WARNING 2019-10-30 15:10:18,616 PID-Analyzer.py:933: Ignoring BBL session '/home/ubuntu/bots/plasmatreebot/downloadDir/539011/tmp/btfl_004_temp0.bbl', 61B < 500000B.
Decoding log '/home/ubuntu/bots/plasmatreebot/downloadDir/539011/tmp/btfl_004_temp1.bbl' to '/home/ubuntu/bots/plasmatreebot/downloadDir/539011/tmp/btfl_004_temp1.01.csv'...

Log 1 of 1, start 00:41.348, end 02:02.831, duration 01:21.483

Statistics
Looptime            540 avg           69.7 std dev (12.9%)
I frames    2320   60.1 bytes avg   139353 bytes total
P frames  146077   30.4 bytes avg  4437172 bytes total
E frames       1    6.0 bytes avg        6 bytes total
S frames      11    4.4 bytes avg       48 bytes total
Frames    148397   30.8 bytes avg  4576525 bytes total
Data rate 1821Hz  56224 bytes/s     562300 baud

2 frames failed to decode, rendering 43 loop iterations unreadable. 445290 iterations are missing in total (61115ms, 75.00%)

INFO 2019-10-30 15:10:29,135 PID-Analyzer.py:676: Reading: Log 0
WARNING 2019-10-30 15:10:32,480 PID-Analyzer.py:715: No D[2] trace found!
INFO 2019-10-30 15:10:32,491 PID-Analyzer.py:356: Processing:
INFO 2019-10-30 15:10:32,501 PID-Analyzer.py:671: roll...   
INFO 2019-10-30 15:10:47,644 PID-Analyzer.py:671: pitch...   
Killed

as you can see, it says "Killed" after start analizing pitch ...

The log file i'm using is
btfl_004.zip

@LuisDiazUgena
Copy link
Author

I've found that using:

import matplotlib 
matplotlib.use('Agg') 

removes from previous :

Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(PID-Analyzer.py:24039): Gdk-CRITICAL **: 15:10:16.449: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(PID-Analyzer.py:24039): Gdk-CRITICAL **: 15:10:16.458: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

@LuisDiazUgena
Copy link
Author

This problem was not related with the script itself, it was something about the hardware I run on it. There wasn't enough cpu power and ram available and it killed the process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant