Skip to content

Issue: GameQException with message length OOB

Austinb edited this page Nov 14, 2012 · 5 revisions

Problem

Querying a server with debug mode enabled returns a exception that looks similar to the following: Fatal error: Uncaught exception 'GameQException' with message 'length OOB' in /path/to/gameq/buffer.php:106

Issue

This issue occurs for one of 2 reasons:

  1. The wrong game type was used when querying the server. For example the server is running Team Fortress 2 (tf2) but the server type was defined as Quake 3 (quake3) when it was added to the list of servers to query.

  2. The response from the server was not in the expected format. The response sent back has been altered or was incomplete (packet was not transmitted completely).

Resolution

  1. Check the data being added via addServer(s)() to be sure it is the proper server type. GameQ does not attempt to test to see if the defined server type is the correct one.

  2. This can happen if a game server modification (mod) adds extra information to the query response. If this is the case please open a new issue with the server information and mods causing the issue. Also please include the server ip:port so changes can be tested easily. Note that this happens rarely.

    This can also happen if a game server's files are updated and includes a change to the query response(s). If the server's files include an update to the response to various queries please open a new issue as these are fairly easy to fix. Note that this is more common on newer games that are frequently updated.

    if this issue occurs occasionally and it is not easily replicated it could be an issue with the actual game server's response(s). Check the integrity of the game server and its configuration settings to make sure it is operating properly. This issue can also occur if a server crash happened while the server was sending a response.