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

Custom Form from .ui File crashes QGIS on Ubuntu #17469

Closed
qgib opened this issue Oct 3, 2013 · 46 comments
Closed

Custom Form from .ui File crashes QGIS on Ubuntu #17469

qgib opened this issue Oct 3, 2013 · 46 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Forms High Priority Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Oct 3, 2013

Author Name: Akbar Gumbira (Akbar Gumbira)
Original Redmine Issue: 8760
Affected QGIS version: 2.18.7
Redmine category:forms


After .ui file for a form is load, it crashed when the tools Identify Results is used.

Environment:
OS: Ubuntu 12.04
QGIS 2.0.1

akbar@ubuntu:/usr/bin$ qgis
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
No handlers could be found for logger "InaSAFE"

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.Z9373W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.L3573W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.UR7E4W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.7Z7E4W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
QGIS died on signal 11[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fb13ffff700 (LWP 2369)]
[New Thread 0x7fb186383700 (LWP 2364)]
[New Thread 0x7fb186b84700 (LWP 2363)]
[New Thread 0x7fb19fcd6700 (LWP 2357)]
[New Thread 0x7fb1a04d7700 (LWP 2355)]

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffba340000
0x00007fb1b518d48d in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7fb1bc38e7c0 (LWP 2347))]
#_0  0x00007fb1b518d48d in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#_1  0x00000000004e8fb0 in qgisCrash(int) ()
No symbol table info available.
#2  <signal handler called>
No symbol table info available.
#_3  0x000000000083cccf in QFormInternal::domPropertyToVariant(QFormInternal::QAbstractFormBuilder*, QMetaObject const*, QFormInternal::DomProperty const*) ()
No symbol table info available.
#_4  0x00000000007eb219 in QFormInternal::QAbstractFormBuilder::toVariant(QMetaObject const*, QFormInternal::DomProperty*) ()
No symbol table info available.
#_5  0x0000000000804db6 in QFormInternal::QFormBuilder::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) ()
No symbol table info available.
#_6  0x00000000007e2b9f in QFormInternal::FormBuilderPrivate::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) ()
No symbol table info available.
#_7  0x00000000007f4635 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_8  0x0000000000805111 in QFormInternal::QFormBuilder::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_9  0x00000000007e09ce in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_10 0x00000000007f9523 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomUI*, QWidget*) ()
No symbol table info available.
#_11 0x00000000007e1165 in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomUI*, QWidget*) ()
No symbol table info available.
#_12 0x00007fb1b87ea2a2 in QFormInternal::QAbstractFormBuilder::load(QIODevice*, QWidget*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_13 0x00007fb1b87e26ad in QUiLoader::load(QIODevice*, QWidget*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_14 0x00007fb1b8722ddf in QgsAttributeDialog::QgsAttributeDialog(QgsVectorLayer*, QgsFeature*, bool, QgsDistanceArea, QWidget*, bool) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_15 0x00000000005ce9de in QgsFeatureAction::newDialog(bool) ()
No symbol table info available.
#_16 0x00000000005cfef4 in QgsFeatureAction::viewFeatureForm(QgsHighlight*) ()
No symbol table info available.
#_17 0x00000000005c7078 in QgsIdentifyResultsDialog::featureForm() ()
No symbol table info available.
#_18 0x00000000005c79fe in QgsIdentifyResultsDialog::show() ()
No symbol table info available.
#_19 0x0000000000628f41 in QgsMapToolIdentifyAction::canvasReleaseEvent(QMouseEvent*) ()
No symbol table info available.
#_20 0x00007fb1b8757bd3 in QgsMapCanvas::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_21 0x00007fb1b7146144 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_22 0x00007fb1b75063b6 in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_23 0x00007fb1b7730b2b in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_24 0x00007fb1b7d73028 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_25 0x00007fb1b70f585f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_26 0x00007fb1b70fb0bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_27 0x00007fb1b8c821a6 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.2.0.1
No symbol table info available.
#_28 0x00007fb1b7d72e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_29 0x00007fb1b70f6862 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_30 0x00007fb1b7175bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_31 0x00007fb1b7174bae in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_32 0x00007fb1b719e0d2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_33 0x00007fb1b3c30d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_34 0x00007fb1b3c310a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_35 0x00007fb1b3c31164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_36 0x00007fb1b7da23bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_37 0x00007fb1b719dd5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_38 0x00007fb1b7d71c82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_39 0x00007fb1b7d71ed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_40 0x00007fb1b7d76f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_41 0x00000000004e48be in main ()
No symbol table info available.
gdb returned 0



