[mapguide-users] Session Creation Issue

Jackie Ng jumpinjackie at gmail.com
Thu Jun 22 10:10:49 PDT 2023


The error about map display width cannot be <= 0 suggests to me that the
viewer at some point made a GETDYNAMICOVERLAY request and passed in a
SETDISPLAYWIDTH of 0.

This sets the map display width in the session runtime map state to be 0,
causing the subsequent QUERYMAPFEATURES request to log that error.

Now, why would it pass up 0 in the first place? There must be some
inopportune moment in openlayers (or a browser-specific bug) where the map
dom element is zero size and the request for a new MG dynamic overlay
happens to be at this same moment.

The obvious solution is (duh!) don't send up such bogus requests. The key
is whether there is something in openlayers I can hook into to prevent such
bogus requests from being made. That's the current unknown.

- Jackie

You wrote:

I’m actually not sure how to even explain this issue….



I’ve been using MapGuide for sometime now and have started using the react
viewer, I think it’s a great piece of work, I’m not sure if the following
error is part of it or mapguide itself.



The issue is the application renders fine on 95% of my users browsers,
however a few are experiencing some issues:

   - The interface renders correctly
   - From all points of view the session is created and active
   - All external layers render
   - The user is using Chrome
   - The user is receiving the following error: Failed to load resource:
   the server responded with a status of 559 (MgInvalidArgumentException)
   - If the user accesses the site via Edge Browser it loads correctly…
   - If the user accesses the site from another PC it works correctly…



I don’t know how to debug or even investigate…



I’ve tried:

   - Rebooting server
   - Restarting IIS
   - Restarting MGServer instance
   - Clearing chrome browser cache / history
   - Using a username and password
   - Kicking the PC
   - Intimidating stares ><
   - Trying to clear php sessions on the server
   - Starting a session on another PC and copying the URL to the effected
   users PC



I’m confused as it’s only effecting that user on the one specific PC, even
loading the site as another user on the same PC works….?



I think it has something to do with the user accessing a session created in
the office then trying to pop back into the same session when they take
their laptop home and connect via the VPN, or trying to access another
users session using the sessionId (also would kind of expect this just to
work?). some kind of permission thing … it’s not creating all the resources
to correctly initialize the map….?



This is on the MapGuide 4.0.0.10048, Windows 10.0.19045 Build 19045
(Version 22H2 OS Build 19045.2604), IIS (Version 10.0.19041.1)

Access Log:

<2023-06-21T09:01:45>     11316            10.12.0.168
Anonymous
GetResourceData.1.0.0:3(Session:0d0b427e-0fbe-11ee-8000-005056aad8bf_en_MTI3LjAuMC4x0AFC0AFB0AFA//MainMap.Map,RuntimeData,)
Success

<2023-06-21T09:01:45>     10432            10.12.0.168
Anonymous
QueryFeatures.1.0.0:7(Session:0d0b427e-0fbe-11ee-8000-005056aad8bf_en_MTI3LjAuMC4x0AFC0AFB0AFA//MainMap.Map,MgStringCollection,MgGeometry,4,,1,5)
Failure



Error Log:

<2023-06-21T09:01:45>     10432            10.12.0.168      Anonymous

 Error: Invalid argument(s):

        The map display width cannot be less than or equal to zero.

 StackTrace:

  - MgRenderingServiceHandler.ProcessOperation() line 83 file
C:\working\build_area\mapguide\4.0.0\x64\MgDev\Server\src\Services\Rendering\RenderingServiceHandler.cpp

  - MgOpQueryFeatures.Execute() line 125 file
C:\working\build_area\mapguide\4.0.0\x64\MgDev\Server\src\Services\Rendering\OpQueryFeatures.cpp

  - MgServerRenderingService.QueryFeatures() line 1194 file
C:\working\build_area\mapguide\4.0.0\x64\MgDev\Server\src\Services\Rendering\ServerRenderingService.cpp

  - MgServerRenderingService.RenderForSelection() line 1570 file
C:\working\build_area\mapguide\4.0.0\x64\MgDev\Server\src\Services\Rendering\ServerRenderingService.cpp



Open to any suggestions at this time.



I’ll go through any changes I’ve made to see if I’ve effected the session
creation at some stage….

Regards

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20230623/ae5e2aa4/attachment.htm>


More information about the mapguide-users mailing list