Delay of Code Download

When our team tries to download code from Netbeans on the Classmate to the cRIO it displays the building and downloading. After a bit the progress stops visually. If we wait long enough before stopping the code download it will tell us that the code has downloaded just fine is true. It works fine. However, if we don’t wait long enough it will tell us that we have stopped the download and the code is not successfully downloaded.

We really don’t want to have to wait and guess when to hit the stop button so if anyone could give us any ideas as to what could be going wrong that would be great.

Can you provide log output and identify where in the process it stops for a long time. We’ve been trying to add notifications where we can, looks like we MAY have missed one.

Sorry for not getting back right away. Here is one of our build & run logs:

init:
init:
No to.jar.file specified.
Using “suite\TrackerDemo_1.0.0.jar”
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\build
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\j2meclasses
clean:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\build
Compiling 3 source files to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\build
compile:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\j2meclasses
preverify:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite
Building jar: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite\TrackerDemo_1.0.0.jar
jar-app:
Using “suite\TrackerDemo_1.0.0.jar”
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: squawk] …]

Excluding compile: com.sun.squawk.Method::getParameterTypes

Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt

Romizer processed 97 classes and generated these files:
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\image.sym
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\image.suite
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\image.suite.metadata
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\image.suite.api
Expanding: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite\TrackerDemo_1.0.0.jar into C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\suite
Deleting: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\TrackerDemo\image.suite.api
Connecting FTP @10.15.17.2
upgrade:
Sending local file image.suite
flashapp:
deploy:
init:
Setting up for RUN
[cRIO]
Waiting for prompt "-> "
[cRIO] ->
[cRIO] -> xdelete “/ni-rt/system/SQUAWK_DEBUG_ENABLED”
[cRIO] deleting file /ni-rt/system/SQUAWK_DEBUG_ENABLED
Waiting for prompt "-> "
[cRIO] /ni-rt/system/SQUAWK_DEBUG_ENABLED: S_relFsLib_FILE_NOT_FOUND
Waiting for prompt "-> "
[cRIO] value = -1 = 0xffffffff
Waiting for prompt "-> "
[cRIO] ->
Waiting for cRIO to reboot (1s)
Waiting for cRIO to reboot (2s)
Waiting for cRIO to reboot (3s)
Waiting for cRIO to reboot (4s)
Waiting for cRIO to reboot (5s)
Waiting for cRIO to reboot (6s)
Waiting for cRIO to reboot (7s)
Waiting for cRIO to reboot (8s)
[cRIO] -> reboo
[cRIO] -> * Loading StartupDlls: debug
[cRIO] Entering debug.o StartupLibraryInit
[cRIO] Debugging is up, target server mounted at /tsfs
[cRIO]
[cRIO]
[cRIO] VxWorks
[cRIO]
[cRIO] Copyright 1984-2006 Wind River Systems, Inc.
[cRIO]
[cRIO] CPU: MPC5200 – Wind River Lite5200 BSP.
[cRIO] Runtime Name: VxWorks
[cRIO] Runtime Version: 6.3
[cRIO] BSP version: 2.0/10
[cRIO] Created: Jul 29 2009, 13:41:47
[cRIO] ED&R Policy Mode: Deployed
[cRIO] WDB Comm Type: WDB_COMM_END
[cRIO] WDB: Ready.
[cRIO]
[cRIO] Leaving debug.o StartupLibraryInit
[cRIO] * Loading StartupDlls: NiRioRpc
[cRIO] * Loading StartupDlls: niorbs
[cRIO] * Loading StartupDlls: NiViSrvr
[cRIO] * Loading StartupDlls: nivissvc
[cRIO] task 0xee3ff8 (PAL00fb53f0) deleted: errno=0 (0) status=0 (0)
[cRIO] NI-RIO Server 3.2 started successfully.
[cRIO] task 0xc5f508 (NiRioRpc) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading StartupDlls: nivision
[cRIO] * Loading StartupDlls: niserial
[cRIO] * Loading StartupDlls: FRC_FPGA
[cRIO] * Loading StartupDlls: FRC_NetworkCommunication
[cRIO] FRC_NetworkCommunication was compiled from SVN revision 2064
[cRIO] FPGA Hardware GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
[cRIO] FPGA Software GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
[cRIO] FPGA Hardware Version: 2010
[cRIO] FPGA Software Version: 2010
[cRIO] FPGA Hardware Revision: 1.3.0
[cRIO] FPGA Software Revision: 1.3.0
[cRIO] * Loading StartupDlls: FRC_JavaVM
[cRIO]
[cRIO]
[cRIO] [OTA Server] Version: 2010 FRC, Dec 30 2009, 15:22:08
[cRIO]
[cRIO] [OTA Server] Starting…
[cRIO]
[cRIO] [OTA Command Server] In serverSocketListener()
[cRIO]
[cRIO] [OTA Redirector] In serverSocketListener()
[cRIO]
[cRIO] task 0x21572e0 (t2) deleted: errno=0 (0) status=0 (0)
[cRIO]
[cRIO] Welcome to LabVIEW Real-Time 8.6.1f2
[cRIO]
[cRIO] NI-VISA Server 4.5 started successfully.
[cRIO] task 0xe62780 (t1) deleted: errno=1835009 (0x1c0001) status=1 (0x1)
[cRIO] [OTA Server] Restarting Java VM
[cRIO]
[cRIO] [Squawk VM] Starting up…
[cRIO]
[cRIO]
[cRIO] [Squawk VM] Version: 2010 FRC, Jan 11 2010, 23:01:10
[cRIO]
[cRIO] [Squawk VM] File SQUAWK_DEBUG_ENABLED not found, starting squawk in normal mode…
[cRIO] [Squawk VM] arg: squawk.out
[cRIO] [Squawk VM] Squawk command line file SQUAWK_CMD_LINE not found, using default args…
[cRIO] [Squawk VM] arg: -suite:robot
[cRIO] [Squawk VM] arg: -Xmxnvm:1M
[cRIO] Bootstrap suite loaded
[cRIO] In Startup
[cRIO] Looking for implementation class com.sun.squawk.platform.posix.vxworks.natives.SelectImpl
[cRIO] Looking for implementation class com.sun.squawk.platform.posix.vxworks.natives.LibCImpl
[cRIO] FPGA Hardware GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] FPGA Software GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] Information: No user-supplied robotMain()

Then depending on how long we went before hittin the stop button it will either say “Build Stopped” or “Build Successful.”

Ignoring for the fact that sometimes when you hit “Stop” it says one thing or another, I don’t see anything going wrong here.

When you see “[cRIO] Information: No user-supplied robotMain()” that means that Java has started up, WPILib has started up, and your robot code has started up.

The “Build” doesn’t stop because it is waiting to see if your running program is going to print out any messages, or if the system throws any exceptions it’s going to print the exceptions in the same window.

I can see how this could be misleading though. The “Build Stopped” or “Build Successful” messages may be coming from “ant”, a build tool used under the hood to build, deploy, and run your code.

So if it tells us we stopped the build is the code still downloaded?

^ We checked and came up with our own answer. Yes, it works.