Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
dal
Contributor
Posts: 39
Registered: ‎05-09-2016
Accepted Solution

setCoordinateSystem(coordSys) returns error '80010105'

Hi all,

 

We make use of the function "m_objMS.SetCoordinateSystem (coordSys)" on a Mapserver object.

In a clients environment (WebMap 2016, WIN Server 2012) the function-call returns an error '80010105'. The string stored in the variable coordSys points to a valid csf-file.

 

Does anybody know what the previously mentioned error code stands for? Is the described behavior possibly already well known?

 

Thanks in advance,

Dominik

Staff
Posts: 294
Registered: ‎11-05-2015

Re: setCoordinateSystem(coordSys) returns error '80010105'

The HRESULT 0x80010105 is a standard COM error code. As per https://msdn.microsoft.com/library/ee824990(CS.10).aspx it means that there was an unhandled exception thrown and it bubbled up all the way to the COM message queue.

 

Is there anything of interest stored in the Windows Event Log? What were the last lines written to the detailed GWMLog when this happened? Are you sure the path you pass is accessible for the MapSvr.exe process, remembering it being a 32-bit one?

dal
Contributor
Posts: 39
Registered: ‎05-09-2016

Re: setCoordinateSystem(coordSys) returns error '80010105'

Since the error does not occur on a regular basis (i.e. sometimes no exception is thrown) it can be assumed that path passed is accessible for the MapSvr.exe process. Furthermore, the application calling the SetCoordinateSystem-function runs in 32bit IIS app-pool.

 

When the error occurs the following events are registered in the Windows Event Log:

  • AddLibraryConnection error, followed by an
  • GetFromLibrary error, afterwards, 
  • the MapSvr.exe crashes

 

The last lines written to the detailed GWMLog are the following, when the error occurs:

  • No known library storage service for Lib_ef7d8f2a313443ac_ND:
    Tue Apr 18 08:53:22 2017(0.443077) - No known library storage service for Lib_ef7d8f2a313443ac_ND
  • GetFromLibrary return 80004005:
    Tue Apr 18 08:53:22 2017(0.443087) - GetFromLibrary return 80004005

Please find an event-viewer snippet and WebMap-logs in the attached zip directory "Files.zip".

Regards.

Staff
Posts: 294
Registered: ‎11-05-2015

Re: setCoordinateSystem(coordSys) returns error '80010105'

The log files provided suggest that it's not the SetCoordinateSystem call that fails first, but a previous call to AddLibraryConnection which didn't finish successfully. I'm not sure how they can be related, but there might be state corruption taking place in the GetFromLibrary which then blows up the process entirely.

 

The log files indicate that you might be experiencing an issue related http://community.hexagongeospatial.com/t5/Developer-Discussions/WebMap-AddLibraryConnection-unstable....

dal
Contributor
Posts: 39
Registered: ‎05-09-2016

Re: setCoordinateSystem(coordSys) returns error '80010105'

Aargh, sure, this is probably also the issue here Smiley LOL

Advised the customer accordingly to create the necessary WPSettings-Table in conventional libraries....as soon as I get a feedback I'll forward the insights to this thread.

 

Anyway - thanks in advance.