tianqi22 / monav

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

Preprocessor program stops processing at the "Mapnik Renderer" stage. #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. [myuser@mypc monav]$ /home/files/DEV/monav/bin/MoNavP
2. Click the PreprocessAll button.
3.

What is the expected output? What do you see instead?

[myuser@mypc monav]$ /home/files/DEV/monav/bin/MoNavP 

The file 
'/home/files/DEV/monav/bin/plugins_preprocessor/libcontractionhierarchies.a' is 
not a valid Qt plugin.
The file '/home/files/DEV/monav/bin/plugins_preprocessor/libgpsgrid.a' is not a 
valid Qt plugin.
The file '/home/files/DEV/monav/bin/plugins_preprocessor/libmapnikrenderer.a' 
is not a valid Qt plugin.
The file '/home/files/DEV/monav/bin/plugins_preprocessor/libosmimporter.a' is 
not a valid Qt plugin.
The file '/home/files/DEV/monav/bin/plugins_preprocessor/libosmrenderer.a' is 
not a valid Qt plugin.
The file 
'/home/files/DEV/monav/bin/plugins_preprocessor/libunicodetournamenttrie.a' is 
not a valid Qt plugin.
Importer 
OSM Importer: read speed profile from: ":/speedprofiles/default.spp" 
OSM Importer: access list: 0 : "motorcar" 
OSM Importer: access list: 1 : "motor_vehicle" 
OSM Importer: access list: 2 : "vehicle" 
OSM Importer: access list: 3 : "access" 
starting import pass 1
finished import pass 1: 202 ms 
starting import pass 2
filtered node coordinates: 3 ms 
wrote routing node coordinates: 1 ms 
read city outlines: 0 s 
read places: 0 ms 
build kd-tree: 3 ms 
assigned 'in-city' flags: 3 ms 
wrote 'in-city' flags 1 ms 
remapped edges 19 ms 
finished import pass 2: 67 ms 
OSM Importer: Nodes: 19751
OSM Importer: Ways: 2765
OSM Importer: Places: 1
OSM Importer: Places Outlines: 0 
OSM Importer: Places Outline Nodes: 0 
OSM Importer: Edges: 14368
OSM Importer: Routing Nodes: 12749
OSM Importer: Traffic Signal Nodes: 0
OSM Importer: #Maxspeed Specified: 0
OSM Importer: Number Of Zero Speed Ways: 0
OSM Importer: Number Of Edges with Default City Speed: 12847
Router 
Removed 20 edges of 28736
12749 nodes, 28716 edges
using 4 threads
Initialise Elimination PQ... 
done
Iteration   Nodes   Independent Contraction Inserting   Removing    Updating
0   0   0.000000    0.000000    0.000000    0.000000    0.019000
0   2826    0.001000    0.002000    0.001000    0.000000    0.004000
1   1889    0.001000    0.001000    0.000000    0.000000    0.004000
2   1418    0.001000    0.000000    0.000000    0.001000    0.003000
3   1078    0.000000    0.001000    0.000000    0.000000    0.003000
4   850 0.000000    0.001000    0.000000    0.000000    0.002000
5   685 0.000000    0.001000    0.000000    0.000000    0.002000
6   555 0.000000    0.001000    0.000000    0.000000    0.002000
7   467 0.000000    0.000000    0.000000    0.001000    0.001000
8   378 0.000000    0.001000    0.000000    0.000000    0.001000
9   310 0.000000    0.000000    0.000000    0.001000    0.001000
10  264 0.000000    0.000000    0.000000    0.000000    0.001000
11  229 0.000000    0.001000    0.000000    0.000000    0.000000
12  186 0.000000    0.000000    0.000000    0.000000    0.001000
13  154 0.000000    0.000000    0.000000    0.000000    0.001000
14  135 0.000000    0.000000    0.000000    0.000000    0.001000
15  108 0.000000    0.001000    0.000000    0.000000    0.000000
16  93  0.000000    0.001000    0.000000    0.000000    0.000000
17  92  0.000000    0.001000    0.000000    0.000000    0.000000
18  78  0.000000    0.001000    0.000000    0.000000    0.000000
19  74  0.000000    0.001000    0.000000    0.000000    0.000000
20  67  0.000000    0.001000    0.000000    0.000000    0.000000
21  63  0.000000    0.001000    0.000000    0.000000    0.000000
22  55  0.000000    0.000000    0.000000    0.000000    0.001000
23  52  0.000000    0.000000    0.000000    0.000000    0.001000
24  43  0.000000    0.000000    0.000000    0.000000    0.001000
25  39  0.000000    0.000000    0.000000    0.000000    0.001000
26  36  0.000000    0.000000    0.000000    0.000000    0.001000
27  34  0.000000    0.000000    0.000000    0.000000    0.001000
28  35  0.000000    0.000000    0.000000    0.000000    0.001000
29  34  0.000000    0.000000    0.000000    0.000000    0.000000
30  24  0.000000    0.001000    0.000000    0.000000    0.000000
31  20  0.000000    0.000000    0.000000    0.000000    0.001000
32  13  0.000000    0.000000    0.000000    0.000000    0.005000
33  16  0.000000    0.000000    0.000000    0.000000    0.000000
34  16  0.000000    0.000000    0.000000    0.000000    0.001000
35  18  0.000000    0.000000    0.000000    0.000000    0.001000
36  19  0.000000    0.000000    0.000000    0.000000    0.001000
37  22  0.000000    0.000000    0.000000    0.000000    0.000000
38  13  0.000000    0.000000    0.000000    0.000000    0.001000
39  12  0.000000    0.000000    0.000000    0.000000    0.001000
40  13  0.000000    0.000000    0.000000    0.000000    0.000000
41  14  0.000000    0.000000    0.000000    0.000000    0.001000
42  10  0.000000    0.000000    0.000000    0.000000    0.000000
43  12  0.000000    0.000000    0.000000    0.000000    0.001000
44  7   0.000000    0.000000    0.000000    0.000000    0.000000
45  8   0.000000    0.000000    0.000000    0.000000    0.001000
46  9   0.000000    0.000000    0.000000    0.000000    0.000000
47  8   0.000000    0.000000    0.000000    0.000000    0.001000
48  7   0.000000    0.000000    0.000000    0.000000    0.000000
49  6   0.000000    0.000000    0.000000    0.000000    0.000000
50  5   0.000000    0.000000    0.000000    0.000000    0.000000
51  4   0.001000    0.000000    0.000000    0.000000    0.000000
52  4   0.000000    0.000000    0.000000    0.000000    0.000000
53  5   0.000000    0.000000    0.000000    0.000000    0.000000
54  5   0.000000    0.000000    0.000000    0.000000    0.001000
55  4   0.000000    0.000000    0.000000    0.000000    0.000000
56  6   0.000000    0.000000    0.000000    0.000000    0.000000
57  5   0.000000    0.000000    0.000000    0.000000    0.001000
58  5   0.000000    0.000000    0.000000    0.000000    0.000000
59  3   0.000000    0.000000    0.000000    0.000000    0.000000
60  5   0.000000    0.000000    0.000000    0.000000    0.001000
61  3   0.000000    0.000000    0.000000    0.000000    0.000000
62  7   0.000000    0.000000    0.000000    0.000000    0.000000
63  4   0.000000    0.000000    0.000000    0.001000    0.000000
64  5   0.000000    0.000000    0.000000    0.000000    0.000000
65  5   0.000000    0.000000    0.000000    0.000000    0.001000
66  3   0.000000    0.000000    0.000000    0.000000    0.000000
67  3   0.000000    0.000000    0.000000    0.000000    0.000000
68  2   0.000000    0.000000    0.000000    0.000000    0.000000
69  3   0.000000    0.001000    0.000000    0.000000    0.000000
70  1   0.000000    0.000000    0.000000    0.000000    0.000000
71  2   0.000000    0.000000    0.000000    0.000000    0.000000
72  3   0.000000    0.000000    0.000000    0.000000    0.000000
73  2   0.000000    0.000000    0.000000    0.000000    0.000000
74  3   0.000000    0.000000    0.000000    0.000000    0.000000
75  3   0.000000    0.000000    0.000000    0.000000    0.000000
76  4   0.000000    0.000000    0.000000    0.000000    0.000000
77  3   0.000000    0.000000    0.000000    0.000000    0.000000
78  4   0.000000    0.000000    0.000000    0.000000    0.001000
79  3   0.000000    0.000000    0.000000    0.000000    0.000000
80  2   0.000000    0.000000    0.000000    0.000000    0.000000
81  2   0.000000    0.000000    0.000000    0.000000    0.000000
82  3   0.000000    0.000000    0.000000    0.000000    0.000000
83  2   0.000000    0.000000    0.000000    0.000000    0.000000
84  2   0.000000    0.000000    0.000000    0.000000    0.000000
85  2   0.000000    0.000000    0.000000    0.000000    0.000000
86  2   0.001000    0.000000    0.000000    0.000000    0.000000
87  2   0.000000    0.000000    0.000000    0.000000    0.000000
88  2   0.000000    0.000000    0.000000    0.000000    0.000000
89  2   0.000000    0.000000    0.000000    0.000000    0.000000
90  2   0.000000    0.000000    0.000000    0.000000    0.000000
91  2   0.000000    0.000000    0.000000    0.000000    0.000000
92  1   0.000000    0.000000    0.000000    0.000000    0.000000
93  1   0.000000    0.000000    0.000000    0.000000    0.000000
94  2   0.000000    0.000000    0.000000    0.000000    0.000000
95  1   0.000000    0.000000    0.000000    0.000000    0.000000
96  2   0.000000    0.000000    0.000000    0.000000    0.000000
97  1   0.000000    0.000000    0.000000    0.000000    0.000000
98  1   0.000000    0.000000    0.000000    0.000000    0.000000
99  2   0.000000    0.000000    0.000000    0.000000    0.000000
100 2   0.000000    0.000000    0.000000    0.000000    0.000000
101 1   0.000000    0.000000    0.000000    0.000000    0.000000
102 1   0.000000    0.000000    0.000000    0.000000    0.000000
103 1   0.000000    0.000000    0.000000    0.000000    0.000000
Iteration   Nodes   Independent Contraction Inserting   Removing    Updating
105 12749   0.005000    0.018000    0.001000    0.004000    0.073000
Total Time: 0.101000 s
Scanning for useless shortcuts
Found 0 useless shortcut directions
Removing edges
Removed 0 useless shortcuts
Compute Node Depth
Sort Nodes Topologically Depths First
Sort Nodes into buckets according to hierarchy depths
Sort Nodes Topologically by computed order
Postprocessing Time: 0.029000 s
creating compressed graph with 12749 nodes and 25721 edges 
build node index: 0 ms 
Computing path data
max path index: 25992 
computed max path index: 2 ms 
computed block layout: 6 ms 
Computing path data
unpacked total shortcuts: 8.835695 %
unpacked shortcuts: 2 ms 
wrote blocks 14 ms 
used Settings:
    block size: 4096
    internal bits: 9
    path bits: 15
    blocks: 43
    path blocks: 25
    block space: 0 Mb
    path block space: 0 Mb
    max internal ID: 21760
statistics: 
adjacentBlocks: 206 
noWeightSplit : 0 
forwardOnly       : 2358 
backwardOnly      : 2338 
externalTarget    : 6088 
externalMiddle    : 1561 
reversed          : 442 
shortcuts         : 11363 
directed shortcuts: 536 
xSize        : 0 MB / 0 MB 
ySize        : 0 MB / 0 MB 
firstEdgeSize: 0 MB / 0 MB 
directionSize     : 0 MB / 0 MB 
weightSize        : 0 MB / 0 MB 
externalMiddleSize: 0 MB / 0 MB 
internalMiddleSize: 0 MB / 0 MB 
externalTargetSize: 0 MB / 0 MB 
internalTargetSize: 0 MB / 0 MB 
Renderer 

What version of the product are you using? On what operating system?

SVN r219

Distro: Fedora-13 x86_64

Please provide any additional information below.

As far as I can tell the PostgreSQL and PostGIS database is configured, setup 
and working properly.

Original issue reported on code.google.com by peteadde...@gmail.com on 2 Sep 2010 at 8:50

GoogleCodeExporter commented 9 years ago
It seems that the OSMImporter plugin hangs / fails when asked for data from the 
MapnikRenderer plugin. Could you make the .osm file you used available to me?

Does the program crash, stop the preprocessing ( displaying a red 'X' next to 
the renderer plugin ) or just hang?

