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.
While testing NetBeans on Windows XP (in virtual box), building remotely on Ubuntu (host system in VBox terms), I've got the following issue quite stable: Process exited unexpectedly while file info was being sent protocol error: first line shoud start with VERSION: D /home/vk155xxx/.netbeans/remote/71.15.28.29/hostname-Windows-x86/C/Documents and Settings Initialization error BUILD FAILED
I've just remembered that there already was an issue 187439 with the same error message. But it seems its root cause was found and fixed.
For some reason remote process (rfs_controller) isn't in time to read the first line of input that is send to it. The process is created (NativeProcessBuilder.call() is onvoked) in the same thread in which input is sent to it. When i tried to get pid and state of the process just before sending input, pid already existed and state was "running".
I've just pushed it a workaround - a 200 ms sleep http://hg.netbeans.org/cnd-main/rev/f52df47afd3a With it I wasn't able to get build fail. But what I'm afraid of is that there is a race somewhere in nativeexecution or jsch. I'm not closing the issue - we'd better find and fix root cause than work it around. The question is whether we'll be in time to do this in 7.0 To switch workaround off, use -J-Drfs.instable.sleep=0
Integrated into 'main-golden', will be available in build *201103100400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f52df47afd3a User: Vladimir Kvashin <vkvashin@netbeans.org> Log: A workaround for #196453 - Can not build remote project: protocol error
Is it a HR fix candidate? Do you expect a fix or workaround is enough for now?
Yes, I believe it's a HR candidate. The workaround seems to work, so for now its enough I believe.
After a discussion with QA it was decided to downgrade to P3 as it seems to reproduce in a very specific configuration. However I believe it should be fixed in 7.01 or patch if we have one of these.
Created attachment 108741 [details] The proposed fix
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/ User: Log:
http://hg.netbeans.org/releases/rev/91f2134d41cc http://hg.netbeans.org/releases/rev/c80abda14159
http://hg.netbeans.org/releases/rev/46b7b7707fd9
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/ User: Log: