azzazello / monav

Automatically exported from code.google.com/p/monav
0 stars 0 forks source link

MoNavP: Assertion `points.size() > 0' failed #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running MoNavP and trying to preprocess a .osm file (Baden-Württemberg 
downloaded from geofabrik), it aborts when an assertion triggers after some 
time. Console output and backtrace below.

What version of the product are you using? On what operating system?
https://monav.googlecode.com/svn/tags/release-0.1
Qt 4.7 Beta 2
Kubuntu Lucid

Please provide any additional information below.

Console output:
0 :  "motorcar" 
1 :  "motor_vehicle" 
2 :  "vehicle" 
3 :  "access" 
starting import pass 1
finished import pass 1: 90355 ms 
starting import pass 2
filtered node coordinates: 5102 ms 
wrote routing node coordinates: 0 ms 
read city outlines: 5 s 
read places: 20 ms 
MoNavP: ../../../monav/plugins/osmimporter/statickdtree.h:107: 
KDTree::StaticKDTree<k, T, Data, Metric>::StaticKDTree(const 
std::vector<KDTree::StaticKDTree<k, T, Data, Metric>::InputPoint, 
std::allocator<KDTree::StaticKDTree<k, T, Data, Metric>::InputPoint> >&) [with 
unsigned int k = 2u, T = double, Data = unsigned int, Metric = 
OSMImporter::GPSMetric]: Assertion `points.size() > 0' failed.
[1]    5302 abort (core dumped)  ../monavpreprocessor-build/bin/MoNavP

Backtrace:
#0  0x00eea422 in __kernel_vsyscall ()
#1  0x007d5651 in *__GI_raise (sig=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x007d8a82 in *__GI_abort () at abort.c:92
#3  0x007ce718 in *__GI___assert_fail (assertion=0x80e75d2 "points.size() > 0", 
file=0x80e75a0 "../../../monav/plugins/osmimporter/statickdtree.h", 
    line=107, 
    function=0x80e7780 "KDTree::StaticKDTree<k, T, Data, Metric>::StaticKDTree(const std::vector<KDTree::StaticKDTree<k, T, Data, Metric>::InputPoint, std::allocator<KDTree::StaticKDTree<k, T, Data, Metric>::InputPoint> >&) "...) at assert.c:81
#4  0x080b3d8d in KDTree::StaticKDTree<2u, double, unsigned int, 
OSMImporter::GPSMetric>::StaticKDTree(std::vector<KDTree::StaticKDTree<2u, 
double, unsigned int, OSMImporter::GPSMetric>::InputPoint, 
std::allocator<KDTree::StaticKDTree<2u, double, unsigned int, 
OSMImporter::GPSMetric>::InputPoint> > const&) ()
#5  0x080ad3d6 in OSMImporter::_PreprocessData (this=0x84fd858, filename=..., 
usedNodes=..., outlineNodes=..., signalNodes=...)
    at ../../../monav/plugins/osmimporter/osmimporter.cpp:394
#6  0x080aaf3d in OSMImporter::Preprocess (this=0x84fd858) at 
../../../monav/plugins/osmimporter/osmimporter.cpp:111
#7  0x08053b02 in PreprocessingWindow::importerPreprocessing (this=0xbff988e4) 
at ../../monav/preprocessor/preprocessingwindow.cpp:212
#8  0x0805bef2 in PreprocessingWindow::qt_metacall (this=0xbff988e4, 
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbff97998)
    at moc_preprocessingwindow.cpp:98
#9  0x004266ca in QMetaObject::metacall(QObject*, QMetaObject::Call, int, 
void**) () from /usr/lib/libQtCore.so.4
#10 0x00439455 in QMetaObject::activate(QObject*, QMetaObject const*, int, 
void**) () from /usr/lib/libQtCore.so.4
#11 0x018855e9 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#12 0x01546e39 in ?? () from /usr/lib/libQtGui.so.4
#13 0x01548544 in ?? () from /usr/lib/libQtGui.so.4
#14 0x015487fe in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from 
/usr/lib/libQtGui.so.4
#15 0x0117ac48 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x01546cde in QAbstractButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x015f4782 in QPushButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x0111d0cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from 
/usr/lib/libQtGui.so.4
#19 0x01123ab7 in QApplication::notify(QObject*, QEvent*) () from 
/usr/lib/libQtGui.so.4
#20 0x0042096b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from 
/usr/lib/libQtCore.so.4
#21 0x01122162 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, 
QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/libQtGui.so.4
#22 0x011b06b8 in ?? () from /usr/lib/libQtGui.so.4
#23 0x011afb49 in QApplication::x11ProcessEvent(_XEvent*) () from 
/usr/lib/libQtGui.so.4
#24 0x011deb3a in ?? () from /usr/lib/libQtGui.so.4
#25 0x009405e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x009442d8 in ?? () from /lib/libglib-2.0.so.0
#27 0x009444b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x0044f195 in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () 
from /usr/lib/libQtCore.so.4
#29 0x011de3b5 in ?? () from /usr/lib/libQtGui.so.4
#30 0x0041f419 in 
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from 
/usr/lib/libQtCore.so.4
#31 0x0041f89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () 
from /usr/lib/libQtCore.so.4

Original issue reported on code.google.com by earthwi...@gentoo.org on 27 Aug 2010 at 5:40

GoogleCodeExporter commented 9 years ago
Works fine now on the second try after copying the speed profile file 
default.spp to the right directory. Still shouldn't trigger an assertion when 
that one is missing, but refuse to start the preprocessing.

Original comment by earthwi...@gentoo.org on 27 Aug 2010 at 5:52

GoogleCodeExporter commented 9 years ago
Confirmed.

Thanks for your bug report.

Original comment by veaac.fd...@gmail.com on 27 Aug 2010 at 6:26

GoogleCodeExporter commented 9 years ago

Original comment by veaac.fd...@gmail.com on 27 Aug 2010 at 10:32