Crash when on previous use background plugin has been used #2262
Comments
Author: aleksandar.topuzovic[at]gmail.com I think that the problem is that the last adapter's UUID is saved to preferences on OSM and after reading the preferences and the last used adapter program crashes. Quick fix is to allways get the NONE_ADAPTER_UUID. |
Author: Koying Could you try with the following patch, I suspect a Mac only issue with empty QPixmap. === modified file 'src/Maps/ImageMapLayer.cpp'
|
Author: aleksandar.topuzovic[at]gmail.com Still no luck ;(
|
Author: aleksandar.topuzovic[at]gmail.com I have noticed that the debug prints out the following message:
It displays that even after I have deleted the BackgroundCache form .merkaartor directory. |
Author: koying (In [17651]) ADD : Allow all platforms to connect to a gpsd backend |
Author: aleksandar.topuzovic[at]gmail.com Sorry but this still doesn't fix it for me.
|
Author: Koying Is this still valid with more recent Qt releases? |
Author: aleksandar.topuzovic[at]gmail.com After upgrading to 4.6 it's OK. |
Reporter: aleksandar.topuzovic[at]gmail.com
[Submitted to the original trac issue database at 8.55pm, Friday, 4th September 2009]
When I start merkaartor for the first time it starts without problems, then I select a background adapter and continue using merkaartor and close it. Then starting from now on merkaartor crashes, to avoid crashing I have to quickly go to Layer - "Map - None" and click none. Then it works OK, then I can go again and select the background adapter and use it (but to prevent further crashes before exiting I have to choose None as the background image adapter.
(gdb) run
Starting program: /Users/aco/devel/merkaartor/binaries/bin/merkaartor.app/Contents/MacOS/merkaartor
Reading symbols for shared libraries . done
**** "2009-09-05T00:04:54" -- Starting "Merkaartor 0.14"
------- "using QT version 4.5.2 (built with 4.5.2)"
------- on Mac OS/X
MerkaartorPreferences::fromOsmPref : "GET /api/0.6/user/preferences/"
Reading symbols for shared libraries + done
Reading symbols for shared libraries + done
Reading symbols for shared libraries + done
Reading symbols for shared libraries + done
Reading symbols for shared libraries + done
Reading symbols for shared libraries + done
Reading symbols for shared libraries + done
ImageMapLayer::drawFull: getting: "qrc:/Html/ymap.html?WIDTH=868&HEIGHT=605&BBOX=16.698897,42.970770,16.737177,42.951173"
BrowserImageManager::launchRequest: "qrc:/Html/ymap.html?WIDTH=868&HEIGHT=605&BBOX=16.698897,42.970770,16.737177,42.951173" Hash: "WWFob28hcXJjOi9IdG1sL3ltYXAuaHRtbD9XSURUSD04NjgmSEVJR0hUPTYwNSZCQk9YPTE2LjY5ODg5Nyw0Mi45NzA3NzAsMTYuNzM3MTc3LDQyLjk1MTE3Mw=="
ReqSize: 868 , 605
Size: 211 , 146 , 657 , 458
---- 446 , 312
Coord: 42.9708 , 16.6989 , 42.9512 , 16.7372
BrowserImageManager::pageLoadFinished: Hash: "WWFob28hcXJjOi9IdG1sL3ltYXAuaHRtbD9XSURUSD04NjgmSEVJR0hUPTYwNSZCQk9YPTE2LjY5ODg5Nyw0Mi45NzA3NzAsMTYuNzM3MTc3LDQyLjk1MTE3Mw=="
ImageMapLayer::drawFull: getting: "qrc:/Html/ymap.html?WIDTH=868&HEIGHT=605&BBOX=16.698897,42.970770,16.737177,42.951173"
BrowserImageManager::QPixmapCache hit!
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000011b5fc000
0x00007fffffe008b1 in __memcpy ()
(gdb) bt
#0 0x00007fffffe008b1 in __memcpy ()
#1 0x00000001021cb067 in QMacPixmapData::copy ()
#2 0x00000001021bf661 in QPixmap::copy ()
#3 0x000000010008ab81 in ImageMapLayer::drawImage (this=0x11743b210, thePix=@0x10318d1f0, delta={yp = 0, xp = 0}) at Maps/ImageMapLayer.cpp:301
#4 0x00000001001785a0 in MapView::updateLayersImage (this=0x1030c9460) at MapView.cpp:297
#5 0x000000010017994c in MapView::paintEvent (this=0x1030c9460, anEvent=0x7fff5fbfba90) at MapView.cpp:193
#6 0x0000000102188de1 in QWidget::event ()
#7 0x00000001001743ed in MapView::event (this=0x1030c9460, event=0x7fff5fbfba90) at MapView.cpp:1172
#8 0x0000000102141b8d in QApplicationPrivate::notify_helper ()
#9 0x00000001021487fe in QApplication::notify ()
#10 0x0000000102dd8a1c in QCoreApplication::notifyInternal ()
#11 0x000000010213fc40 in qt_sendSpontaneousEvent ()
#12 0x00000001020f5f0e in -[QCocoaView drawRect:] ()
#13 0x00007fff828123ce in -[NSView _drawRect:clip:] ()
#14 0x00007fff82811041 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#15 0x00007fff8280f713 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#16 0x00007fff828105df in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#17 0x00007fff828105df in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#18 0x00007fff828105df in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#19 0x00007fff8280f237 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#20 0x00007fff8280badb in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] ()
#21 0x00007fff82785287 in -[NSView displayIfNeeded] ()
#22 0x00007fff82780133 in _handleWindowNeedsDisplay ()
#23 0x00007fff86319437 in __CFRunLoopDoObservers ()
#24 0x00007fff862f56e4 in __CFRunLoopRun ()
#25 0x00007fff862f503f in CFRunLoopRunSpecific ()
#26 0x00007fff857b6c4e in RunCurrentEventLoopInMode ()
#27 0x00007fff857b6a53 in ReceiveNextEventCommon ()
#28 0x00007fff857b690c in BlockUntilNextEventMatchingListInMode ()
#29 0x00007fff82755570 in _DPSNextEvent ()
#30 0x00007fff82754ed9 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#31 0x00007fff8271ab29 in -[NSApplication run] ()
#32 0x0000000102100e29 in QEventDispatcherMac::processEvents ()
#33 0x0000000102dd8124 in QEventLoop::processEvents ()
#34 0x0000000102dd82b5 in QEventLoop::exec ()
#35 0x0000000102ddbe55 in QCoreApplication::exec ()
#36 0x00000001001d5ac6 in main (argc=1, argv=0x7fff5fbff768) at Main.cpp:201
(gdb)
The text was updated successfully, but these errors were encountered: