Problem with map starage on SD Card

Started by Willi_47, July 29, 2016, 10:42:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Willi_47

Hi there,

I use Android 5.0.2, Kernel Version 3.10.49 with Oruxmaps 6.5.9. (deutsch, downloaded from Google Playstore)

Loading offline maps like OpenTopoMap to internal memory works fine. But loading these maps directly to SD Card  in directory "SD1/Android/data/ com.orux.oruxmaps"  gives  the error message "Fehler beim Erstellen der SQlite Datenbank". This is German text. It means "Error building SQlite database".The SD Card is corrupted by the writing process. It can only be used again by powerdown and restart of the smartphone.  After that procedure directory "SD1/Android/data/ com.orux.oruxmaps"  has a subdirectory "HHTest" including  files HHTest.otrk3.xml 8  (0B), OruxMapsImages.db (0 B), OruxMapsImages.db-journal (512 B)

I also removed the corrupted SD Card from the Smartphone and repaired it using the Windows Explorer. After repair the corrupted file is stored with filename "FILE0000.CHK in directory FOUND.000 on the SD Card. FOUND.000 has the size of 512 kByte.  It can be read with the Windows Editor and has the file header given below.



Workaround:

Loading maps to internal memory and shifting the corresponding subdirectories into "SD1/Android/data/ com.orux.oruxmaps" using an Android File Manager works well.



"FILE000.CHK"-fileheader:



<?xml version="1.0" encoding="UTF-8"?>

<OruxTracker xmlns="http://oruxtracker.com/app/res/calibration">http://oruxtracker.com/app/res/calibration"

 versionCode="3.0">

<MapCalibration layers="true" layerLevel="0">

<MapName><![CDATA[HHTest]]></MapName>

<OruxTracker  versionCode="2.1">

<MapCalibration layers="false" layerLevel="13">

<MapName><![CDATA[HHTest]]></MapName>

<MapChunks xMax="3" yMax="3" datum="WGS84" projection="Mercator" img_height="256" img_width="256" file_name="HHTest" />

<MapDimensions height="768" width="768" />

<MapBounds minLat="53.67068019347265" maxLat="53.748710796898976" minLon="9.931640625" maxLon="10.0634765625" />

<CalibrationPoints>

<CalibrationPoint corner="TL" lon="9.931641" lat="53.748711" />

<CalibrationPoint corner="BR" lon="10.063477" lat="53.670680" />

<CalibrationPoint corner="TR" lon="10.063477" lat="53.748711" />

<CalibrationPoint corner="BL" lon="9.931641" lat="53.670680" />

</CalibrationPoints>

</MapCalibration>

</OruxTracker>

<OruxTracker  versionCode="2.1">

<MapCalibration layers="false" layerLevel="14">

<MapName><![CDATA[HHTest]]></MapName>

<MapChunks xMax="4" yMax="5" datum="WGS84" projection="Mercator" img_height="256" img_width="256" file_name="HHTest" />

<MapDimensions height="1280" width="1024" />

<MapBounds minLat="53.68369534495075" maxLat="53.748710796898976" minLon="9.95361328125" maxLon="10.04150390625" />

<CalibrationPoints>

<CalibrationPoint corner="TL" lon="9.953613" lat="53.748711" />

<CalibrationPoint corner="BR" lon="10.041504" lat="53.683695" />

<CalibrationPoint corner="TR" lon="10.041504" lat="53.748711" />

<CalibrationPoint corner="BL" lon="9.953613" lat="53.683695" />

</CalibrationPoints>

</MapCalibration>

</OruxTracker>

<OruxTracker  versionCode="2.1">

<MapCalibration layers="false" layerLevel="15">

<MapName><![CDATA[HHTest]]></MapName>

<MapChunks xMax="6" yMax="8" datum="WGS84" projection="Mercator" img_height="256" img_width="256" file_name="HHTest" />

<MapDimensions height="2048" width="1536" />

<MapBounds minLat="53.69020141273197" maxLat="53.742213773431224" minLon="9.964599609375" maxLon="10.030517578125" />

<CalibrationPoints>

<CalibrationPoint corner="TL" lon="9.964600" lat="53.742214" />

<CalibrationPoint corner="BR" lon="10.030518" lat="53.690201" />

<CalibrationPoint corner="TR" lon="10.030518" lat="53.742214" />

<CalibrationPoint corner="BL" lon="9.964600" lat="53.690201" />

</CalibrationPoints>

</MapCalibration>

</OruxTracker>

</MapCalibration>

</OruxTracker>

orux

#1
Quote from: "Willi_47"Hi there,

I use Android 5.0.2, Kernel Version 3.10.49 with Oruxmaps 6.5.9. (deutsch, downloaded from Google Playstore)

