Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive error "RESOURCE_EXHAUSTED: Received message larger than max (5124057 vs. 4194304)" #657

Open
bstee615 opened this issue Nov 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@bstee615
Copy link

Description
I tried to generate tests for the integration-tests/c-example project and receive this message with an error:

RESOURCE_EXHAUSTED: Received message larger than max (5124057 vs. 4194304)

This prevents any tests from being generated.

To Reproduce
Steps to reproduce the behavior:

  1. Open the c-examples project in IDE, e.g. file calc.c
  2. Use plugin action "UTBot: Generate Tests for File"
  3. Error message should show up

Expected behavior
Tests are supposed to be generated.

Actual behavior
An error test is generated with the error message; logs below.

02:51:17 | 14 UNAVAILABLE: No connection established
02:51:17 | Connection with server can't be established
02:51:18 | map scriptUri -> https://vscode-remote%2Bssh-002dremote-002b7b22686f73744e616d65223a22414d227d.vscode-resource.vscode-cdn.net/home/benjis/.vscode-server/extensions/unittestbot.utbotcpp-2023.11.0/media/wizardHTML.js
02:51:18 | map vscodeUri -> https://vscode-remote%2Bssh-002dremote-002b7b22686f73744e616d65223a22414d227d.vscode-resource.vscode-cdn.net/home/benjis/.vscode-server/extensions/unittestbot.utbotcpp-2023.11.0/media/vscode.css
02:51:18 | map stylesUri -> https://vscode-remote%2Bssh-002dremote-002b7b22686f73744e616d65223a22414d227d.vscode-resource.vscode-cdn.net/home/benjis/.vscode-server/extensions/unittestbot.utbotcpp-2023.11.0/media/wizardHTML.css
02:51:18 | map os -> linux
02:51:18 | map projectDir -> /old-home/code/trace-modeling
02:51:18 | map defaultGRPCPort -> 2121
02:51:18 | map defaultSFTPPort -> 2020
02:51:18 | map serverHost -> 
02:51:18 | map serverDir -> 
02:51:18 | map predictedHost -> localhost
02:51:18 | map predictedGRPCPort -> 2121
02:51:18 | map predictedSFTPPort -> NaN
02:51:18 | map predictedRemotePath -> /old-home/code/trace-modeling
02:51:18 | map predictedBuildDirectory -> build
02:51:18 | map cmakeOptions -> -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_EXPORT_LINK_COMMANDS=ON
02:53:47 | Successfully connected to server
02:53:49 | Server version: 2023.11.0
02:53:49 | Server version: 2023.11.0
02:55:30 | Build folder not found
02:55:44 | Build folder not found
02:55:46 | Build folder is created successfully
02:55:46 | Json files not found.
02:55:54 | map scriptUri -> https://vscode-remote%2Bssh-002dremote-002b7b22686f73744e616d65223a22414d227d.vscode-resource.vscode-cdn.net/home/benjis/.vscode-server/extensions/unittestbot.utbotcpp-2023.11.0/media/wizardHTML.js
02:55:54 | map vscodeUri -> https://vscode-remote%2Bssh-002dremote-002b7b22686f73744e616d65223a22414d227d.vscode-resource.vscode-cdn.net/home/benjis/.vscode-server/extensions/unittestbot.utbotcpp-2023.11.0/media/vscode.css
02:55:54 | map stylesUri -> https://vscode-remote%2Bssh-002dremote-002b7b22686f73744e616d65223a22414d227d.vscode-resource.vscode-cdn.net/home/benjis/.vscode-server/extensions/unittestbot.utbotcpp-2023.11.0/media/wizardHTML.css
02:55:54 | map os -> linux
02:55:54 | map projectDir -> /old-home/code/trace-modeling
02:55:54 | map defaultGRPCPort -> 2121
02:55:54 | map defaultSFTPPort -> 2020
02:55:54 | map serverHost -> 
02:55:54 | map serverDir -> 
02:55:54 | map predictedHost -> localhost
02:55:54 | map predictedGRPCPort -> 2121
02:55:54 | map predictedSFTPPort -> NaN
02:55:54 | map predictedRemotePath -> /old-home/code/trace-modeling
02:55:54 | map predictedBuildDirectory -> build
02:55:54 | map cmakeOptions -> -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_EXPORT_LINK_COMMANDS=ON
02:55:56 | Server version: 2023.11.0
02:56:23 | Json files not found.
02:56:27 | Successfully configured project
02:56:38 | Sending project tests request 
projectName: trace-modeling
projectPath: /old-home/code/trace-modeling
buildDirRelativePath: unittest/UTBotCpp/integration-tests/c-example/build
targetPath: /utbot/auto/target/path
02:56:39 | 8 RESOURCE_EXHAUSTED: Received message larger than max (5124057 vs. 4194304)
02:58:42 | Sending file tests request, filepath: /old-home/code/trace-modeling/unittest/UTBotCpp/integration-tests/c-example/src/calc.c
02:58:42 | 8 RESOURCE_EXHAUSTED: Received message larger than max (5124244 vs. 4194304)
03:01:31 | Sending file tests request, filepath: extension-output-UnitTestBot.utbotcpp-#2-UTBot: Client Log
03:01:31 | 8 RESOURCE_EXHAUSTED: Received message larger than max (5124216 vs. 4194304)

Environment
Server version: 2023.11.0
OS: Ubuntu 22.04.1
Installed locally https://github.com/UnitTestBot/UTBotCpp/wiki/install-server-on-ubuntu

@bstee615 bstee615 added the bug Something isn't working label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant