MyWorldMap plugin V 1.0 RC5 (Google Maps and Virtual Earth) (2 Viewers)

Taipan

Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,075
    44
    Melbourne
    Home Country
    Australia Australia
    Hi lkuech, this is an excellent plugin - well done ... :)

    Just a couple of minor issues:-

    I get this message in the MediaPortal.log file:-

    Code:
    2007-05-28 13:27:07.875000 [Info.][MPMain]:   Load plugins from : C:\Program Files\MediaPortal\Plugins\windows\GUIWorldmap.dll
    2007-05-28 13:27:07.890625 [Info.][MPMain]:   Assembly Version : 1.0.0.0
    2007-05-28 13:27:07.906250 [Info.][MPMain]: GUIWindowManager: Could not find window 10235
    2007-05-28 13:27:07.906250 [Info.][MPMain]: GUIWindowManager: Could not find window 10236
    2007-05-28 13:27:07.906250 [Info.][MPMain]: GUIWindowManager: Could not find window 10237

    which refers to the xml files "MyWorldmapMenu", "MyWorldmapSearch" and "MyWorldmapSearchResults" - which all do exist in the BlueTwo wide skins folder. So I am not sure why the above message occurs?

    If I search for a place with more than 6 results (eg. Heywood), the additional items continue down the screen and off the Search results page, and the "page up / page down control" is also off the Search results page. This is using the BlueTwo wide skin.


    EDIT - attached are 2 xml files for BlueTwo wide that I have modified to correct search results overflow issue mentioned above, and to modify the context menu layout.
     

    Machismo

    Portal Member
    July 23, 2006
    24
    1
    LA
    Home Country
    AWESOME Plugin!

    This is sure to impress and come in very handy when I move house.

    Keep up the great work.
     

    Downzy

    Portal Pro
    January 5, 2005
    55
    0
    Melbourne, Australia
    Home Country
    G'day,

    Love the concept, this is a really cool plugin. Unfortunately it crashes for me also as soon as I launch it.

    Here's the exception log
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ExceptionType: System.IndexOutOfRangeException
    Message: Index was outside the bounds of the array.
    Source: GUIWorldmap

    Stack trace:
    at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    and the error log...

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    2007-05-28 19:59:23.360750 [ERROR][MPMain]: No translation found for id 110234
    2007-05-28 19:59:24.626375 [ERROR][MapTileDownloader]: MediaPortal: Unhandled exception occured
    2007-05-28 19:59:24.735750 [ERROR][MapTileDownloader]: MediaPortal: Unhandled exception occured
    2007-05-28 19:59:24.751375 [ERROR][MapTileDownloader]: MediaPortal: Unhandled exception occured
    2007-05-28 19:59:24.751375 [ERROR][MapTileDownloader]: MediaPortal: Unhandled exception occured
    2007-05-28 19:59:24.751375 [ERROR][MapTileDownloader]: MediaPortal: Unhandled exception occured
    2007-05-28 19:59:24.767000 [ERROR][MapTileDownloader]: Exception :confused:ystem.IndexOutOfRangeException: Index was outside the bounds of the array.
    at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:24.798250 [ERROR][MapTileDownloader]: Exception :confused:ystem.IndexOutOfRangeException: Index was outside the bounds of the array.
    at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:24.813875 [ERROR][MapTileDownloader]: Exception :confused:ystem.IndexOutOfRangeException: Index was outside the bounds of the array.
    at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:24.813875 [ERROR][MapTileDownloader]: Exception :confused:ystem.IndexOutOfRangeException: Index was outside the bounds of the array.
    at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:24.829500 [ERROR][MapTileDownloader]: Exception :confused:ystem.IndexOutOfRangeException: Index was outside the bounds of the array.
    at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:24.829500 [ERROR][MapTileDownloader]: Exception :Index was outside the bounds of the array.
    2007-05-28 19:59:24.876375 [ERROR][MapTileDownloader]: Exception :Index was outside the bounds of the array.
    2007-05-28 19:59:24.876375 [ERROR][MapTileDownloader]: Exception :Index was outside the bounds of the array.
    2007-05-28 19:59:24.892000 [ERROR][MapTileDownloader]: Exception :Index was outside the bounds of the array.
    2007-05-28 19:59:24.892000 [ERROR][MapTileDownloader]: Exception :Index was outside the bounds of the array.
    2007-05-28 19:59:24.907625 [ERROR][MapTileDownloader]: site :confused:ystem.String GetVETileUrl(MapType, Int32, Int32, Int32)
    2007-05-28 19:59:24.938875 [ERROR][MapTileDownloader]: site :confused:ystem.String GetVETileUrl(MapType, Int32, Int32, Int32)
    2007-05-28 19:59:24.954500 [ERROR][MapTileDownloader]: site :confused:ystem.String GetVETileUrl(MapType, Int32, Int32, Int32)
    2007-05-28 19:59:24.954500 [ERROR][MapTileDownloader]: site :confused:ystem.String GetVETileUrl(MapType, Int32, Int32, Int32)
    2007-05-28 19:59:24.970125 [ERROR][MapTileDownloader]: site :confused:ystem.String GetVETileUrl(MapType, Int32, Int32, Int32)
    2007-05-28 19:59:24.970125 [ERROR][MapTileDownloader]: source :GUIWorldmap
    2007-05-28 19:59:25.017000 [ERROR][MapTileDownloader]: source :GUIWorldmap
    2007-05-28 19:59:25.017000 [ERROR][MapTileDownloader]: source :GUIWorldmap
    2007-05-28 19:59:25.032625 [ERROR][MapTileDownloader]: source :GUIWorldmap
    2007-05-28 19:59:25.032625 [ERROR][MapTileDownloader]: source :GUIWorldmap
    2007-05-28 19:59:25.048250 [ERROR][MapTileDownloader]: stacktrace: at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:25.095125 [ERROR][MapTileDownloader]: stacktrace: at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:25.110750 [ERROR][MapTileDownloader]: stacktrace: at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:25.173250 [ERROR][MapTileDownloader]: stacktrace: at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2007-05-28 19:59:25.220125 [ERROR][MapTileDownloader]: stacktrace: at MAPS.MapFunctions.GetVETileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.MapFunctions.GetTileUrl(MapType mapType, Int32 TileX, Int32 TileY, Int32 zoomLevel)
    at MAPS.ThreadedDownload.ImageThread(Object stateInfo)
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Hope this helps. Can't wait to try it out again :)

    Cheers,
    Downzy
     

    lkuech

    Retired Team Member
  • Premium Supporter
  • February 16, 2007
    576
    83
    50
    Hamburg
    Home Country
    Germany Germany
    Update to first thread again!

    some tips for posting bug reports (version 0.2.1 and higher):

    Please set your MediaPortal log mode to "debug" and watch for [Worldmap] entries.

    i.e.
    [Debug][MPMain]: [Worldmap] the window with the ID 10237 has been added to the windowmanager!

    or

    [Debug][MPMain]: [Worldmap] Calculating the widest zoome mode
    [Debug][MPMain]: [Worldmap] Calcalation result: ScreenWidth:MinZoomLevel:mapTiles 1358:2:3
    [Debug][MPMain]: [Worldmap] Refreshing Mapimage. lon:lat:zoomL:zoomF:mapT 18,4441325203125:-33,9193978325073:17:2:GMHybrid

    But of course the rest of the log is important as well.

    Bye
    Lars
     

    lkuech

    Retired Team Member
  • Premium Supporter
  • February 16, 2007
    576
    83
    50
    Hamburg
    Home Country
    Germany Germany
    sleepycol: I already tried to use common actions for this plugin. But of course not everyone has mapped the "colour actions" as default. Unfortunately plugins can not expand the GuiContext to build there own "selction level" in the remote config.
    I guess the best way to handle this is to build a menu in the plugins config to give users the possibility to choose there own actions (as you have proposed it). I will implement this in a later version.

    @all:
    The log entries "No translation found for id X" and "Could not find window X" are no errors (as far as I can say)

    "No translation found for id X" seems to occur if a window has controls which are not mentioned in strings_xx.xml. For a plugin that is logical.

    "Could not find window X" should occur only during the initializing of the plugin. If debug loggin is enabled you should find a "[Worldmap] the window with the ID XX has been added to the windowmanager!" as well.

    Bye
    Lars
     

    sleepycol

    Portal Pro
    June 2, 2006
    538
    39
    Home Country
    United Kingdom United Kingdom
    Hi,

    Maybe you could add all these map options in the context menu instead of or as well as the key shortcuts, then as long as the context menu works there would be no issues with key programming for the remotes. I will upgrade to V0.2.1 to check if the context menu works - maybe there are already the options there anyway, I haven't seen the menu yet. Just a thought.

    Being able to save favourite locations/bookmarks would be great, but as always it means more work for you! As with all these plugins, there's always more that people want ;0)

    Also, I forgot to say in my first message - GREAT PLUGIN!!


    Cheers,
    Colin
     

    janbo

    Portal Member
    October 28, 2006
    30
    0
    Linköping
    Home Country
    Sweden Sweden
    I get a black screen when loading version 0.2.1.

    MediaPortal.log says:
    2007-05-28 22:42:30.592875 [Info.][MPMain]: OnMessage exception:confused:ystem.TypeLoadException: Could not load type 'MediaPortal.Configuration.Config' from assembly 'Utils, Version=1.0.2546.32604, Culture=neutral, PublicKeyToken=null'.
    at WindowPlugins.Worldmap.WorldMap.OnPageLoad()
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    2007-05-28 22:42:33.061625 [Info.][MPMain]: Windowmanager:goto previous window
    2007-05-28 22:42:33.061625 [Info.][MPMain]: OnMessage exception:confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
    at WindowPlugins.Worldmap.WorldMap.OnPageDestroy(Int32 new_windowId)
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    2007-05-28 22:42:33.061625 [Info.][MPMain]: Recorder: Disabling DX9 exclusive mode
    2007-05-28 22:42:33.061625 [Info.][MPMain]: Main: DX exclusive mode: False
    2007-05-28 22:42:33.061625 [Info.][MPMain]: Main: Goto windowed mode: True
    2007-05-28 22:42:33.061625 [Info.][MPMain]: fonts.SetDevice()
    2007-05-28 22:42:33.061625 [Info.][MPMain]: window:MediaPortal.GUI.Home.GUIPlugIns init
    2007-05-28 22:42:35.171000 [Info.][MPMain]: Main: Exit requested
    2007-05-28 22:42:35.171000 [Info.][MPMain]: Main: Minimizing to tray on GUI exit and restoring taskbar

    Error.log says:
    2007-05-28 22:42:30.592875 [ERROR][MPMain]: OnMessage exception:confused:ystem.TypeLoadException: Could not load type 'MediaPortal.Configuration.Config' from assembly 'Utils, Version=1.0.2546.32604, Culture=neutral, PublicKeyToken=null'.
    at WindowPlugins.Worldmap.WorldMap.OnPageLoad()
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    2007-05-28 22:42:33.061625 [ERROR][MPMain]: OnMessage exception:confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
    at WindowPlugins.Worldmap.WorldMap.OnPageDestroy(Int32 new_windowId)
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
     

    mikael

    Retired Team Member
  • Premium Supporter
  • April 30, 2005
    558
    94
    38
    Stockholm, Sweden
    I can't get the colored remote buttons to do anything, want to switch to Google maps. They must be right configurated cause they all work in every other plugin... Anyone?

    EDIT: Those functions don't work with the E, R, T or M keys either...
     

    lkuech

    Retired Team Member
  • Premium Supporter
  • February 16, 2007
    576
    83
    50
    Hamburg
    Home Country
    Germany Germany
    Hi!

    sleepycol: The next version will come with a context menu to change the map entry type. :cool:

    janbo: "System.TypeLoadException" is something new... can you please take a look in your "MediaPortal.xml" file and post the "Worldmap" section here (most likely at the end of the file, starting with <section name="MyWorldmap"> and ending with </section>). If this problem is Worldmap dependent the only idea I have so far is that the "loadsettings" function may hit some strange values there. You can also try to delete this section.

    Bye
    Lars
     

    Downzy

    Portal Pro
    January 5, 2005
    55
    0
    Melbourne, Australia
    Home Country
    G'day,

    Not sure if I missed a bit in the instructions, but I just noticed that if I use the plugin in full screen mode, it doesn't crash. Subsequently, I've gone into window mode and it doesn;t crash either.

    Only seems to be if it runs in window mode first time...

    Now I'm going to go have a ply with it :)

    Cheers,
    David
     

    Users who are viewing this thread

    Top Bottom