Skip to content
Prev 37271 / 63421 Next

R.exe crashes on R v2.12.0dev (Windows Vista)

Hi,

by pure luck, I discovered that it has to do with the number of
characters (or similar) in the Windows system environment variable
'PATH'.  I used a custom PATH when it crashed.  When I tried to a
plain/fresh Command prompt, the PATH is shorter and then R.exe doesn't
crash.  This is that working PATH:

C:\Program Files\Common Files\Microsoft Shared\Windows
Live;c:\Rtools212\bin;c:\Rtools212\perl\bin;c:\Rtools212\MinGW\bin;c:\Rtools\bin;c:\Rtools\perl\bin;c:\Rtools\MinGW\bin;C:\PROGRA~1\GTK2-R~1\bin;C:\Program
Files\MiKTeX 2.7\miktex\bin;c:\program
files\imagemagick-6.4.2-q16;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files\Common Files\Lenovo;C:\Program
Files\ThinkPad\ConnectUtilities;C:\Program Files\Lenovo\Client
Security Solution;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files\GTK2-Runtime\lib;C:\Program
Files\aspell\bin;C:\Program
Files\TortoiseSVN\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\QuickTime\QTSystem\;C:\Program Files\Common Files\DivX
Shared\;C:\Program Files\SlikSvn\bin\;C:\Program
Files\ThinkPad\ConnectUtilities\;C:\Program
Files\TortoiseSVN\bin;C:\Program Files\Common Files\Microsoft
Shared\Windows Live;C:\Program Files\SSH Communications Security\SSH
Secure Shell;C:\Users\hb\bin

Starting with this PATH and making it longer and longer I can
eventually reproduce the crash again.  It occurs when my PATH is ~1182
characters long:

path C:/1234567890/1234567890/1234567890/1234567890/1234567890/;%PATH%
path C:/1234567890/1234567890/1234567890/1234567890/1234567890/;%PATH%
path C:/1234567890/1234567890/1234567890/1234567890/1234567890/;%PATH%
path C:/1234567890/1234567/;%PATH%
echo %PATH% | wc
"%ProgramFiles%/R/R-2.12.0dev/bin/i386/R.exe"

If I make it a few characters shorter, R.exe starts, but when I do
quit() it crashes.

Note that there is no problem with Rterm.exe.

Thanks

/Henrik

PS. I've installed Microsoft Debug Diagnostic Tool v1.1 and tried to
get something useful out of it without much success.  If the above
PATH troubleshooting is not enough, I'll spend more time trying to
figure out how that tool works.


On Mon, Jul 26, 2010 at 5:20 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote: