Today I'm getting this when trying to run Welcome on Windows 7:
Unable to start pty process:
It wors fine with the 'Standard Output' output window.
INFO [nativeexecution.support.logger]: [26527 ms.] Error occurred: Unable to start pty process:
java.io.IOException: Unable to start pty process:
[catch] at org.netbeans.modules.nativeexecution.AbstractNativeProcess.createAndStart(AbstractNativeProcess.java:152)
please provide some details...
Is it 64-bit or 32-bit OS?
What toolchain was used? Do you have msys/cygwin? Versions? Do you use profiling?
can you start pty process outside the IDE (in shell's terminal, cd to netbeans/ide/bin/nativeexecution/Windows-x86/ and run ./pty)?
Are you getting this error every time you try to start the project, or it's just a single failure?
are you able to reproduce the problem? (I've just tried on my Win7 distribution and it works)
Please reopen when more details provided.
I can not reproduce this either.
I'm running Win 7 in Virtual Box on my Mac. I believe it is a 32 bit version. I'm using Cygwin and MinGW, and I believe it is happening with both chains (has the tool chain anything to do with running a simple app as Welcome?). I'm using all standard setup so profiler is enabled and it is (was) happening every time I tried to run it (Welcome). Will try again with today's version and see if it is reproducible and re-open if it is.
OK, here are the details:
Using Win 7 32 bit version on Virtual Box image on a MAC
Using Cygwin and MinGW and it fails with both tool chains (tool chain probably doesn't matter when running a simple app like Welcome).
It happens every time I run in terminal Window
It works fine in standard output window.
./pty in netbeans/ide/bin/nativeexecution/Windows-x86 doesn't run in my MSys terminal window. See attached screen shot.
./pty does run in my cygwin termina window.
I installed a build and ran it from the desktop icon and it fails too. Not sure how MinGW is involved here.
If I run NetBeans from a MinGW window, it also doesn't work.
I opened the bug again. Please feel free to downgrade or close if you think it is an isolated case.
Created attachment 105120 [details]
CYGWIN_NT-6.1 thp-PC 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
Is this OK? Incompatible? Too old?
Upgraded Cygwin to
CYGWIN_NT-6.1 thp-PC 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin
and now it works. So, please feel free to close as 'using unsupported version' is that is the case. Or perhaps pty should be relinked with older Cygwin library to be compatible?
Cygwin 1.7.* should be used on Windows 7 instead of 1.5.* which was developed before Windows 7. At the same time users on WinXP/Vista can continue using cygwin 1.5.* (WinXP SP3 is a primary NB 7.0 platform).
Closed as CND works fine with cygwin 1.7.7 on both WinXP and Windows 7.
Please look this Web to solve this trouble, please:
(In reply to 72VanMojick from comment #12)
> Please look this Web to solve this trouble, please:
Please, sure before ,that you have installed the compiler, debugger, make and plugin c/c++.
Maybe you should use External terminal, try it.
I'm able to reproduce the defect using a newer version of Cygwin.
Here's my system config:
CYGWIN_NT-6.1 srihari-PC 1.7.25(0.270/5/3) 2013-08-31 20:37 x86_64 Cygwin
Product Version: NetBeans IDE 7.3.1 (Build 201306052037)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
I'm running the sample Welcome app, and it gives me the following error when i try on internal terminal.
Unable to start pty process:
RUN FAILED (exit value -2, total time: 97ms)
When i switch to "Standard terminal", i see the following:
729 [main] welcome_1 8732 C:\Users\srihari\Documents\NetBeansProjects\Welcome_1\dist\Debug\Cygwin_4.x-Windows\welcome_1.exe: *** fatal error - error while loading shared libraries: /cygdrive/C/Program Files/NetBeans 7.3.1/ide/bin/nativeexecution/Windows-x86/unbuffer.dll: cannot open shared object file: Exec format error
30452 [main] welcome_1 8732 open_stackdumpfile: Dumping stack trace to welcome_1.exe.stackdump
RUN FAILED (exit value 256, total time: 1s)
As Thomas observed, this is fine when I run the program on "External Terminal".
*** This bug has been marked as a duplicate of bug 234221 ***