Loading offline maps like OpenTopoMap to internal memory works fine. But loading these maps directly to SD Card  in directory "SD1/Android/data/ com.orux.oruxmaps"  gives  the error message "Fehler beim Erstellen der SQlite Datenbank". This is German text. It means "Error building SQlite database".The SD Card is corrupted by the writing process. It can only be used again by powerdown and restart of the smartphone.  After that procedure directory "SD1/Android/data/ com.orux.oruxmaps"  has a subdirectory "HHTest" including  files HHTest.otrk3.xml 8  (0B), OruxMapsImages.db (0 B), OruxMapsImages.db-journal (512 B)

I also removed the corrupted SD Card from the Smartphone and repaired it using the Windows Explorer. After repair the corrupted file is stored with filename "FILE0000.CHK in directory FOUND.000 on the SD Card. FOUND.000 has the size of 512 kByte.  It can be read with the Windows Editor and has the file header given below.



Workaround:

Loading maps to internal memory and shifting the corresponding subdirectories into "SD1/Android/data/ com.orux.oruxmaps" using an Android File Manager works well.



"FILE000.CHK"-fileheader:



<?xml version="1.0" encoding="UTF-8"?>

<OruxTracker xmlns="http://oruxtracker.com/app/res/calibration">http://oruxtracker.com/app/res/calibration"

 versionCode="3.0">

<MapCalibration layers="true" layerLevel="0">

<MapName><![CDATA[HHTest]]></MapName>

<OruxTracker  versionCode="2.1">

<MapCalibration layers="false" layerLevel="13">

<MapName><![CDATA[HHTest]]></MapName>

<MapChunks xMax="3" yMax="3" datum="WGS84" projection="Mercator" img_height="256" img_width="256" file_name="HHTest" />

<MapDimensions height="768" width="768" />

<MapBounds minLat="53.67068019347265" maxLat="53.748710796898976" minLon="9.931640625" maxLon="10.0634765625" />

<CalibrationPoints>

<CalibrationPoint corner="TL" lon="9.931641" lat="53.748711" />

<CalibrationPoint corner="BR" lon="10.063477" lat="53.670680" />

<CalibrationPoint corner="TR" lon="10.063477" lat="53.748711" />

<CalibrationPoint corner="BL" lon="9.931641" lat="53.670680" />

</CalibrationPoints>

</MapCalibration>

</OruxTracker>

<OruxTracker  versionCode="2.1">

<MapCalibration layers="false" layerLevel="14">

<MapName><![CDATA[HHTest]]></MapName>

<MapChunks xMax="4" yMax="5" datum="WGS84" projection="Mercator" img_height="256" img_width="256" file_name="HHTest" />

<MapDimensions height="1280" width="1024" />

<MapBounds minLat="53.68369534495075" maxLat="53.748710796898976" minLon="9.95361328125" maxLon="10.04150390625" />

<CalibrationPoints>

<CalibrationPoint corner="TL" lon="9.953613" lat="53.748711" />

<CalibrationPoint corner="BR" lon="10.041504" lat="53.683695" />

<CalibrationPoint corner="TR" lon="10.041504" lat="53.748711" />

<CalibrationPoint corner="BL" lon="9.953613" lat="53.683695" />

</CalibrationPoints>

</MapCalibration>

</OruxTracker>

<OruxTracker  versionCode="2.1">

<MapCalibration layers="false" layerLevel="15">

<MapName><![CDATA[HHTest]]></MapName>

<MapChunks xMax="6" yMax="8" datum="WGS84" projection="Mercator" img_height="256" img_width="256" file_name="HHTest" />

<MapDimensions height="2048" width="1536" />

<MapBounds minLat="53.69020141273197" maxLat="53.742213773431224" minLon="9.964599609375" maxLon="10.030517578125" />

<CalibrationPoints>

<CalibrationPoint corner="TL" lon="9.964600" lat="53.742214" />

<CalibrationPoint corner="BR" lon="10.030518" lat="53.690201" />

<CalibrationPoint corner="TR" lon="10.030518" lat="53.742214" />

<CalibrationPoint corner="BL" lon="9.964600" lat="53.690201" />

</CalibrationPoints>

</MapCalibration>

</OruxTracker>

</MapCalibration>

</OruxTracker>


Sorry, but it is an android problem, I really don't know a solution.





orux

nurembergueso

#2
Hello.



Not for sure, but all of them who report storage problems in several threads try to store map and other data to "Android/data/com.orux.oruxmaps/", a folder which is created by oruxmaps on install but actually isn't used by the app. If you have a look on this folder in internal storage of your device, you will see, that it contains only one folder "Files" with one file "oruxmaps" (0B). All app-relevant data is transferred to a folder in the main directory called "oruxmaps" with a couple of subfolders from "cursors" to "tracklogs" and three hidden cache folders.



I copied this folder structure to my SD, changed the paths for the different objects in app settings and had never any access issues from Android 2.3 to 5.1.



Claus