If the preprocessing just stops without an error message, you have most likely 
a .osm file containing no bounding box. You could try r222 to check for this as 
I added some missing debug messages for failed file open operations.

If you are missing the bounding box: Is it common for some .osm files to 
contain no bounding box? If this is the case I could switch to computing one 
based on the nodes in the .osm file.

Original comment by veaac.fd...@gmail.com on 2 Sep 2010 at 9:16

GoogleCodeExporter commented 9 years ago
Hello Christian:

The *.osm XML data file is 4.3MB -- quiet a large file. I downloaded this data 
from the OpenStreetMap website -- please see details below.

Step 1: Using Firefox enter this URL.
http://www.openstreetmap.org/?lat=25.04&lon=-77.365&zoom=11&layers=M

Step 2: Then click the Export tab.

Step 3: For format to export select "OpenStreetMap XML Data".

Step 4: Download and save the "nassau_new_providence_bahamas_map.osm" to your 
local storage (HDD).

Attached are two screen shots with information that you may find useful.

In the mean time I will try MoNav svn r222.

Thank you.
P.E.A.

Original comment by peteadde...@gmail.com on 2 Sep 2010 at 9:58

Attachments:

GoogleCodeExporter commented 9 years ago
I got it, it was the missing bounding box item:

The downloadable .osm extract have an entry:
<bound box="53.73236,-5.43455,54.67060,-3.68872" 
origin="http://www.openstreetmap.org/api/0.6"/>

While the exported osm file has:
 <bounds minlat="24.8140000" minlon="-77.6170000" maxlat="25.2660000" maxlon="-77.1130000"/>

I do not know whether this discrepancy is intentional no standard exists for 
the bounding box, but I added the "bounds" variant to the OSMImporter in r223

Could you please try whether this fixes the bug?

Original comment by veaac.fd...@gmail.com on 2 Sep 2010 at 10:25

GoogleCodeExporter commented 9 years ago
Hello:

Christian your "missing bounding box" remedy in MoNav r223 appears to have 
solved the problem. Precessing completed successfully.

Original comment by peteadde...@gmail.com on 2 Sep 2010 at 11:16

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by veaac.fd...@gmail.com on 2 Sep 2010 at 11:16