[GRASS-dev] lots of "The application failed to initialize properly" in 6.4.0 on Windows

Hi,

Lots of commands (e.g. g.proj, g.region, g.remove) on my instalation of Windows GRASS 6.4.0 and the latest SVN snapshot (WinGRASS-6.4.SVN-r43430-1-Setup.exe) fail to run and an error window pops up (attached), saying:

"The application failed to initialize properly (0xc0150002)."

This a Virtulabox (3.2.8 non-free) running Windows Prof. SP3 32bit under Debian Squeeze amd64. I don't have a "real" Windows box at hand if the problem takes place on my system only. Does anybody experience similar errors on Windows?

Maciek

--
Maciej Sieczka
http://www.sieczka.org

(attachments)

win_err.png

Maciej Sieczka wrote:

Lots of commands (e.g. g.proj, g.region, g.remove)

That list looks suspiciously like "programs which use GDAL".

You might want to check whether there are other versions of GDAL on
your system, particularly if they are in %PATH%.

--
Glynn Clements <glynn@gclements.plus.com>

W dniu 11.09.2010 21:38, Glynn Clements pisze:

Maciej Sieczka wrote:

Lots of commands (e.g. g.proj, g.region, g.remove)

That list looks suspiciously like "programs which use GDAL".

You might want to check whether there are other versions of GDAL on
your system, particularly if they are in %PATH%.

Thanks for the hint. No trace of GDAL in system and user variables
AFAICT.

My PATH on cmd GRASS concole:

GRASS 6.4.0 (demolocation)> echo %PATH%
C:\Program Files\GRASS-64\bin;C:\Program Files\GRASS-64\lib;C:\Program
Files\GRASS-64\tcl-tk\bin;C:\Program
Files\GRASS-64\sqlite\bin;C:\Program Files\GRASS-64\gpsbabel;C:\Program
Files\GRASS-64\extrabin;C:\Program Files\GRASS-64\extralib;C:\Program
Files\GRASS-64\msys\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

PATH on msys GRASS console:

GRASS 6.4> echo $PATH
/C/Program Files/GRASS-64/lib:/C/Program Files/GRASS-64/bin:/C/Program
Files/GRASS-64/scripts:/C/Program Files/GRASS-64/tcl-tk/bin:/C/Program
Files/GRASS-64/sqlite/bin:/C/Program Files/GRASS-64/gpsbabel:/C/Program
Files/GRASS-64/extrabin:/C/Program
Files/GRASS-64/extralib:.:/usr/local/bin:/mingw/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem

I have these 2 GDAL libs installed there:

GRASS 6.4> ls /c/Program\ Files/GRASS-64/extralib/*gdal*
/c/Program Files/GRASS-64/extralib/gdal15.dll
/c/Program Files/GRASS-64/extralib/gdal16.dll

Ideas, anybody?

Best,
Maciek

--
Maciej Sieczka
http://www.sieczka.org

Maciej Sieczka wrote:

Ideas, anybody?

Another possibility is an incompatible version of one of the (many)
libraries which GDAL uses. Do the GDAL utilities (gdalinfo etc) work?

--
Glynn Clements <glynn@gclements.plus.com>

W dniu 14.09.2010 00:59, Glynn Clements pisze:

Maciej Sieczka wrote:

Ideas, anybody?

Another possibility is an incompatible version of one of the (many)
libraries which GDAL uses. Do the GDAL utilities (gdalinfo etc)
work?

They don't. Same error.

--
Maciej Sieczka
http://www.sieczka.org

W dniu 14.09.2010 15:46, Maciej Sieczka pisze:

W dniu 14.09.2010 00:59, Glynn Clements pisze:

Maciej Sieczka wrote:

Ideas, anybody?

Another possibility is an incompatible version of one of the
(many) libraries which GDAL uses. Do the GDAL utilities (gdalinfo
etc) work?

They don't. Same error.

Dependency Walker http://www.dependencywalker.com/ says:

---
Error: The Side-by-Side configuration information for "c:\program
files\grass-64\extralib\LIBPQ.DLL" contains errors. This application has
failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem (14001).
Error: At least one required implicit or forwarded dependency was not found.

[ ? ] MSVCR80.DLL Error opening file. The system cannot find the file
specified (2).
[D? ] IESHIMS.DLL Error opening file. The system cannot find the file
specified (2).
[D? ] WER.DLL Error opening file. The system cannot find the file
specified (2).
---

Full output attached (g.region.txt.bz2).

I found a copy of MSVCR80.DLL in
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd
and copied it to C:\WINDOWS\system. This got rid of that one missing
dependency, still the other two remain.

And there is no trace of them on my system.

By google they seem to be related to some MS Movie Maker issue (I
haven't tried searching hard I admit). Time to reinstall Windows :)?

Maciek

--
Maciej Sieczka
http://www.sieczka.org

(attachments)

g.region.txt.bz2 (10.1 KB)

Maciej Sieczka wrote:

>>> Ideas, anybody?
>
>> Another possibility is an incompatible version of one of the
>> (many) libraries which GDAL uses. Do the GDAL utilities (gdalinfo
>> etc) work?
>
> They don't. Same error.

Dependency Walker http://www.dependencywalker.com/ says:

---
Error: The Side-by-Side configuration information for "c:\program
files\grass-64\extralib\LIBPQ.DLL" contains errors. This application has
failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem (14001).
Error: At least one required implicit or forwarded dependency was not found.

[ ? ] MSVCR80.DLL Error opening file. The system cannot find the file
specified (2).
[D? ] IESHIMS.DLL Error opening file. The system cannot find the file
specified (2).
[D? ] WER.DLL Error opening file. The system cannot find the file
specified (2).
---

Full output attached (g.region.txt.bz2).

I found a copy of MSVCR80.DLL in
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd
and copied it to C:\WINDOWS\system.

It should be system32.

This got rid of that one missing
dependency, still the other two remain.

And there is no trace of them on my system.

By google they seem to be related to some MS Movie Maker issue (I
haven't tried searching hard I admit). Time to reinstall Windows :)?

Apparently, IESHIMS.DLL and WER.DLL are specific to Vista and later.
They shouldn't be required (and probably won't even work) on other
platforms, but Dependency Walker complains about any DLLs which it
can't find, regardless of whether they're actually required. All of my
GRASS executables cause Dependency Walker to complain about a missing
MSJAVA.DLL (required by MSHTML.DLL), but they still work.

The missing MSVCR80.DLL would be a real problem. This file is part of
the Visual Studio 2005 runtime. People often forget to bundle the
MSVCRxx.DLL files because so many systems already have them (although
they aren't part of the OS install), so the error is only discovered
when installing on a relatively clean system.

--
Glynn Clements <glynn@gclements.plus.com>

W dniu 21.09.2010 10:36, Glynn Clements pisze:

Maciej Sieczka wrote:

Dependency Walker http://www.dependencywalker.com/ says:

---
Error: The Side-by-Side configuration information for "c:\program
files\grass-64\extralib\LIBPQ.DLL" contains errors. This application has
failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem (14001).
Error: At least one required implicit or forwarded dependency was not found.

[ ? ] MSVCR80.DLL Error opening file. The system cannot find the file
specified (2).
[D? ] IESHIMS.DLL Error opening file. The system cannot find the file
specified (2).
[D? ] WER.DLL Error opening file. The system cannot find the file
specified (2).

Apparently, IESHIMS.DLL and WER.DLL are specific to Vista and later.
They shouldn't be required (and probably won't even work) on other
platforms, but Dependency Walker complains about any DLLs which it
can't find, regardless of whether they're actually required. All of my
GRASS executables cause Dependency Walker to complain about a missing
MSJAVA.DLL (required by MSHTML.DLL), but they still work.

The missing MSVCR80.DLL would be a real problem. This file is part of
the Visual Studio 2005 runtime. People often forget to bundle the
MSVCRxx.DLL files because so many systems already have them (although
they aren't part of the OS install), so the error is only discovered
when installing on a relatively clean system.

I have scratch-installed Windows XP SP3, fetched all updates, installed GRASS 6.4.0. As expected, many commands crashed with an "The application failed to initialize properly" error. According to Dependency Walker, missing were MSVCR80.DLL, MSVCR90.DLL, IESHIMS.DLL and WER.DLL.

Installing MS Visual C++ 2008 SP1 Redistributable Package [1] and the 2005 one [2] fixed the issue.

IESHIMS.DLL and WER.DLL are still missing but it doens't do any harm to my GRASS instalation, AFAICT.

Can Win GRASS installer ship MSVCR80.DLL and MSVCR90.DLL?

[1] http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2
[2] http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647

--
Maciej Sieczka
http://www.sieczka.org

Hi Maciek,

I just installed latest WinGRASS on Win7 64bit, run 2 of mentioned by
you commands and they worked as they should.

Milena
PS. See you on Monday

2010/9/11 Maciej Sieczka <msieczka@sieczka.org>:

Hi,

Lots of commands (e.g. g.proj, g.region, g.remove) on my instalation of
Windows GRASS 6.4.0 and the latest SVN snapshot
(WinGRASS-6.4.SVN-r43430-1-Setup.exe) fail to run and an error window pops
up (attached), saying:

"The application failed to initialize properly (0xc0150002)."

This a Virtulabox (3.2.8 non-free) running Windows Prof. SP3 32bit under
Debian Squeeze amd64. I don't have a "real" Windows box at hand if the
problem takes place on my system only. Does anybody experience similar
errors on Windows?

Maciek

--
Maciej Sieczka
http://www.sieczka.org

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Milena Nowotarska
http://wiki.osgeo.org/wiki/Milena_Nowotarska
http://quantum-gis.pl/
http://www.qgis.org/wiki/4._QGIS_Hackfest_in_Wroclaw_2010