-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
Author Name: Giovanni Manghi (@gioman)
|
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:
|
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)
|
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 @) . |
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.
|
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. |
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?
|
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. |
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. |
Author Name: Hugo Mercier (@mhugo) I've had the same problem. |
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. |
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:
The form opens, but it is not enough to decide if it is a QT bug or not.
|
Author Name: Jürgen Fischer (@jef-n)
|
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? |
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 |
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. a test project can be downloaded on https://github.com/lucalanteri/mzs |
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 |
Author Name: Alexandre Neto (@SrNetoChan) BTW, with my example form, in 2.8.3 it works ok. |
Author Name: Fred Lehodey (Fred Lehodey) Same problem: |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Sylvain Beorchia (Sylvain Beorchia) Same problem here too (Qgis 2.14.3 / Kubuntu 14.04) |
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. |
Author Name: Matthias Kuhn (@m-kuhn)
|
Author Name: Sandro Santilli (@strk)
|
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 ? |
Author Name: Sandro Santilli (@strk) Note: my non-crashing tests were made on Ubuntu 16.04 with Qt 4.8.7 |
Author Name: Sandro Santilli (@strk)
|
Author Name: Sandro Santilli (@strk)
|
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). (Unbuntu 14.04). |
Author Name: Diego Carvalho (Diego Carvalho) I'm having the same problem. My environment is as follows: Version of QGIS 2.18.1 |
Author Name: Giovanni Manghi (@gioman)
|
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).
|
Author Name: Giovanni Manghi (@gioman) Is this still an issue on 2.18.4?
|
Author Name: Giovanni Manghi (@gioman)
Environment: 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 0to After .ui file for a form is load, it crashed when the tools Identify Results is used. Environment: 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
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Frizzera (Paolo Frizzera) I'm having the same problem: with custom form qgis crash !! Ubuntu 14.04 LTS x86_64 (updated): Ubuntu 16.04 LTS x86_64 (updated): OSGeo Live 10.5 (installed and updated - Lubuntu 16.04 - x86_64): |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Clément MARCEL (Clément MARCEL) I have the same problem on Ubuntu where:
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: Fix: @QUiLoader loader; (This object is used 3 times in current QGis 2.18 source code) |
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 ? |
Author Name: Clément MARCEL (Clément MARCEL) Hugo Mercier wrote:
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. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Loïc BARTOLETTI (@lbartoletti) Please test with QGIS 3.4 - QGIS 2 reached it's end of life.
|
Author Name: Giovanni Manghi (@gioman) Closing for lack of feedback.
|
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
Related issue(s): #20188 (duplicates), #22154 (relates), #24550 (duplicates), #25162 (duplicates)
Redmine related issue(s): 11982, 14152, 16650, 17264
The text was updated successfully, but these errors were encountered: