Opened 13 years ago

Closed 12 years ago

#1440 closed bug (fixed)

editing layer name broken - up to a segfault

Reported by: msieczka Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.0.3
Component: Map Legend Version: Trunk
Keywords: Cc: pcav
Must Fix for Release: Yes Platform: Debian
Platform Version: Ubuntu 9.04, WIndows Awaiting user input: no

Description

  1. Add, say, 3 shapefiles.
  1. Highlight the 1st one.
  1. Press F2 to change it's name - all is OK. You change the name, press Enter.
  1. Highlight another one.
  1. Press F2 to change it's name - nothing happens this time. Bad.
  1. Right click it > change name - OK, but the first letter you enter does not pop in. Bad. Anyway - finish changing the name, Enter.
  1. As F2 is not working anymore, right click another layer, start changing its name but don't confirm with Enter. Select another layer on the list or press ESC instead. This way you will end up with many layers in the course of name change, which should not take place - pressing ESC or selecting another layer while editing some layer's name should IMO cancel edits. Moreover, sometimes QGIS crashes in this circumstances:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc98d40f710 (LWP 11157)]
0x00007fc98c30a2e9 in QStyledItemDelegate::eventFilter ()
   from /usr/lib/libQtGui.so.4
(gdb) bt
#0  0x00007fc98c30a2e9 in QStyledItemDelegate::eventFilter ()
   from /usr/lib/libQtGui.so.4
#1  0x00007fc98c8d6658 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#2  0x00007fc98bdfba2c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#3  0x00007fc98be04684 in QApplication::notify () from /usr/lib/libQtGui.so.4
#4  0x00007fc98cca770e in QgsApplication::notify (this=0x7fff9554e2a0, 
    receiver=0x2ce0340, event=0x7fff9554cf90)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsapplication.cpp:78
#5  0x00007fc98c8d7381 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#6  0x00007fc98be89fe4 in ?? () from /usr/lib/libQtGui.so.4
#7  0x00007fc98be8c29e in ?? () from /usr/lib/libQtGui.so.4
#8  0x00007fc98be66120 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#9  0x00007fc98be8dc84 in ?? () from /usr/lib/libQtGui.so.4
#10 0x00007fc98873a78b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#11 0x00007fc98873df5d in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007fc98873e11b in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#13 0x00007fc98c8ff70f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#14 0x00007fc98be8d44f in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007fc98c8d5ca2 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#16 0x00007fc98c8d5e2d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#17 0x00007fc98c8d82dd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#18 0x00000000004b5599 in main (argc=1, argv=0x7fff9554e998)
    at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:683

Debian testing amd64, QGIS SVN trunk r9725, QT 4.4.3.

Change History (2)

comment:1 Changed 12 years ago by lutra

Cc: pcav added
Platform Version: Ubuntu 9.04, WIndows

Actually this seems to me that have been fixed, at least for what concerns the renaming layers trough the "F2" key.

Please give it a try and report back.

I tested QGis 1.2 under both Ubuntu 9.04 (trunk) and Windows (osgeo4w) and all seems fine. Now if you try renaming a layer with the F2 key, you can exit/stop editing the name by just clicking another layer, pressing Enter or pressing ESC.

Still bugged is renaming trough

Right click --> rename

but there is another ticket open on this

https://trac.osgeo.org/qgis/ticket/1045

I'll drop this note there. Seems that could be easily fixed.

comment:2 Changed 12 years ago by lutra

Resolution: fixed
Status: newclosed

Closing. Reopen if necessary.

Note: See TracTickets for help on using tickets.