Menu

#313 Initialization of Local Mapsources when creating an atlas

latest_beta_version
closed
r_x
None
1
2019-08-08
2018-07-16
Sylvain
No

If I load a profile corresponding of an atlas with local tile zip mapsources, the atlas creation doesn't work (error on each tile) if the local tile zip mapsource is not first selected to view in the map windows. It's not a big problem... once we know.

Discussion

  • r_x

    r_x - 2018-07-16

    Thanks for reporting. I made a fix that should prevent this situation. It will be included in the next release (should be version 2.1.1).

     

    Last edit: r_x 2018-07-16
  • r_x

    r_x - 2018-07-16
    • status: open --> closed
    • assigned_to: r_x
     
  • Sylvain

    Sylvain - 2019-05-15

    The bug steel here in the last version 2.1.1a

     
  • r_x

    r_x - 2019-05-15

    Please provide detailed error logs.

     
  • Sylvain

    Sylvain - 2019-05-15

    It happens for exemple when I start MOBAC with the command line :
    java -Xmx1024m -jar Mobile_Atlas_Creator.jar create <mylocaltilezipmapsource>
    It works fine if I start the UI and display the mapsource before clicking on Create Atlas but It doesn't works If I don't display the mapsource first or if I use the command line to create the atlas. I think it's juste a problem of initialization.</mylocaltilezipmapsource>

     
  • Sylvain

    Sylvain - 2019-05-19

    INFO - log4.xml not found - enabling default error log to console
    INFO - Version: Mobile Atlas Creator (MOBAC) 2.1.1a (2398)
    INFO - Platform: Windows 10 (10.0)
    INFO - Java VM: Java HotSpot(TM) 64-Bit Server VM (1.8.0_191-b12)
    INFO - Directories:
    currentDir: D:\Cartes\MOBAC
    programDir: D:\Cartes\MOBAC
    mapSourcesDir: D:\Cartes\MOBAC\mapsources
    tempDir: C:\Users\Yo\AppData\Local\Temp
    userHomeDir: C:\Users\Yo
    userSettingsDir: D:\Cartes\MOBAC
    atlasProfilesDir: D:\Cartes\MOBAC
    userAppDataDir: C:\Users\Yo\AppData\Roaming\Mobile Atlas Creator
    INFO - System console available: false
    INFO - Startup arguments (count=3):
    INFO - 0: create
    INFO - 1: Millau 18 Local IGN to Orux
    INFO - 2: log
    INFO - Applying proxy configuration: host= port=
    INFO - Total available memory to MOBAC: 910.50 MiB
    WARN - Beanshell "Espagne IBERPIX VISOR + topo + PNOA.bsh" (Espagne IBERPIX VISOR + topo + PNOA) has no addHeaders method - addHeaders will not be called!
    WARN - Beanshell "Google Hybrid.bsh" (Google Hybrid) has no addHeaders method - addHeaders will not be called!
    WARN - Beanshell "Google Satellite.bsh" (Google Satellite) has no addHeaders method - addHeaders will not be called!
    WARN - Beanshell "Google Terrain.bsh" (Google Terrain) has no addHeaders method - addHeaders will not be called!
    ERROR - Loading of SQLite library failed (SQLite.JDBCDriver): SQLite.JDBCDriver
    INFO - Starting creation of OruxMaps Sqlite atlas "18 IGN Millau"
    WARN - Download of tile z18_x133248_y94975 failed: "mapFile must not be null" (tries: 1) - rescheduling download job
    ERROR - Unknown error occured while executing the job:
    java.lang.IllegalArgumentException: mapFile must not be null
    at org.mapsforge.map.layer.renderer.RendererJob.<init>(RendererJob.java:37)
    at mobac.mapsources.MapsforgeMapSource.getTileImage(MapsforgeMapSource.java:220)
    at mobac.mapsources.AbstractMultiLayerMapSource.getTileImage(AbstractMultiLayerMapSource.java:140)
    at mobac.mapsources.AbstractMultiLayerMapSource.getTileData(AbstractMultiLayerMapSource.java:124)
    at mobac.program.download.DownloadJob.run(DownloadJob.java:62)
    at mobac.program.JobDispatcher$WorkerThread.executeJobs(JobDispatcher.java:175)
    at mobac.program.JobDispatcher$WorkerThread.run(JobDispatcher.java:156)
    WARN - Download of tile z18_x133249_y94975 failed: "mapFile must not be null" (tries: 1) - rescheduling download job
    ERROR - Unknown error occured while executing the job:
    java.lang.IllegalArgumentException: mapFile must not be null
    at org.mapsforge.map.layer.renderer.RendererJob.<init>(RendererJob.java:37)
    at mobac.mapsources.MapsforgeMapSource.getTileImage(MapsforgeMapSource.java:220)
    at mobac.mapsources.AbstractMultiLayerMapSource.getTileImage(AbstractMultiLayerMapSource.java:140)
    at mobac.mapsources.AbstractMultiLayerMapSource.getTileData(AbstractMultiLayerMapSource.java:124)
    at mobac.program.download.DownloadJob.run(DownloadJob.java:62)
    at mobac.program.JobDispatcher$WorkerThread.executeJobs(JobDispatcher.java:175)
    at mobac.program.JobDispatcher$WorkerThread.run(JobDispatcher.java:156)
    WARN - Download of tile z18_x133247_y94975 failed: "mapFile must not be null" (tries: 1) - rescheduling download job
    WARN - Download of tile z18_x133250_y94975 failed: "mapFile must not be null" (tries: 1) - rescheduling download job
    ERROR - Unknown error occured while executing the job:
    java.lang.IllegalArgumentException: mapFile must not be null
    at org.mapsforge.map.layer.renderer.RendererJob.<init>(RendererJob.java:37)
    at mobac.mapsources.MapsforgeMapSource.getTileImage(MapsforgeMapSource.java:220)
    at mobac.mapsources.AbstractMultiLayerMapSource.getTileImage(AbstractMultiLayerMapSource.java:140)
    at mobac.mapsources.AbstractMultiLayerMapSource.getTileData(AbstractMultiLayerMapSource.java:124)
    at mobac.program.download.DownloadJob.run(DownloadJob.java:62)
    at mobac.program.JobDispatcher$WorkerThread.executeJobs(JobDispatcher.java:175)
    at mobac.program.JobDispatcher$WorkerThread.run(JobDispatcher.java:156)</init></init></init>

     
  • r_x

    r_x - 2019-05-20

    OK, the log explains a lot. Based on the info from the log I was able to reproduce the problem and identified the two problems that caused it.

    The source code in SVN is already fixed. The next release will include the fix.

     
  • Sylvain

    Sylvain - 2019-05-20

    Merci :))) J'attends la prochaine version

     
  • Sylvain

    Sylvain - 2019-08-08

    The new version works fine for me. Thanks again :)

     

Log in to post a comment.