Bug report #11982

Custom UI Form crashes QGIS in Ubuntu

Added by Basil Titovchenko over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Forms
Affected QGIS version:2.6.1 Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:Yes Copied to github as #:20188

Description

I've made a small test project with simple vector layer and custom UI form in Qt4 Designer for editing this layer (as described in Nathan's blog: http://nathanw.net/2012/03/30/custom-qgis-feature-forms-value-binding). But when I've selected geometry on layer and pressed View feature form button QGIS silently crashed. That was in Ununtu 14.04 (QGIS 2.6.1).

After that I've tried the same in Windows 7 (32bit) in various QGIS versions: 2.01, 2.2, 2.4, 2.6 -- all of then open my custom UI form well, as intended.

What was at Ubuntu command line after crash:

$ qgis --noplugins
/usr/bin/qgis.bin: /usr/local/lib/libgdal.so.1: no version information available (required by /usr/bin/qgis.bin)
/usr/bin/qgis.bin: /usr/local/lib/libgdal.so.1: no version information available (required by /usr/lib/libqgis_core.so.2.6.1)
/usr/bin/qgis.bin: /usr/local/lib/libgdal.so.1: no version information available (required by /usr/lib/libqgis_analysis.so.2.6.1)

(qgis.bin:23500): GLib-CRITICAL **: PCRE library is compiled without UTF8 support

(qgis.bin:23500): GLib-CRITICAL **: PCRE library is compiled without UTF8 properties support
Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_en_US]
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
Warning: QGraphicsScene::addItem: item has already been added to this scene
QGIS died on signal 11Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 0
Aborted (core dumped)

Project files in attachment.

test-shape-form-project.qgs - Project file (18.5 KB) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape-form.ui - Custom UI form file (1.81 KB) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape.cpg - Vector layer files below (5 Bytes) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape.dbf (379 Bytes) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape.prj (343 Bytes) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape.qpj (678 Bytes) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape.qpj (678 Bytes) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape.shp (596 Bytes) Basil Titovchenko, 2015-01-12 10:25 PM

test-shape.shx (116 Bytes) Basil Titovchenko, 2015-01-12 10:25 PM


Related issues

Duplicates QGIS Application - Bug report #8760: Custom Form from .ui File crashes QGIS on Ubuntu Closed 2013-10-03

History

#1 Updated by Matthias Kuhn over 5 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

This has already been reported as #8760
See there for more information and a workaround.

Also available in: Atom PDF