Related issue(s): #20188 (duplicates), #22154 (relates), #24550 (duplicates), #25162 (duplicates)
Redmine related issue(s): 11982, 14152, 16650, 17264


@qgib
Copy link
Contributor Author

qgib commented Oct 3, 2013

Author Name: Giovanni Manghi (@gioman)


  • crashes_corrupts_data was changed from 0 to 1
  • priority_id was changed from Normal to High
  • fixed_version_id was configured as Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Oct 4, 2013

Author Name: Matthias Kuhn (@m-kuhn)


We have had the same problem. This only appeared on Ubuntu 12.04 so far.

Here it was related to having "geometry" and "size" properties in the form. To reproduce assign a simple .ui with one of these properties specified on a widget.

Workaround:
Manually delete "geometry" and "size" properties from the .ui file (open with text or xml editor)


  • operating_system was changed from to Ubuntu
  • os_version was changed from to 12.04

@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2013

Author Name: Klas Karlsson (@klakar)


Same problem.

Very simple shape files and a very simple ui-file created in Qt4 Designer crashes QGIS without any warning!

No geometry, just simple text attributes with line edit forms.

(Only tested on Ubuntu 12.04 and QGIS 2.0.1)


  • fixed_version_id removed Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2013

Author Name: Matthias Kuhn (@m-kuhn)


The term geometry does not refer to a QGIS geometry, but to a widget property geometry. Open your .ui file in a text editor and search for "geometry" and "size" and remove the entire xml element (@ to @) .

@qgib
Copy link
Contributor Author

qgib commented Mar 17, 2014

Author Name: Stefan Sylla (Stefan Sylla)


I experienced the same issue now on Ubuntu 13.10 64 bit with QGIS 2.2. The custom UI was working perfectly under QGIS 2.0, but since QGIS 2.2 the application crashes when I try to open the form via the identify tool. The fix proposed by Matthias Kuhn is not helping.


  • assigned_to_id was configured as Akbar Gumbira
  • 6993 was configured as qgis22_ubuntu1310_x64.error

@qgib
Copy link
Contributor Author

qgib commented Mar 17, 2014

Author Name: Matthias Kuhn (@m-kuhn)


Hi Stefan. Can you attach the .ui file you were trying to load?

Concerning the original bug, I think closing this and reporting a bug on ubuntu will help more than keeping this issue here open.

@qgib
Copy link
Contributor Author

qgib commented Mar 17, 2014

Author Name: Stefan Sylla (Stefan Sylla)


Hi Matthias, attached my UI-file. For the ubuntu bug reporting I am not sure where to post that kind of issue. Any hint?


  • 6997 was configured as project.ui

@qgib
Copy link
Contributor Author

qgib commented Mar 17, 2014

Author Name: Matthias Kuhn (@m-kuhn)


Loads fine for me, but I'm not on Ubuntu. Would be nice if someone with Ubuntu (13.10) could verify.

