Ticket #1418 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Merkaartor crashes when adding new line/node on Windows

Reported by: aleksandar.topuzovic@… Owned by: cbro@…
Priority: blocker Milestone:
Component: merkaartor Version:
Keywords: create line crash Cc:

Description

Tried both with merkaartor 0.11 and 0.12, compiled the SVN version (mingw, gcc 3.4.2, qt 4.4.3, winxpsp3) still crashes. Compiled a debug version, stacktrace:

Crashing when creating a node.

Starting program: D:\TEMP\mer/merkaartor.exe
[New thread 5480.0x3ac]
warning: BTMMHOOK 19.12.2008 21:17:10 Thread<03AC> Hook DLL loaded

[New thread 5480.0x154c]
[New thread 5480.0x101c]
[New thread 5480.0x554]
[New thread 5480.0x13a0]
[New thread 5480.0x3a8]
warning: Lowest section in C:\WINDOWS\system32\xpsp2res.dll is .rsrc at 00011000
[New thread 5480.0x152c]
[New thread 5480.0x13c4]

Program received signal SIGSEGV, Segmentation fault.
0x004f1215 in PropertiesDock::resetValues (this=0x14152138) at PropertiesDock.cpp:463
463                             QWidget* w = TrackPointUi.variableLayout->takeAt(0)->widget();
(gdb) bt
#0  0x004f1215 in PropertiesDock::resetValues (this=0x14152138) at PropertiesDock.cpp:463
#1  0x004f013f in PropertiesDock::switchUi (this=0x14152138) at PropertiesDock.cpp:357
#2  0x004eecdb in PropertiesDock::setSelection (this=0x14152138, aFeature=0x14d82a50)
    at PropertiesDock.cpp:207
#3  0x0049b2db in CreateNodeInteraction::snapMouseReleaseEvent (this=0x14d55ef0, ev=0x22c05c,
    aRoad=0x0) at Interaction/CreateNodeInteraction.cpp:47
#4  0x006352b7 in GenericFeatureSnapInteraction<Road>::mouseReleaseEvent (this=0x14d55ef0,
    event=0x22c05c) at ./Interaction/Interaction.h:102
#5  0x0048d9c8 in MapView::mouseReleaseEvent (this=0x140df288, event=0x22c05c) at MapView.cpp:495
#6  0x01f042cb in QWidget::event (this=<incomplete type>, event=0x22c05c)
    at kernel/qwidget.cpp:7163
#7  0x004908be in MapView::event (this=0x140df288, event=0x22c05c) at MapView.cpp:769
#8  0x01ea76c9 in QApplicationPrivate::notify_helper (this=0x3e5208, receiver=0x140df288,
    e=0x22c05c) at kernel/qapplication.cpp:3803
#9  0x01ea6211 in QApplication::notify (this=0x22fde0, receiver=0x140df288, e=0x22c05c)
    at kernel/qapplication.cpp:3528
#10 0x6a24744e in QCoreApplication::notifyInternal (this=0x22fde0, receiver=0x140df288,
    event=0x22c05c) at kernel/qcoreapplication.cpp:587
#11 0x025f23e4 in QCoreApplication::sendSpontaneousEvent (receiver=0x140df288, event=0x22c05c)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#12 0x01ea4adb in QApplicationPrivate::sendMouseEvent (receiver=0x140df288, event=0x22c05c,
    alienWidget=0x140df288, nativeWidget=0x22fb40, buttonDown=0x27eb3cc,
    lastMouseReceiver=@0x27eb3d0) at kernel/qapplication.cpp:2793
#13 0x01f1a23d in QETWidget::translateMouseEvent (this=0x22fb40, msg=@0x22d88c)
    at kernel/qapplication_win.cpp:3084
#14 0x01f1410e in QtWndProc (hwnd=0x34040a, message=514, wParam=0, lParam=15335927)
    at kernel/qapplication_win.cpp:1543
#15 0x7e418734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#16 0x0034040a in ?? ()
#17 0x00000202 in ?? ()
#18 0x00000000 in ?? ()
(gdb)

Crash when creating a road (crashes after selecting second node)

Starting program: D:\TEMP\mer/merkaartor.exe
[New thread 6040.0x156c]
warning: BTMMHOOK 19.12.2008 21:18:11 Thread<156C> Hook DLL loaded

