Re: Trouble in Qt-land

2018-03-25 Thread Thiago Macieira
On Sunday, 25 March 2018 22:26:39 CST Willem Ferguson wrote:
> Pointing to a problem somewhere deep in Qt-land. I think the first
> obvious question is why is Qt 5.10.1 not used, but Qt 5.5.1?

Probably a matter of setting LD_LIBRARY_PATH to point to the 5.10.1. This 
should have been dealt with by CMake by creating the necessary RPATH in the 
Subsurface executable, though...

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Trouble in Qt-land

2018-03-25 Thread Lubomir I. Ivanov
hello,

On 25 March 2018 at 17:26, Willem Ferguson
 wrote:
>
> Thread 1 "subsurface" received signal SIGSEGV, Segmentation fault.
> 0x75ffe3f0 in QOpenGLFramebufferObject::handle() const () from
> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
> (gdb)
>

what is the output of?:
  subsurface -v

not being able to obtain a handle to the OpenGL framebuffer, could
mean that either you have old hardware, your GPU driver is not up to
date or maybe you are running in a VM?
some of that should be catched in subsurface-desktop-main.cpp::validateGL().

lubomir
--
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Trouble in Qt-land

2018-03-25 Thread Willem Ferguson

I hope someone can give me some advice with what I believe is a Qt problem.

Building the latest master, part of the build log says:

QT_SYSROOT:
QT_INSTALL_PREFIX:/usr
QT_INSTALL_ARCHDATA:/usr/lib/x86_64-linux-gnu/qt5
QT_INSTALL_DATA:/usr/share/qt5
QT_INSTALL_DOCS:/usr/share/qt5/doc
QT_INSTALL_HEADERS:/usr/include/x86_64-linux-gnu/qt5
QT_INSTALL_LIBS:/usr/lib/x86_64-linux-gnu
QT_INSTALL_LIBEXECS:/usr/lib/x86_64-linux-gnu/qt5/libexec
QT_INSTALL_BINS:/usr/lib/x86_64-linux-gnu/qt5/bin
QT_INSTALL_TESTS:/usr/tests
QT_INSTALL_PLUGINS:/usr/lib/x86_64-linux-gnu/qt5/plugins
QT_INSTALL_IMPORTS:/usr/lib/x86_64-linux-gnu/qt5/imports
QT_INSTALL_QML:/usr/lib/x86_64-linux-gnu/qt5/qml
QT_INSTALL_TRANSLATIONS:/usr/share/qt5/translations
QT_INSTALL_CONFIGURATION:/etc/xdg
QT_INSTALL_EXAMPLES:/usr/lib/x86_64-linux-gnu/qt5/examples
QT_INSTALL_DEMOS:/usr/lib/x86_64-linux-gnu/qt5/examples
QT_HOST_PREFIX:/usr
QT_HOST_DATA:/usr/lib/x86_64-linux-gnu/qt5
QT_HOST_BINS:/usr/lib/x86_64-linux-gnu/qt5/bin
QT_HOST_LIBS:/usr/lib/x86_64-linux-gnu
QMAKE_SPEC:linux-g++-64
QMAKE_XSPEC:linux-g++-64
QMAKE_VERSION:3.0
QT_VERSION:5.5.1

But, My src directory tree includes:

~/src$ ls -l
drwxrwxrwx  8 willem willem 4096 Mar 25 15:54 Qt
drwxrwxr-x  4 willem willem 4096 May 25  2017 qt-android-cmake

~/src/Qt$ ls -l  (All 4 Gb of it!)
total 106504
drwxrwxr-x 6 willem willem 4096 Mar 25 15:49 5.10.1
-rw-rw-rw- 1 willem willem    31594 Mar 25 15:49 components.xml
drwxrwxr-x 2 willem willem 4096 Mar 25 15:49 dist
drwxrwxr-x 3 willem willem 4096 Mar 25 15:48 Docs
drwxrwxr-x 3 willem willem 4096 Mar 25 15:49 Examples
-rw-rw-rw- 1 willem willem  1587938 Mar 25 15:54 InstallationLog.txt
drwxr-xr-x 2 willem willem 4096 Mar 25 15:48 Licenses
-rwxr-xr-x 1 willem willem 32927027 Mar 25 15:49 MaintenanceTool
-rw-r--r-- 1 willem willem 74438846 Mar 25 15:49 MaintenanceTool.dat
-rw-rw-rw- 1 willem willem    16378 Mar 25 15:49 MaintenanceTool.ini
-rw-rw-rw- 1 willem willem  362 Mar 25 15:49 network.xml
-rw-rw-r-- 1 willem willem 7991 Oct 25  2016 QtIcon.png
drwxrwxr-x 3 willem willem 4096 Mar 25 15:48 Tools
-rw-rw-r-- 1 willem willem 7374 Dec 19 13:52 update.rcc

~/src/Qt/5.10.1$ ls -l
total 16
drwxrwxr-x 12 willem willem 4096 Mar 25 15:49 android_armv7
drwxrwxr-x 12 willem willem 4096 Mar 25 15:49 android_x86
drwxrwxr-x 13 willem willem 4096 Mar 25 15:49 gcc_64
drwxrwxr-x 44 willem willem 4096 Mar 25 15:48 Src

When I run the built version, I get a segmentation error before the 
Subsurface GUI starts.


I run the newly-built Subsurface under gdb and get the following:

"Set GPS service update interval to 30"
[Thread 0x7fffd9037700 (LWP 26478) exited]
[New Thread 0x7fffd9037700 (LWP 26481)]
[New Thread 0x7fffc0087700 (LWP 26482)]

Thread 1 "subsurface" received signal SIGSEGV, Segmentation fault.
0x75ffe3f0 in QOpenGLFramebufferObject::handle() const () from 
/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5

(gdb)

Pointing to a problem somewhere deep in Qt-land. I think the first 
obvious question is why is Qt 5.10.1 not used, but Qt 5.5.1?


Kind regards,

willem






--
This message and attachments are subject to a disclaimer.
Please refer to 
http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf for full 
details.

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface