cmu-rss-lab / rosdiscover-evaluation

Image Creation and Evaluation Infrastructure for ROS Discover
MIT License
2 stars 0 forks source link

[autorally-01] - failed to find model for node type [xbeeCoordinator] in package [autorally_core] #18

Open tobiasduerschmid opened 3 years ago

tobiasduerschmid commented 3 years ago
2021-08-25 15:36:46.381 | ERROR    | rosdiscover.interpreter.interpreter:launch:109 - failed to launch node: xbeeCoordinator
Traceback (most recent call last):

  File "/home/rosqual/rosdiscover/src/rosdiscover/interpreter/interpreter.py", line 239, in _load
    model = self.models.fetch(pkg, nodetype)
            │    │      │     │    └ 'xbeeCoordinator'
            │    │      │     └ 'autorally_core'
            │    │      └ <function ProjectModels.fetch at 0x7f47a6a8cf70>
            │    └ ProjectModels(config=Config(image='autorally-01', sources=('/opt/ros/indigo/setup.bash', '/pre_bug/devel/setup.bash', '/pre_b...
            └ <rosdiscover.interpreter.interpreter.Interpreter object at 0x7f47a69e1850>

  File "/home/rosqual/rosdiscover/src/rosdiscover/project/models.py", line 134, in fetch
    fetched_model = model_source(package, node)
                    │            │        └ 'xbeeCoordinator'
                    │            └ 'autorally_core'
                    └ <bound method ProjectModels._recover of ProjectModels(config=Config(image='autorally-01', sources=('/opt/ros/indigo/setup.bas...

  File "/home/rosqual/rosdiscover/src/rosdiscover/project/models.py", line 76, in _recover
    model = self._recovery_tool.recover(
            │    └ <member '_recovery_tool' of 'ProjectModels' objects>
            └ ProjectModels(config=Config(image='autorally-01', sources=('/opt/ros/indigo/setup.bash', '/pre_bug/devel/setup.bash', '/pre_b...

  File "/home/rosqual/rosdiscover/src/rosdiscover/recover/tool.py", line 281, in recover
    program = self._recover(compile_commands_path, entrypoint, sources, path_restrictions)
              │    │        │                      │           │        └ ['/pre_bug/devel/include/autorally_core', '/pre_bug/src/repo/autorally_core']
              │    │        │                      │           └ ['/pre_bug/src/repo/autorally_core/src/xbee/XbeeCoordinator.cpp', '/pre_bug/src/repo/autorally_core/src/xbee/XbeeInterface.cpp']
              │    │        │                      └ 'main'
              │    │        └ '/pre_bug/build/compile_commands.json'
              │    └ <function NodeRecoveryTool._recover at 0x7f47a6a8c700>
              └ NodeRecoveryTool(_app=App(image='autorally-01', sources=('/opt/ros/indigo/setup.bash', '/pre_bug/devel/setup.bash', '/pre_bug...

  File "/home/rosqual/rosdiscover/src/rosdiscover/recover/tool.py", line 372, in _recover
    json_model = json.loads(json_model_file_contents)
                 │    │     └ ''
                 │    └ <function loads at 0x7f47a9298550>
                 └ <module 'json' from '/home/rosqual/.pyenv/versions/3.9.6/lib/python3.9/json/__init__.py'>

  File "/home/rosqual/.pyenv/versions/3.9.6/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           │                │      └ ''
           │                └ <function JSONDecoder.decode at 0x7f47a9286dc0>
           └ <json.decoder.JSONDecoder object at 0x7f47a9280ca0>
  File "/home/rosqual/.pyenv/versions/3.9.6/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               │    │          │      │  └ ''
               │    │          │      └ <built-in method match of re.Pattern object at 0x7f47a9599570>
               │    │          └ ''
               │    └ <function JSONDecoder.raw_decode at 0x7f47a9286e50>
               └ <json.decoder.JSONDecoder object at 0x7f47a9280ca0>
  File "/home/rosqual/.pyenv/versions/3.9.6/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
          │                                  └ ''
          └ <class 'json.decoder.JSONDecodeError'>

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
ChrisTimperley commented 3 years ago

We'll get a much more informative error message if we run this again. Before recent changes, ROSDiscover would keep running even if the static recovery failed, leading to a red herring JSON decode exception. If you run this again now, you'll see the actual error in the stack trace.