One can try to file a bug in the official Ubuntu bugtracker (I guess that's https://bugs.launchpad.net) as it seems to be a problem of their qt libraries.

@qgib
Copy link
Contributor Author

qgib commented Mar 26, 2014

Author Name: Imre Molnar (Imre Molnar)


I can verify. I have same problem like Klas Karlsson and Stefan Sylla as above on Ubuntu 13.10 32 bit with QGIS 2.2. But on Windows 8 64 bit with QGIS 2.2 work fine that shape file and ui file which kill the QGIS on Ubuntu.

@qgib
Copy link
Contributor Author

qgib commented Apr 10, 2014

Author Name: Hugo Mercier (@mhugo)


I've had the same problem.
On my small test files, removing geometry properties from the .ui file works.
I've tested Akbar's file both with and without geometry XML properties (xubuntu 13.10 upgraded from a 12.10) and it does not work.
Matthias, do you have more clues ? It seems to come from QT, within their QUiLoader ... but can't find anything related

@qgib
Copy link
Contributor Author

qgib commented Apr 12, 2014

Author Name: Matthias Kuhn (@m-kuhn)


Personally I've got no problems on my Linux systems (Fedora). I've only observed this happen on Ubuntu 12.04 and found the geometry property workaround with some debugging.

I assume it's a Qt bug. You could try to create a small sample pyqt script to load that ui file and see if it crashes as well. If yes it would be a nice attachment for a bug on the ubuntu tracker.

@qgib
Copy link
Contributor Author

qgib commented May 16, 2014

Author Name: Jorge Rocha (@jgrocha)


Following Alexandre report on the dev mailing list [subject: Users Manual Form annotations challenge], I've created a simple python script to open the form outside QGIS in Ubuntu 12.04 (to open his form https://www.dropbox.com/s/4a3mqni2becruh9/annotations_form.ui).

The script is:

import sys
from PyQt4 import QtCore, QtGui, uic
form_class = uic.loadUiType("annotations_form.ui")[0]
class MyWindowClass(QtGui.QMainWindow, form_class):
    def __init__(self, parent=None):
        QtGui.QMainWindow.__init__(self, parent)
        self.setupUi(self)
app = QtGui.QApplication(sys.argv)
myWindow = MyWindowClass(None)
myWindow.show()
app.exec_()

The form opens, but it is not enough to decide if it is a QT bug or not.


  • 7251 was configured as Dialog_013.png

@qgib
Copy link
Contributor Author

qgib commented Jun 16, 2014

Author Name: Jürgen Fischer (@jef-n)


  • assigned_to_id removed Akbar Gumbira
  • category_id was configured as Forms

@qgib
Copy link
Contributor Author

qgib commented Nov 10, 2014

Author Name: Ahmet Emre Aladag (Ahmet Emre Aladag)


I had this issue in (QGIS 2.6) Ubuntu 12.04, Mint 13, Mint 17(=Ubuntu 14.04). All had core dump.

(I could not test it on Ubuntu 14.10 since it didn't have dependencies QGis required. Works fine on MacOSX)

So what could the problem be?

@qgib
Copy link
Contributor Author

qgib commented Dec 10, 2014

Author Name: Matthias Kuhn (@m-kuhn)


Searching the internet brought me to these possibly related reports:

https://bugs.kde.org/show_bug.cgi?id=182810
which in turn points to this
https://bugreports.qt-project.org/browse/QTBUG-437

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2015

Author Name: Luca Lanteri (Luca Lanteri)


I don't know if it's a Qt bug but if it could help this is the situation on my PC.
Custom form with logic crash on qgis 2.8.3 and qgis 2.10. It work on fine with master.

a test project can be downloaded on https://github.com/lucalanteri/mzs

@qgib
Copy link
Contributor Author

qgib commented Jan 19, 2016

Author Name: Sandro Santilli (@strk)


If you confirm it works with current master (2.14-pre, 69cb0c4 at time of writing) I'd close this.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 27, 2016

Author Name: Alexandre Neto (@SrNetoChan)


I have recently opened this issue #22154

As it seems to be a duplicate, It will be closed.

With my form, QGIS master still crashes. Sandro, what was the form that you tried?

Thanks

@qgib
Copy link
Contributor Author

qgib commented Jan 27, 2016

Author Name: Alexandre Neto (@SrNetoChan)


BTW, with my example form, in 2.8.3 it works ok.

@qgib
Copy link
Contributor Author

qgib commented Mar 7, 2016

Author Name: Fred Lehodey (Fred Lehodey)


Same problem:
Mint17 (ubuntu 14.04) qgis 2.14.0
(Matthias's workaround doesn't work)

@qgib
Copy link
Contributor Author

qgib commented May 21, 2016

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 2.0.1 to 2.14.0
  • status_id was changed from Feedback to Open
  • priority_id was changed from High to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented May 27, 2016

Author Name: Sylvain Beorchia (Sylvain Beorchia)


Same problem here too (Qgis 2.14.3 / Kubuntu 14.04)
I've also tried the "project.ui" provided by Stefan Sylla. It crashes Qgis.

@qgib
Copy link
Contributor Author

qgib commented Jun 6, 2016

Author Name: Sylvain Beorchia (Sylvain Beorchia)


In complement, i tried to load and display my .ui file directly from PyQt and it works. The same with PySide.

@qgib
Copy link
Contributor Author

qgib commented Jun 6, 2016

Author Name: Matthias Kuhn (@m-kuhn)


  • subject was changed from Custom Form from .ui File Crashed QGIS to Custom Form from .ui File crashes QGIS on Ubuntu

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2016

Author Name: Sandro Santilli (@strk)


  • status_id was changed from Open to In Progress
  • assigned_to_id was configured as Sandro Santilli

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2016

Author Name: Sandro Santilli (@strk)


I've tried loading the .ui file in final-2_16_3-45-g61a0a1e and final-2_14_7-32-g35ddf1f, and both load the .ui just fine (as form annotations) -- is that's how you loaded it or can you give instructions to how else to load the .ui ?

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2016

Author Name: Sandro Santilli (@strk)


Note: my non-crashing tests were made on Ubuntu 16.04 with Qt 4.8.7

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2016

Author Name: Sandro Santilli (@strk)


  • status_id was changed from In Progress to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 18, 2016

Author Name: Sandro Santilli (@strk)


  • assigned_to_id removed Sandro Santilli

@qgib
Copy link
Contributor Author

qgib commented Oct 27, 2016

Author Name: Sylvain Beorchia (Sylvain Beorchia)


I've just made a build of the master, and the problem is solved for me (see my posts above).
Using the build version is fine. Using the one installed with the packages is not.

(Unbuntu 14.04).

@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2016

Author Name: Diego Carvalho (Diego Carvalho)


I'm having the same problem.

My environment is as follows:
Ubuntu 16.04

Version of QGIS 2.18.1
QGIS version code 0cfd7d8
Compiled on Qt 4.8.7
Running on Qt 4.8.7
Compiled on GDAL / OGR 1.11.3
Running on GDAL / OGR 1.11.3
Compiled on GEOS 3.5.0-CAPI-1.9.0
Running on GEOS 3.5.0-CAPI-1.9.0 r4084
Client version PostgreSQL 9.5.2
SpatiaLite Version 4.3.0a
Version of QWT 5.2.3
PROJ.4 Version 492
Version QScintilla2 2.9.1

@qgib
Copy link
Contributor Author

qgib commented Jan 2, 2017

Author Name: Giovanni Manghi (@gioman)


  • os_version was changed from 12.04 to
  • status_id was changed from Feedback to Open
  • operating_system was changed from Ubuntu to
  • version was changed from 2.14.0 to 2.18.1

@qgib
Copy link
Contributor Author

qgib commented Jan 7, 2017

Author Name: Matthias Kuhn (@m-kuhn)


I think for this issue the platform is important. I haven't seen any reports except for Ubuntu.

I really hope we can just close this with QGIS 3.0 (probably due to the update to Qt 5).


  • operating_system was changed from to Ubuntu

@qgib
Copy link
Contributor Author

qgib commented Mar 3, 2017

Author Name: Giovanni Manghi (@gioman)


Is this still an issue on 2.18.4?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Apr 29, 2017

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open
  • description was changed from After .ui file for a form is load, it crashed when the tools Identify Results is used.

Environment:
OS: Ubuntu 12.04
QGIS 2.0.1

akbar@ubuntu:/usr/bin$ qgis
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
No handlers could be found for logger "InaSAFE"

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.Z9373W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.L3573W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.UR7E4W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.7Z7E4W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
QGIS died on signal 11[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fb13ffff700 (LWP 2369)]
[New Thread 0x7fb186383700 (LWP 2364)]
[New Thread 0x7fb186b84700 (LWP 2363)]
[New Thread 0x7fb19fcd6700 (LWP 2357)]
[New Thread 0x7fb1a04d7700 (LWP 2355)]

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffba340000
0x00007fb1b518d48d in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7fb1bc38e7c0 (LWP 2347))]
#_0  0x00007fb1b518d48d in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#_1  0x00000000004e8fb0 in qgisCrash(int) ()
No symbol table info available.
#2  
No symbol table info available.
#_3  0x000000000083cccf in QFormInternal::domPropertyToVariant(QFormInternal::QAbstractFormBuilder*, QMetaObject const*, QFormInternal::DomProperty const*) ()
No symbol table info available.
#_4  0x00000000007eb219 in QFormInternal::QAbstractFormBuilder::toVariant(QMetaObject const*, QFormInternal::DomProperty*) ()
No symbol table info available.
#_5  0x0000000000804db6 in QFormInternal::QFormBuilder::applyProperties(QObject*, QList const&) ()
No symbol table info available.
#_6  0x00000000007e2b9f in QFormInternal::FormBuilderPrivate::applyProperties(QObject*, QList const&) ()
No symbol table info available.
#_7  0x00000000007f4635 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_8  0x0000000000805111 in QFormInternal::QFormBuilder::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_9  0x00000000007e09ce in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_10 0x00000000007f9523 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomUI*, QWidget*) ()
No symbol table info available.
#_11 0x00000000007e1165 in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomUI*, QWidget*) ()
No symbol table info available.
#_12 0x00007fb1b87ea2a2 in QFormInternal::QAbstractFormBuilder::load(QIODevice*, QWidget*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_13 0x00007fb1b87e26ad in QUiLoader::load(QIODevice*, QWidget*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_14 0x00007fb1b8722ddf in QgsAttributeDialog::QgsAttributeDialog(QgsVectorLayer*, QgsFeature*, bool, QgsDistanceArea, QWidget*, bool) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_15 0x00000000005ce9de in QgsFeatureAction::newDialog(bool) ()
No symbol table info available.
#_16 0x00000000005cfef4 in QgsFeatureAction::viewFeatureForm(QgsHighlight*) ()
No symbol table info available.
#_17 0x00000000005c7078 in QgsIdentifyResultsDialog::featureForm() ()
No symbol table info available.
#_18 0x00000000005c79fe in QgsIdentifyResultsDialog::show() ()
No symbol table info available.
#_19 0x0000000000628f41 in QgsMapToolIdentifyAction::canvasReleaseEvent(QMouseEvent*) ()
No symbol table info available.
#_20 0x00007fb1b8757bd3 in QgsMapCanvas::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_21 0x00007fb1b7146144 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_22 0x00007fb1b75063b6 in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_23 0x00007fb1b7730b2b in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_24 0x00007fb1b7d73028 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_25 0x00007fb1b70f585f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_26 0x00007fb1b70fb0bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_27 0x00007fb1b8c821a6 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.2.0.1
No symbol table info available.
#_28 0x00007fb1b7d72e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_29 0x00007fb1b70f6862 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_30 0x00007fb1b7175bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_31 0x00007fb1b7174bae in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_32 0x00007fb1b719e0d2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_33 0x00007fb1b3c30d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_34 0x00007fb1b3c310a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_35 0x00007fb1b3c31164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_36 0x00007fb1b7da23bf in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_37 0x00007fb1b719dd5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_38 0x00007fb1b7d71c82 in QEventLoop::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_39 0x00007fb1b7d71ed7 in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_40 0x00007fb1b7d76f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_41 0x00000000004e48be in main ()
No symbol table info available.
gdb returned 0
to After .ui file for a form is load, it crashed when the tools Identify Results is used.

