Troubleshooting

From PC2wiki
Jump to: navigation, search

The PC² Team supports contests all over the world and helps troubleshoot problems using PC². This article contains questions, problems and where to find answers.

Where to find information

Version 9

The PC² team request that before contacting them that you review the following documentation and information.

  1. Use Google and search for the item, ex: csus pc2 perl
  2. The PC² FAQ on-line here
  3. See the How do I article.
  4. The 9.2 Admin Guide
  5. Check PC² Bugzilla for information

After reviewing the documentation, send an e-mail to the PC² Team click here to send e-mail.

If you have a suggested enhancement or bug report use PC² Bugzilla

Version 8

The PC² team request that before contacting them that you review the following documentation. Some of the documents are in the distribution.

  1. The PC² FAQ on-line here
  2. Contest Administrator’s Installation and Configuration Guide under doc/admin/pc2v85AdminGuide.pdf or on-line here
  3. What's New document for 8.7 under doc/admin/WhatsNew.pdf or on-line here
  4. Gotchas some odds and ends not covered in the above documents
  5. Check PC² Bugzilla for workarounds or known bugs.

After reviewing the documentation, send an e-mail to the PC² Team click here to send e-mail.

If you have a suggested enhancement or bug report use PC² Bugzilla

execution of program did not generate any output

When executing a run/submission the following message may appear:

PC2: execution of program did not generate any output
Problem executing compiler, contact staff.

Typically this is caused by either:

  1. On the computer there is no compiler for the Language
  2. The Language is not configured correctly.

Compiler not found, contact staff

As the message suggests the compiler program is not found, typically this means that the compiler is not installed or is not setup (in the PATH). The user will be presented with the error: Compiler not found, contact staff

In the log the following will be present, the cl.exe will be replaced with the compiler program name.

Note: exec failed in RunProgram Cannot run program "cl.exe" (in directory "executesite1team1"): CreateProcess error=2

Another example with the javac not in the PATH

Note: exec failed in RunProgram Cannot run program "javac" (in directory "executesite1team1"): CreateProcess error=2,

Microsoft C++

Microsoft provides a script to setup PATH and other environmental variables, the script is named VCVARS32.BAT and is typically found under "C:\Program Files\Microsoft Visual Studio\VC98\Bin" The file might be somewhere else depending on how Microsoft C++ was installed.

This script must be executed before you start the pc2team, pc2judge, etc. To test, run the cl.exe (that is CL not C0) program. For example if the compiler is installed and setup correctly the following will be displayed when one enters the cl command.

C> cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

C:\Program Files\Microsoft Visual Studio\VC98\Bin>

C>

HeadlessException starting server

Problem: When starting pc2server the server stops with a HeadlessException message

Solution: Use the --nogui command line option to start the server in nongui mode.

Cause: Commonly under Unix users want to run the server in command line mode (no GUI), by default the server starts in GUI mode, since there is no windows manager to handle GUI/awt functions the server cannot start.


Error: Could not find or load main class

Earlier version of Java 1.7 can cause PC^2 version 9 server and other modules to fail to start.

For the "Could not find or load..." message below, the fix is to use Java version version 1.7.0_101 or later. The PC^2 team recommends using Java version 1.8 for PC^2 Version 9.

WARNING: We detected a 32 bit java running on a 64 bit OS.

We recommend that you run PC2 Server using a 64 bit version of Java to allow
for the best results.

Note: We have set the Java Heap size to 768M for your 32-bit Java system,
but this may be too small to run the PC2 Server.

You can increase the Heap size to whatever the maximum allowed on your machine
is by editing the Java32bit_HeapSize constant at the start of the
"pc2server.bat" file.
Error: Could not find or load main class C:\test\current\bin\\pc2env.bat\..\..\lib\hibernate-validator-5.1.3.Final.jar

See Also

External links