This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186376 - Internal terminal hasn't warning about the missed dll
Summary: Internal terminal hasn't warning about the missed dll
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 11:58 UTC by soldatov
Modified: 2010-05-24 10:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2010-05-19 11:58:32 UTC
I have MinGW and MSYS in Path

Scenario:
- Create HelloQtWorld sample
- Build it
- Run in Output window
==> ok

The application failed with exit code -1073741515 (0xc0000135). 
This could indicate that no required .dll was found in the PATH. 
Please try to start the following command from the command shell (cmd.exe). 
This may give some additional information. 

C:/tmp/HelloQtWorld_3/dist/Debug/MinGW-Windows/HelloQtWorld_3 

RUN FAILED (exit value -1 073 741 515, total time: 78ms)

- Run in Internal terminal
==>
RUN FAILED (exit value -1 073 741 515, total time: 47ms)
Comment 1 Andrew Krasny 2010-05-19 12:22:46 UTC
Fix in cnd-main: 
http://hg.netbeans.org/cnd-main/rev/695eda831318
Comment 2 Andrew Krasny 2010-05-19 20:10:33 UTC
Vladimir, 

could you, please, review the fix?
Comment 3 Egor Ushakov 2010-05-20 10:38:18 UTC
1. If path == prefix then this line will throw StringIndexOutOfBoundsException:
if (path.startsWith(prefix) && path.charAt(plen + 1) == '/') { // NOI18N

2. how can info.getCommand for ptyprocess contain pty wrapper??

3. can quoting of executable be done for unconditionally? it will not harm I think:
     cmd.append('"').append(exec).append('"').append(' '); // NOI18N
Comment 4 Alexander Pepin 2010-05-20 11:16:10 UTC
Starting showstopper process
Comment 5 Andrew Krasny 2010-05-20 13:11:42 UTC
to #3:

1. will evaluate
2. Pty process is actually a local process with substituted command line. So if welcome.exe is started in a pty, actually the command that is executed is "pty welcome.exe". At this point we have exactly this, wrapped process.

Actually, this check for the initialization error could be copied to the PtyProcess itself. But in this case it will require additional logic in handling error stream for a PtyProcess (which is now just delegates I/O to the LocalNativeProcess)...

3. For me it just looks better without quotes (and originally there were no quotes at all).. Quotes are here just to be able copy/paste the command to follow the advise, proposed in the message...

Comments?
Comment 6 Andrew Krasny 2010-05-20 13:49:55 UTC
additional fix for #3:1
http://hg.netbeans.org/cnd-main/rev/e097de19ef96
Comment 7 Egor Ushakov 2010-05-20 16:05:07 UTC
ok, fix is approved
Comment 8 Alexander Pepin 2010-05-20 17:53:41 UTC
verified in dev cnd build from bertram.
please push to release69 clone.
Comment 9 Vladimir Kvashin 2010-05-20 19:38:56 UTC
Integrated in release69:
http://hg.netbeans.org/release69/rev/f932db0e7566
Comment 10 soldatov 2010-05-24 10:08:16 UTC
verified in RC1