Environment:
OS: Ubuntu 12.04
QGIS 2.0.1

akbar@ubuntu:/usr/bin$ qgis
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
No handlers could be found for logger "InaSAFE"

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.Z9373W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.L3573W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.UR7E4W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.7Z7E4W': No such file or directory

(qgis.bin:2347): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
QGIS died on signal 11[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fb13ffff700 (LWP 2369)]
[New Thread 0x7fb186383700 (LWP 2364)]
[New Thread 0x7fb186b84700 (LWP 2363)]
[New Thread 0x7fb19fcd6700 (LWP 2357)]
[New Thread 0x7fb1a04d7700 (LWP 2355)]

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffba340000
0x00007fb1b518d48d in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7fb1bc38e7c0 (LWP 2347))]
#_0  0x00007fb1b518d48d in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#_1  0x00000000004e8fb0 in qgisCrash(int) ()
No symbol table info available.
#2  
No symbol table info available.
#_3  0x000000000083cccf in QFormInternal::domPropertyToVariant(QFormInternal::QAbstractFormBuilder*, QMetaObject const*, QFormInternal::DomProperty const*) ()
No symbol table info available.
#_4  0x00000000007eb219 in QFormInternal::QAbstractFormBuilder::toVariant(QMetaObject const*, QFormInternal::DomProperty*) ()
No symbol table info available.
#_5  0x0000000000804db6 in QFormInternal::QFormBuilder::applyProperties(QObject*, QList const&) ()
No symbol table info available.
#_6  0x00000000007e2b9f in QFormInternal::FormBuilderPrivate::applyProperties(QObject*, QList const&) ()
No symbol table info available.
#_7  0x00000000007f4635 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_8  0x0000000000805111 in QFormInternal::QFormBuilder::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_9  0x00000000007e09ce in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomWidget*, QWidget*) ()
No symbol table info available.
#_10 0x00000000007f9523 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomUI*, QWidget*) ()
No symbol table info available.
#_11 0x00000000007e1165 in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomUI*, QWidget*) ()
No symbol table info available.
#_12 0x00007fb1b87ea2a2 in QFormInternal::QAbstractFormBuilder::load(QIODevice*, QWidget*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_13 0x00007fb1b87e26ad in QUiLoader::load(QIODevice*, QWidget*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_14 0x00007fb1b8722ddf in QgsAttributeDialog::QgsAttributeDialog(QgsVectorLayer*, QgsFeature*, bool, QgsDistanceArea, QWidget*, bool) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_15 0x00000000005ce9de in QgsFeatureAction::newDialog(bool) ()
No symbol table info available.
#_16 0x00000000005cfef4 in QgsFeatureAction::viewFeatureForm(QgsHighlight*) ()
No symbol table info available.
#_17 0x00000000005c7078 in QgsIdentifyResultsDialog::featureForm() ()
No symbol table info available.
#_18 0x00000000005c79fe in QgsIdentifyResultsDialog::show() ()
No symbol table info available.
#_19 0x0000000000628f41 in QgsMapToolIdentifyAction::canvasReleaseEvent(QMouseEvent*) ()
No symbol table info available.
#_20 0x00007fb1b8757bd3 in QgsMapCanvas::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libqgis_gui.so.2.0.1
No symbol table info available.
#_21 0x00007fb1b7146144 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_22 0x00007fb1b75063b6 in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_23 0x00007fb1b7730b2b in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_24 0x00007fb1b7d73028 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_25 0x00007fb1b70f585f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_26 0x00007fb1b70fb0bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_27 0x00007fb1b8c821a6 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.2.0.1
No symbol table info available.
#_28 0x00007fb1b7d72e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_29 0x00007fb1b70f6862 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_30 0x00007fb1b7175bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_31 0x00007fb1b7174bae in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_32 0x00007fb1b719e0d2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_33 0x00007fb1b3c30d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_34 0x00007fb1b3c310a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_35 0x00007fb1b3c31164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_36 0x00007fb1b7da23bf in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_37 0x00007fb1b719dd5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_38 0x00007fb1b7d71c82 in QEventLoop::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_39 0x00007fb1b7d71ed7 in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_40 0x00007fb1b7d76f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_41 0x00000000004e48be in main ()
No symbol table info available.
gdb returned 0
  • version was changed from 2.18.1 to 2.18.7

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 1

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Severe/Regression to High

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented May 11, 2017

Author Name: Paolo Frizzera (Paolo Frizzera)


I'm having the same problem: with custom form qgis crash !!
I tried to follow the training manual (x 2.14: 6.3.6 - 6.3.7) with different version of qgis and Ubuntu: same result

Ubuntu 14.04 LTS x86_64 (updated):
qgis: 2.14.14
qt: 4.8.6

Ubuntu 16.04 LTS x86_64 (updated):
qgis: 2.18.7
qt: 4.8.7

OSGeo Live 10.5 (installed and updated - Lubuntu 16.04 - x86_64):
qgis: 2.14.11
qt: 4.8.7

@qgib
Copy link
Contributor Author

qgib commented Jun 8, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Jul 4, 2017

Author Name: Clément MARCEL (Clément MARCEL)


I have the same problem on Ubuntu where:

  • QGis 2.14 is installed through repository,
  • QGis 2.18 is compiled from source.

Loading UI file in QGis 2.18 or in minimal stand-alone Qt application will result to a crash (only when loading custom widgets).

Loaded modules analysis shows that the following module is used:

@/usr/lib/x86_64-linux-gnu/qt4/plugins/designer/libqgis_customwidgets.so.2.14.16@

even if I use stand-alone Qt app. The same is loaded with QGis 2.18 version.

Workaround:
I can remove crash by deleting this library. QGis 2.18 loads successfully forms. QtDesigner fails to load custom widgets but only warnings are reported.

