File size problem

136 views
Skip to first unread message

rajendra asuri

unread,
Jul 1, 2015, 6:31:21 AM7/1/15
to mapsfo...@googlegroups.com
Hi all i am getting the file size problem when i run the application


can you please help me out, this is the error i am getting

07-01 15:24:50.773: E/MapFile(1693): null
07-01 15:24:50.773: E/MapFile(1693): org.mapsforge.map.reader.header.MapFileException: invalid file size: 119625509
07-01 15:24:50.773: E/MapFile(1693): at org.mapsforge.map.reader.header.RequiredFields.readFileSize(RequiredFields.java:68)
07-01 15:24:50.773: E/MapFile(1693): at org.mapsforge.map.reader.header.MapFileHeader.readHeader(MapFileHeader.java:100)
07-01 15:24:50.773: E/MapFile(1693): at org.mapsforge.map.reader.MapFile.<init>(MapFile.java:251)
07-01 15:24:50.773: E/MapFile(1693): at com.graphhopper.android.MainActivity.loadMap(MainActivity.java:376)
07-01 15:24:50.773: E/MapFile(1693): at com.graphhopper.android.MainActivity.downloadingFiles(MainActivity.java:365)
07-01 15:24:50.773: E/MapFile(1693): at com.graphhopper.android.MainActivity.initFiles(MainActivity.java:215)
07-01 15:24:50.773: E/MapFile(1693): at com.graphhopper.android.MainActivity.access$0(MainActivity.java:211)
07-01 15:24:50.773: E/MapFile(1693): at com.graphhopper.android.MainActivity$2.onSelect(MainActivity.java:245)
07-01 15:24:50.773: E/MapFile(1693): at com.graphhopper.android.MainActivity$4.onClick(MainActivity.java:339)
07-01 15:24:50.773: E/MapFile(1693): at android.view.View.performClick(View.java:4084)
07-01 15:24:50.773: E/MapFile(1693): at android.view.View$PerformClick.run(View.java:16966)
07-01 15:24:50.773: E/MapFile(1693): at android.os.Handler.handleCallback(Handler.java:615)
07-01 15:24:50.773: E/MapFile(1693): at android.os.Handler.dispatchMessage(Handler.java:92)
07-01 15:24:50.773: E/MapFile(1693): at android.os.Looper.loop(Looper.java:137)
07-01 15:24:50.773: E/MapFile(1693): at android.app.ActivityThread.main(ActivityThread.java:4812)
07-01 15:24:50.773: E/MapFile(1693): at java.lang.reflect.Method.invokeNative(Native Method)
07-01 15:24:50.773: E/MapFile(1693): at java.lang.reflect.Method.invoke(Method.java:511)
07-01 15:24:50.773: E/MapFile(1693): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-01 15:24:50.773: E/MapFile(1693): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-01 15:24:50.773: E/MapFile(1693): at dalvik.system.NativeStart.main(Native Method)
07-01 15:24:50.789: E/MapFile(1693): null

Emux

unread,
Jul 1, 2015, 6:35:04 AM7/1/15
to mapsfo...@googlegroups.com
What Mapsforge version, which map file ?

Make sure you have a valid map file (not corrupted one)
and read/write access to the storage where the map file is.

--
Emux
Cruiser - Atlas

rajendra asuri

unread,
Jul 1, 2015, 6:44:00 AM7/1/15
to mapsfo...@googlegroups.com
I am using the following   jars in my application :

1.
mapsforge-core-0.5.1.jar 

2.mapsforge-map-0.5.1.jar

3.mapsforge-map-0.5.1.jar

4.mapsforge-map-reader-0.5.1 .jar files 





i am using the gcc_states.map file .






--
You received this message because you are subscribed to a topic in the Google Groups "mapsforge-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapsforge-dev/ECOovrAv2eM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/5593C255.6040204%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

Emux

unread,
Jul 1, 2015, 6:49:42 AM7/1/15
to mapsfo...@googlegroups.com
The map file (21-Jun-2015) was tested and works fine.

Can you check the other things I mentioned (download again the map file) ?

rajendra asuri

unread,
Jul 1, 2015, 7:27:50 AM7/1/15
to mapsfo...@googlegroups.com
Thanx emux, i download the correct file now, but it is not loading 


it is loading but taking more time 


and after that it is crashing :

it is showing the error as following :  


An error happend while creating graph:Cannot load the graph when using instance of com.graphhopper.storage.LevelGraphStorage and location: /mnt/sdcard/graphhopper/maps/gcc_states-gh/


if i long click on the map it is showing 

Prepare finished but hopper is not ready .this happens when there was an error while loading files









--
You received this message because you are subscribed to a topic in the Google Groups "mapsforge-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapsforge-dev/ECOovrAv2eM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mapsforge-de...@googlegroups.com.

Emux

unread,
Jul 1, 2015, 7:29:24 AM7/1/15
to mapsfo...@googlegroups.com
That error is about GraphHopper graph not Mapsforge map.

rajendra asuri

unread,
Jul 1, 2015, 7:34:14 AM7/1/15
to mapsfo...@googlegroups.com, GraphHopper Java routing engine, graphhopp...@openstreetmap.org
offline maps gcc_states is loading some times but  taking more time ,


and then  it is crashing :

it is showing the error as following :  
 
An error happend while creating graph:Cannot load the graph when using instance of com.graphhopper.storage.LevelGraphStorage and location: /mnt/sdcard/graphhopper/maps/gcc_states-gh/

if i long click on the map it is showing 

Prepare finished but hopper is not ready , this happens when there was an error while loading files.

am using the graphhoper.0.4.1.jar 




--
You received this message because you are subscribed to a topic in the Google Groups "mapsforge-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapsforge-dev/ECOovrAv2eM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mapsforge-de...@googlegroups.com.

Ludwig

unread,
Jul 1, 2015, 8:16:49 AM7/1/15
to mapsfo...@googlegroups.com
I suggest you move this to the graphhopper mailing list.

--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/CAPv2C54sjtUF09Q3j-t7G8n%2BzYPuf%3Dp5NabUiz70WuuKpYYzTg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages