Bug report #1255

georeferencer: refuses to delete some GCPs or deletes wrong ones, crashes at times

Added by Maciej Sieczka - about 12 years ago. Updated about 11 years ago.

Status:Closed
Priority:Low
Assignee:Magnus Homann
Category:C++ Plugins
Affected QGIS version: Regression?:No
Operating System:Debian Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11315

Description

Trunk r9205, QT 4.4.0, Debian testing amd64.

1. load a bitmap in georeferencer

2. add 4 GCPs at corners

3. pres "Create" ("Linear" transformation)

4. you realise point coordinates are bogus

5. try to delete all points - one of them will resist (at least for me); QGIS also sometimes deletes another point instead of the one you click

Sometimes deleting the points or if "Create and load" is done instead QGIS crashes:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f5771f887a0 (LWP 28789)]
0x00007f5762626f7e in [[QgsPointDialog]]::openImageFile (this=0x29afbd0, layerPath=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 3101}, alloc = 0, size = 0, data = 0x93339a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 62}, alloc = 0, size = 0, data = 0x7f577174085a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7fff7a0bf310, static codecForCStrings = 0x0})
    at /home/shoofi/src/straight/qgis-trunk/src/plugins/georeferencer/qgspointdialog.cpp:101
101        delete *it;
(gdb) bt
#0  0x00007f5762626f7e in [[QgsPointDialog]]::openImageFile (this=0x29afbd0, 
    layerPath=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 3101}, alloc = 0, size = 0, data = 0x93339a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 62}, alloc = 0, size = 0, data = 0x7f577174085a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7fff7a0bf310, static codecForCStrings = 0x0})
    at /home/shoofi/src/straight/qgis-trunk/src/plugins/georeferencer/qgspointdialog.cpp:101
#3905  0x00007f576261c253 in [[QgsGeorefPluginGui]]::on_pbnSelectRaster_clicked (
    this=0x23cdd40)
    at /home/shoofi/src/straight/qgis-trunk/src/plugins/georeferencer/plugingui.cpp:157
#3906  0x00007f5762631bb5 in [[QgsGeorefPluginGui]]::qt_metacall (this=0x23cdd40, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff7a0bf460)
    at /home/shoofi/src/straight/qgis-trunk/build/src/plugins/georeferencer/moc_plugingui.cxx:73
#3907  0x00007f577146d764 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#3908  0x00007f5770f066e7 in QAbstractButton::clicked ()
   from /usr/lib/libQtGui.so.4
#3909  0x00007f5770c8c53b in ?? () from /usr/lib/libQtGui.so.4
#3910  0x00007f5770c8c642 in QAbstractButton::click () from /usr/lib/libQtGui.so.4
#3911  0x00007f5770d9a522 in QDialog::keyPressEvent () from /usr/lib/libQtGui.so.4
#3912  0x00007f57709da26c in QWidget::event () from /usr/lib/libQtGui.so.4
#3913  0x00007f5770987e5d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#10 0x00007f57709909d4 in QApplication::notify () from /usr/lib/libQtGui.so.4
#3914 0x00007f5771459411 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#3915 0x00007f5770a15d04 in ?? () from /usr/lib/libQtGui.so.4
#3916 0x00007f5770a17fbe in ?? () from /usr/lib/libQtGui.so.4
#3917 0x00007f57709f1f10 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#3918 0x00007f5770a199cc in ?? () from /usr/lib/libQtGui.so.4
#3919 0x00007f576d521892 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#3920 0x00007f576d52501d in ?? () from /usr/lib/libglib-2.0.so.0
#3921 0x00007f576d5251db in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#3922 0x00007f577148183f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#3923 0x00007f5770a1916f in ?? () from /usr/lib/libQtGui.so.4
#3924 0x00007f5771457d22 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#3925 0x00007f5771457ead in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#3926 0x00007f577145a37d in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#3927 0x00000000004b2599 in main (argc=1, argv=0x7fff7a0c1518)
    at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:683

History

#1 Updated by Maciej Sieczka - about 12 years ago

... and, for some reason, the X coord in GCPs file is always integer while the Y is always floating point; example:

mapX    mapY    pixelX    pixelY
883500    236000.000000000000000    464.328    -452.326304572328695
883500    236800.000000000000000    13157    -446.548770001110540
883000    236800.000000000000000    13159.6    -8376.956679517299563
883000    236000.000000000000000    463.547    -8388.023781212841641

#2 Updated by Magnus Homann about 12 years ago

  • Status changed from Open to In Progress

Please submit new bugs or change descriptions if you find unrelated bugs. Hard to search bug queue otherwise.

Fixed the last part in 9c0f6bb0 (SVN r9360).

#3 Updated by Magnus Homann about 12 years ago

  • Resolution set to fixed
  • Status changed from In Progress to Closed

And fixed the bug in .

#4 Updated by Anonymous about 11 years ago

Milestone Version 1.0.0 deleted

Also available in: Atom PDF