Fix:
I can fix this issue on my machine - keeping @libqgis_customwidgets.so.2.14.16@ installed - by forcing @QUILoader@ not to use this plugin by resetting its plugins paths:

@QUiLoader loader;
+loader.clearPluginPaths();@

(This object is used 3 times in current QGis 2.18 source code)

@qgib
Copy link
Contributor Author

qgib commented Jul 4, 2017

Author Name: Hugo Mercier (@mhugo)


Clément: good catch !

Do you know why 2.18 is linked to the 2.14 version of custom widgets ?

@qgib
Copy link
Contributor Author

qgib commented Jul 4, 2017

Author Name: Clément MARCEL (Clément MARCEL)


Hugo Mercier wrote:

Do you know why 2.18 is linked to the 2.14 version of custom widgets ?

There is no linking between dynamic libraries. @QUILoader@ loads itself all plugins available in search paths. If @libqgis_customwidgets.so.2.14.16@ is deployed in standard Qt plugin path it will be loaded by @qtDesigner@ or @QUILoader@ instance for creating custom QGis widgets. There seams to be no mechanism that can check for QGis plugin version (only between Qt versions).

@libqgis_customwidgets.so.2.14.16@ is linked to @libqgis_gui.so.2.14.16@

By calling @QUILoader::pluginPaths()@ we can see that Qt stores some paths like @/usr/lib/x86_64-linux-gnu/qt4/plugins/designer@ (maybe hard-coded).

I try to manually deploy libqgis_customwidgets.so.2.18.10 to Qt standard path & it works (keeping version 2.14 in the same path).

But because custom widgets implementations are stored into QGis shared libraries (@libqgis_gui.so@ ?) & QGis doesn't need @libqgis_customwidgets.so@ I have clear all plugin paths for all @QUILoader@ to keep QGis custom widgets plugin in standard path (and allow uses of QtDesigner) & to force QGis to ignore these hard-coded paths.

@qgib
Copy link
Contributor Author

qgib commented Oct 10, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2019

Author Name: Loïc BARTOLETTI (@lbartoletti)


Please test with QGIS 3.4 - QGIS 2 reached it's end of life.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2019

Author Name: Giovanni Manghi (@gioman)


Closing for lack of feedback.


  • status_id was changed from Feedback to Closed
  • resolution was changed from to no timely feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Forms High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant