Unable to find an X11 visual which matches EGL config 9 Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface


#21

I will try whatever you suggest…


#22

Also, I want to incorporate a joystick as a user option, something like this :

http://m.ebay.com/itm/Guillemot-Thrustmaster-T-Flight-Hotas-X-Joystick-2960703-/331612249287?epid=159377297&hash=item4d35a15cc7%3Ag%3ALY8AAOSwyQtVsWDC&_trkparms=pageci%3A74cc859c-585e-11e7-9826-74dbd180a342%7Cparentrq%3Ad6f2840315c0a866a573f001fffec915%7Ciid%3A6

What would you recommend?


#23

Hi @HawkEye,

I hope your problem is resolved. If not, I am still waiting for this log.

For your joystick recommendation, @achal @sreejithinsony, can you please help him.


#24

As requested, here is the Start Up Log:

flytos@flytos:~$ sudo $(rospack find core_api)/scripts/launch_flytOS.sh
[sudo] password for flytos:
WARNING:root:ZMQ : Protobuf message implementation not found. Using pickle based protocol
Direct import of flyt_ms and rostful
INFO:startup_log:
================== FlytOS Startup Log ================
INFO:startup_log:Mon Jun 26 08:16:22 2017: [autopilot detect] timeout reached… check if baudrate of autopilot is: 921600
INFO:startup_log:Mon Jun 26 08:16:22 2017: [autopilot detect] visit http://docs.flytbase.com/docs/FlytOS/Debugging/FAQ.html to find how to configure baudrate in FlytOS
INFO:startup_log:Mon Jun 26 08:16:22 2017: Could not detect autopilot, proceeding with default 'PX4’
INFO:startup_log:Mon Jun 26 08:16:22 2017: Checking internet availability…
INFO:startup_log:Mon Jun 26 08:16:22 2017: Internet connection established
INFO:startup_log:Mon Jun 26 08:16:22 2017: Checking license on server…
INFO:startup_log:Mon Jun 26 08:16:22 2017: Check license status: 200 OK, Response: True
INFO:startup_log:Mon Jun 26 08:16:22 2017: License activation is: True
INFO:startup_log:Mon Jun 26 08:16:22 2017: Auto-Update: OFF
INFO:startup_log:Mon Jun 26 08:16:22 2017: Starting FlytOS…
1877
flytlaunch instance already running
INFO:startup_log:Mon Jun 26 08:16:23 2017: Checking internet availability…
INFO:startup_log:Mon Jun 26 08:16:23 2017: Internet connection established
INFO:startup_log:Mon Jun 26 08:16:24 2017: Checking license on server…
INFO:startup_log:Mon Jun 26 08:16:24 2017: Check license status: 200 OK, Response: True
INFO:startup_log:Mon Jun 26 08:16:24 2017: Checking for updates on server…
INFO:startup_log:Mon Jun 26 08:16:24 2017: Check updates status: 200 OK, Response: 1.34
INFO:startup_log:Mon Jun 26 08:16:24 2017: Exiting Startup.Auto-update is Off!
INFO:startup_log:========================================================


#25

Hi,

Ha! It says to stop it once, if it is already running.


#26

So, shall I stop FlytOS and attempt to run my app ?


#27

Where may I download earlier versions of FlytOS?


#28

I definitely want to go back to an earlier version of FlytOS. I’ve noticed several things that are causing problems for me.

The issue with my disappearing video stream is that something in the current version of FlytOS is causing an incorrect key function indicator to be reported to the waitKey comparison used in my CPP program…

This is a code snippet of what I have been doing for months:

imshow(“prec_landing_test”, current_image);
if(waitKey(30) >= 0
) break;

This logic change causes the video feed to remain streaming:

imshow(“prec_landing_test”, current_image);
if(waitKey(30) < 0
) break;

Correct me if I’m wrong, but if a key is pressed, this function returns the ASCII code of key. Or returns -1 if no keys were pressed during that time.

The code logic is backwards, but it works.

Something in your current updates are causing serious problems with my existing code.


#29

We compiled and ran your code which you had sent over email. It seems opencv guys updated their waitkey API.

Similar issue has already been reported in opencv github:


Please use waitKeyEx instead of waitKey, if you would like to use this logic:
if(waitKey(30) >= 0
) break;

waitKey() returns 255 and NOT -1 when no key is pressed. But waitKey() returns -1.


#30

I see… to confirm, when the FlytOS image file is created, it is bundled with everything it needs to run, including the newest versions of opencv. Correct?

If so, that would explain everything.

Where may I download earlier versions of FlytOS?


#31

Or, would it be easier to install an earlier version of opencv rather than be forced to debug my app.

What do you think?


#32

Yes this is correct.

I would suggest you to not do this. The latest version of FlytOS is linked to latest version of opencv. Reverting to old opencv would cause other issues.

I would suggest to not go back, as essentially newer versions solve a lot of bugs and comes with feature updates. This is obviously true not only for FlytOS but other software packages as well.

For now, at best you can turn off auto-update feature of FlytOS, and not update ANY package separately in your device.