[New thread 6040.0x63c]
[New thread 6040.0x894]
[New thread 6040.0xe3c]
[New thread 6040.0x16a4]
[New thread 6040.0xaa4]
warning: Lowest section in C:\WINDOWS\system32\xpsp2res.dll is .rsrc at 00011000
[New thread 6040.0x1350]
[New thread 6040.0x1130]
warning: QString::arg: Argument missing: There are <b>3</b> objects in the dirty layer, 3


Program received signal SIGSEGV, Segmentation fault.
0x004f13c7 in PropertiesDock::resetValues (this=0x14152138) at PropertiesDock.cpp:481
481                             QWidget* w = RoadUi.variableLayout->takeAt(0)->widget();
(gdb) bt
#0  0x004f13c7 in PropertiesDock::resetValues (this=0x14152138) at PropertiesDock.cpp:481
#1  0x004f013f in PropertiesDock::switchUi (this=0x14152138) at PropertiesDock.cpp:357
#2  0x004eecdb in PropertiesDock::setSelection (this=0x14152138, aFeature=0x14d5f2c0)
    at PropertiesDock.cpp:207
#3  0x0049f65a in CreateSingleWayInteraction::snapMousePressEvent (this=0x14d4e278,
    anEvent=0x22c05c, aFeature=0x0) at Interaction/CreateSingleWayInteraction.cpp:162
#4  0x00633e5f in GenericFeatureSnapInteraction<MapFeature>::mousePressEvent (
    this=<incomplete type>, event=0x22c05c) at ./Interaction/Interaction.h:94
#5  0x0048d998 in MapView::mousePressEvent (this=0x140df288, event=0x22c05c) at MapView.cpp:489
#6  0x01f042a3 in QWidget::event (this=<incomplete type>, event=0x22c05c)
    at kernel/qwidget.cpp:7159
#7  0x004908be in MapView::event (this=0x140df288, event=0x22c05c) at MapView.cpp:769
#8  0x01ea76c9 in QApplicationPrivate::notify_helper (this=0x3e5208, receiver=0x140df288,
    e=0x22c05c) at kernel/qapplication.cpp:3803
#9  0x01ea6211 in QApplication::notify (this=0x22fde0, receiver=0x140df288, e=0x22c05c)
    at kernel/qapplication.cpp:3528
#10 0x6a24744e in QCoreApplication::notifyInternal (this=0x22fde0, receiver=0x140df288,
    event=0x22c05c) at kernel/qcoreapplication.cpp:587
#11 0x025f23e4 in QCoreApplication::sendSpontaneousEvent (receiver=0x140df288, event=0x22c05c)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#12 0x01ea4adb in QApplicationPrivate::sendMouseEvent (receiver=0x140df288, event=0x22c05c,
    alienWidget=0x140df288, nativeWidget=0x22fb40, buttonDown=0x27eb3cc,
    lastMouseReceiver=@0x27eb3d0) at kernel/qapplication.cpp:2793
#13 0x01f1a23d in QETWidget::translateMouseEvent (this=0x22fb40, msg=@0x22d88c)
    at kernel/qapplication_win.cpp:3084
#14 0x01f1410e in QtWndProc (hwnd=0x340404, message=513, wParam=1, lParam=29360633)
    at kernel/qapplication_win.cpp:1543
#15 0x7e418734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#16 0x00340404 in ?? ()
#17 0x00000201 in ?? ()
#18 0x00000001 in ?? ()
#19 0x01c001f9 in ?? ()
#20 0x01f13682 in qt_is_translatable_mouse_event (message=32585346)
    at kernel/qapplication_win.cpp:1328
#21 0x7e418816 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#22 0x01f13682 in qt_is_translatable_mouse_event (message=0) at kernel/qapplication_win.cpp:1328
#23 0x7e4189cd in USER32!GetWindowLongW () from C:\WINDOWS\system32\user32.dll
#24 0x00000000 in ?? ()
(gdb)

Change History

comment:1 follow-up: ↓ 2 Changed 5 years ago by koying

Could you please try with 0.13-pre1 to see if this still happens.

comment:2 in reply to: ↑ 1 Changed 5 years ago by aleksandar.topuzovic@…

  • Status changed from new to closed
  • Resolution set to fixed

Replying to koying:

Could you please try with 0.13-pre1 to see if this still happens.

The latest SVN fixes this. Thanks.

Note: See TracTickets for help on using tickets.