qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

Vehicle Setup view blank / black

Open thomasgubler opened this issue 11 years ago • 28 comments

If I compile on arch linux from current master the setup view is empty. There is no change when I connect to a system.

I made a try to run git bisect but I came to no conclusion because some commits did not compile. If @DonLakeFlyer does not know of a direct reason for the problem I can give it another try.

screenshot from 2014-12-27 00 28 52

Console output

libpng warning: iCCP: known incorrect sRGB profile
Changed Link to: "ttyS0"
HOME SET TO:  47.3783 8.53878 1199.99
Attempting connection to something unknown with description: ""
Attempting connection to something unknown with description: "X"
create SerialLink  "" 57600 false false 8 1
m_portName  "ttyACM0"
ADD LINK
Attempting connection to something unknown with description: "X"
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
Orphaned log file count 0

thomasgubler avatar Dec 26 '14 23:12 thomasgubler

I”ll try running on Ubuntu to see what happens. The OpenGL errors I believe are from the Local 3d View not Setup.

On Dec 26, 2014, at 3:38 PM, Thomas Gubler [email protected] wrote:

If I compile on arch linux from current master the setup view is empty. There is no change when I connect to a system.

I made a try to run git bisect but I came to no conclusion because some commits did not compile. If @DonLakeFlyer https://github.com/DonLakeFlyer does not know of a direct reason for the problem I can give it another try.

https://cloud.githubusercontent.com/assets/1419479/5559876/872bc7c6-8d5f-11e4-83b1-e87b7362a683.png Console output

libpng warning: iCCP: known incorrect sRGB profile Changed Link to: "ttyS0" HOME SET TO: 47.3783 8.53878 1199.99 Attempting connection to something unknown with description: "" Attempting connection to something unknown with description: "X" create SerialLink "" 57600 false false 8 1 m_portName "ttyACM0" ADD LINK Attempting connection to something unknown with description: "X" QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined Orphaned log file count 0 — Reply to this email directly or view it on GitHub https://github.com/mavlink/qgroundcontrol/issues/1152.

DonLakeFlyer avatar Dec 26 '14 23:12 DonLakeFlyer

Latest master is good on Ubuntu 14.10

On Dec 26, 2014, at 3:51 PM, Donald Gagne [email protected] wrote:

I”ll try running on Ubuntu to see what happens. The OpenGL errors I believe are from the Local 3d View not Setup.

On Dec 26, 2014, at 3:38 PM, Thomas Gubler <[email protected] mailto:[email protected]> wrote:

If I compile on arch linux from current master the setup view is empty. There is no change when I connect to a system.

I made a try to run git bisect but I came to no conclusion because some commits did not compile. If @DonLakeFlyer https://github.com/DonLakeFlyer does not know of a direct reason for the problem I can give it another try.

https://cloud.githubusercontent.com/assets/1419479/5559876/872bc7c6-8d5f-11e4-83b1-e87b7362a683.png Console output

libpng warning: iCCP: known incorrect sRGB profile Changed Link to: "ttyS0" HOME SET TO: 47.3783 8.53878 1199.99 Attempting connection to something unknown with description: "" Attempting connection to something unknown with description: "X" create SerialLink "" 57600 false false 8 1 m_portName "ttyACM0" ADD LINK Attempting connection to something unknown with description: "X" QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined Orphaned log file count 0 — Reply to this email directly or view it on GitHub https://github.com/mavlink/qgroundcontrol/issues/1152.

DonLakeFlyer avatar Dec 27 '14 00:12 DonLakeFlyer

@thomasgubler What version of Qt is archlinux running?

DonLakeFlyer avatar Dec 27 '14 04:12 DonLakeFlyer

@thomasgubler In looking at the qt source this output is a qWarning. So if you set QT_FATAL_WARNINGS=1 environment variable you can get it to break in the debugger when it happens. Even without your own Qt build. That should at least point in a direction.

DonLakeFlyer avatar Dec 27 '14 04:12 DonLakeFlyer

qt version is 5.4.0

using QT_FATAL_WARNINGS=1 it crashes on https://github.com/mavlink/qgroundcontrol/blob/master/src/QGCApplication.cc#L258 which I think is something different

0   raise   /usr/lib/libc.so.6      0x7ffff3deda97  
1   abort   /usr/lib/libc.so.6      0x7ffff3deee6a  
2   QMessageLogger::warning(char const*, ...) const /usr/lib/libQt5Core.so.5        0x7ffff51661c9  
3   ??  /usr/lib/libQt5Gui.so.5     0x7ffff5cb55f5  
4   png_chunk_warning   /usr/lib/libpng16.so.16     0x7ffff1c4aab0  
5   ??  /usr/lib/libpng16.so.16     0x7ffff1c499aa  
6   ??  /usr/lib/libpng16.so.16     0x7ffff1c5b160  
7   png_read_info   /usr/lib/libpng16.so.16     0x7ffff1c505c6  
8   ??  /usr/lib/libQt5Gui.so.5     0x7ffff5cb6515  
9   ??  /usr/lib/libQt5Gui.so.5     0x7ffff5cb6a25  
10  ??  /usr/lib/libQt5Gui.so.5     0x7ffff5cb808a  
11  ??  /usr/lib/libQt5Gui.so.5     0x7ffff5c7b5b3  
12  QImageReader::read(QImage*) /usr/lib/libQt5Gui.so.5     0x7ffff5c7bbbf  
13  QImageReader::read()    /usr/lib/libQt5Gui.so.5     0x7ffff5c7bc74  
14  QPlatformPixmap::fromFile(QString const&, char const*, QFlags<Qt::ImageConversionFlag>) /usr/lib/libQt5Gui.so.5     0x7ffff5c94458  
15  QPixmap::load(QString const&, char const*, QFlags<Qt::ImageConversionFlag>) /usr/lib/libQt5Gui.so.5     0x7ffff5c8d0d3  
16  QPixmap::QPixmap(QString const&, char const*, QFlags<Qt::ImageConversionFlag>)  /usr/lib/libQt5Gui.so.5     0x7ffff5c8d220  
17  QGCApplication::_initForNormalAppBoot   QGCApplication.cc   258 0x57e081    
18  main    main.cc 170 0x5770db    

thomasgubler avatar Dec 27 '14 10:12 thomasgubler

This could be related, as the new UI uses images as far as I recall. Seems like worth fixing.

LorenzMeier avatar Dec 27 '14 10:12 LorenzMeier

+1

And I get a lot of these messages:

QQuickWidget cannot be used as a native child widget. Consider setting Qt::AA_DontCreateNativeWidgetSiblings

bansiesta avatar Dec 27 '14 16:12 bansiesta

That’s odd. That is failing on the splash screen image. What does the debug output say?

On Dec 27, 2014, at 2:32 AM, Thomas Gubler [email protected] wrote:

qt version is 5.4.0

using QT_FATAL_WARNINGS=1 it crashes on https://github.com/mavlink/qgroundcontrol/blob/master/src/QGCApplication.cc#L258 https://github.com/mavlink/qgroundcontrol/blob/master/src/QGCApplication.cc#L258 which I think is something different

0 raise /usr/lib/libc.so.6 0x7ffff3deda97
1 abort /usr/lib/libc.so.6 0x7ffff3deee6a
2 QMessageLogger::warning(char const_, ...) const /usr/lib/libQt5Core.so.5 0x7ffff51661c9
3 ?? /usr/lib/libQt5Gui.so.5 0x7ffff5cb55f5
4 png_chunk_warning /usr/lib/libpng16.so.16 0x7ffff1c4aab0
5 ?? /usr/lib/libpng16.so.16 0x7ffff1c499aa
6 ?? /usr/lib/libpng16.so.16 0x7ffff1c5b160
7 png_read_info /usr/lib/libpng16.so.16 0x7ffff1c505c6
8 ?? /usr/lib/libQt5Gui.so.5 0x7ffff5cb6515
9 ?? /usr/lib/libQt5Gui.so.5 0x7ffff5cb6a25
10 ?? /usr/lib/libQt5Gui.so.5 0x7ffff5cb808a
11 ?? /usr/lib/libQt5Gui.so.5 0x7ffff5c7b5b3
12 QImageReader::read(QImage_) /usr/lib/libQt5Gui.so.5 0x7ffff5c7bbbf
13 QImageReader::read() /usr/lib/libQt5Gui.so.5 0x7ffff5c7bc74
14 QPlatformPixmap::fromFile(QString const&, char const_, QFlagsQt::ImageConversionFlag) /usr/lib/libQt5Gui.so.5 0x7ffff5c94458
15 QPixmap::load(QString const&, char const_, QFlagsQt::ImageConversionFlag) /usr/lib/libQt5Gui.so.5 0x7ffff5c8d0d3
16 QPixmap::QPixmap(QString const&, char const*, QFlagsQt::ImageConversionFlag) /usr/lib/libQt5Gui.so.5 0x7ffff5c8d220
17 QGCApplication::_initForNormalAppBoot QGCApplication.cc 258 0x57e081
18 main main.cc 170 0x5770db
— Reply to this email directly or view it on GitHub https://github.com/mavlink/qgroundcontrol/issues/1152#issuecomment-68174851.

DonLakeFlyer avatar Dec 27 '14 18:12 DonLakeFlyer

@thomasgubler @bansiesta Can you guys give Pull #1153 a try?

DonLakeFlyer avatar Dec 27 '14 19:12 DonLakeFlyer

Also seems to happen on Win 8.1 64bit according to https://groups.google.com/d/msg/px4users/7PbG9_OLaLg/KMpFDOT88i0J

thomasgubler avatar Dec 28 '14 13:12 thomasgubler

Very strange behavior. Discovered that the items are actually there they are just aren't being drawn, or are all black. If you are connected and click in the view it will bring up the individual setup screens!

DonLakeFlyer avatar Dec 28 '14 18:12 DonLakeFlyer

This is probably going to take a while. I can repro on Windows. But when I build with my own debug version of Qt instead of the release version to try to track it down it works fine!

DonLakeFlyer avatar Dec 28 '14 19:12 DonLakeFlyer

The issue seem to just be related to use a QQuickWidget as the central widget of a QMainWindow. It works fine everywhere else. Getting closer...

DonLakeFlyer avatar Dec 29 '14 01:12 DonLakeFlyer

@LorenzMeier I'm still not exactly sure why, but the Google Earth view on Windows prevents you from being able to use QML in the MainWindow central stacked widget. It works everywhere else just fine. This in turn breaks the Setup View on Windows. I'm wondering whether getting rid of Google Earth view is feasible? At this point it only works in Windows, and only because I haven't yet figured out how to build QGC 64 bit on Windows. At that point I would think the 32 bit build would be deprecated which is the only place Google Earth works. From what I can see there is no hope of getting a 64 bit version of Google Earth. It even seems to me like they are moving away from it since I think the removed support for it from Chrome as well.

I could keep hammering away at trying to figure out what is wrong here, but it's likely some obscure bug associated with use of the ActiveX container. But it doesn't seem worth the effort at this point. Other than whiz-bang value I'm not sure it really adds additional capability that isn't already available from the other map options.

The code could always stay with it defaulted to off. Then if someone really wants to put the effort into it they could figure out how to fix it. Or it could just be removed.

DonLakeFlyer avatar Dec 29 '14 03:12 DonLakeFlyer

@LorenzMeier Another issue with Google Earth is that if you look at Qt 5.4 they are moving away from WebKit which is needed by Google Earth. That would likely mean some upgrade further down the road to move forward on newer Qts. That also doesn't seem worth the effort.

DonLakeFlyer avatar Dec 29 '14 03:12 DonLakeFlyer

Sounds like you at least temporarily will want to disable, if not straight away remove it. 3D UIs are loved by users, but are not very helpful.

LorenzMeier avatar Dec 29 '14 09:12 LorenzMeier

Temporarily disable is fine by me. Then I can make some forward progress. I'll ad an issue to put it back. Then when can see how loud the complaints are. The biggest problem is that uou can't debug Google Earth problems because they require the webkit version of qt. I've tried multiple times to build a debug version of Qt with WebKit and can't get it to work.

DonLakeFlyer avatar Dec 29 '14 15:12 DonLakeFlyer

Just confirming that Ubuntu 14.04 with Qt54 has this same issue. I tried Qt53 as well but no luck.

jgoppert avatar Jan 19 '15 18:01 jgoppert

FYI: There is a pull request in the queue which fixes this. Waiting till I get back in town to merge. You can build with that yourself if you need something right away

On Jan 19, 2015, at 1:10 PM, James Goppert [email protected] wrote:

Just confirming that Ubuntu 14.04 with Qt54 has this same issue. 14.04 with Qt53 from this ppa works : https://launchpad.net/~beineri/+archive/ubuntu/opt-qt532-trusty

This is helpful if you want to build qgroundcontrol and run ROS on ubuntu easily since ROS doesn't officially support 14.10 yet.

— Reply to this email directly or view it on GitHub.

DonLakeFlyer avatar Jan 20 '15 14:01 DonLakeFlyer

Any good news? I used ubuntu15.04 alpha2 came with the same issue...no icons, but can respond to clicking...

chzw517 avatar Jan 31 '15 02:01 chzw517