merly-ai / MP-CodeCheckBin-Ubuntu

MP-CodeCheck Binary Ubuntu Release
GNU General Public License v3.0
3 stars 1 forks source link

MPCC abort due to failed to parse config.json #1

Open zuyu opened 2 years ago

zuyu commented 2 years ago

MPCC 0.1.2 abort during the training step due to config.json parsing issue:

Env: Linux 5.13.0-40-generic #45~20.04.1-Ubuntu SMP

$ ./MPCC infer -D fdb 
ERROR: Unable to read MP-CodeCheck user configuration file (/home/zuyu/.merly.ai/debugging/MP-CodeCheck/config.json), Error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
[1]  abort ./MPCC infer -D fdb

$ cat /home/zuyu/.merly.ai/debugging/MP-CodeCheck/config.json
{
  "colors": {
    "anomaly_background": {
      "rgb": "741da3",
      "type": 3
    },
    "background": {
      "rgb": "1e1e1e",
      "type": 3
    },
    "bad_score": {
      "rgb": "d98900",
      "type": 3
    },
    "builtin": {
      "rgb": "c586c0",
      "type": 3
    },
    "color_on": true,
    "comment": {
      "rgb": "57a64a",
      "type": 3
    },
    "constant": {
      "rgb": "569cd6",
      "type": 3
    },
    "delimiter": {
      "rgb": "eeeeee",
      "type": 3
    },
    "expression_id_background": {
      "rgb": "3f1359",
      "type": 3
    },
    "foreground": {
      "rgb": "d4d4d4",
      "type": 3
    },
    "function": {
      "rgb": "dcdca8",
      "type": 3
    },
    "highlight_background": {
      "rgb": "005c22",
      "type": 3
    },
    "keyword": {
      "rgb": "d8a0df",
      "type": 3
    },
    "keyword_pre_processor": {
      "rgb": "9b9b93",
      "type": 3
    },
    "known_bad": {
      "rgb": "ff0000",
      "type": 3
    },
    "known_good": {
      "rgb": "394700",
      "type": 3
    },
    "line_nr": {
      "rgb": "1a5e7c",
      "type": 3
    },
    "line_nr_background": {
      "rgb": "2e2e2e",
      "type": 3
    },
    "local": {
      "rgb": "9cdcfe",
      "type": 3
    },
    "member": {
      "rgb": "b8d7a3",
      "type": 3
    },
    "number": {
      "rgb": "b5cea8",
      "type": 3
    },
    "operator": {
      "rgb": "fff2c9",
      "type": 3
    },
    "pre_processor": {
      "rgb": "beb7ff",
      "type": 3
    },
    "string": {
      "rgb": "ffbea3",
      "type": 3
    },
    "string_escape": {
      "rgb": "ae81ff",
      "type": 3
    },
    "type": {
      "rgb": "4ec9b0",
      "type": 3
    }
  },
  "filter": {
    "min_class": "trivial",
    "min_score": 0,
    "nested_ifs": false
  },
  "local_db_root_path": "/home/zuyu/code/.",
  "local_source_root_path": "/home/zuyu/code/.stream",
  "local_source_zip_root_path": "/home/zuyu/code/.zip",
  "log_path": "/home/zuyu/code/logs",
  "output": {
    "line_before": 15,
    "lines_after": 5
  },
  "remote_storage_root_path": "",
  "run_training": true
}
urs-muff commented 2 years ago

Thank you so much for taking time to submit this issue! The misleading error when the config.json is missing and being generated has be corrected, and I have also removed the dependency on the dynamic libraries libgcc_s and libstdc++. A new version has been pushed to MP-CodeCheck_v0.1.2_22-04-19-2.tar.gz.

Could you please try this version out and report if that resolved your issue?

zuyu commented 2 years ago

Unfortunately, the new MPCC binary still experienced the same abort, w/o any messages. No coredumps. No useful info in the logs directory.