Skip to content

load_json() and viewer cannot not work in mac #1392

@uncleyoung

Description

@uncleyoung

Required Info
Camera Model D400
Firmware Version 05.08.06.00
Operating System & Version MacOS
Kernel Version (Linux Only) --
Platform High Sierra 10.13.3
SDK Version SDK 2.0 (Build 2.10.1)

Issue Description

  1. dev.load_json(str) failed when coding like below. the same code works well in ubuntu(with json-file path being modified.)
    pipe.start();
    auto profile = pipe.get_active_profile();
    std::ifstream t("/Users/uncle/Documents/Algorithm/IntelRealSense/higacc.json");
    std::string str((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
    rs400::advanced_mode dev = profile.get_device();
    dev.load_json(str);

here is the error log:

RealSense error calling rs2_load_json(dev:0x1018acdc0, json_content:0x102043200, content_size:2986):
    get_xu(id=2) failed! Last Error: No such file or directory
Program ended with exit code: 1
  1. I cannot tune any params (and other presets) with viewer, it reports an error.

wx20180320-144323 2x

  1. by the way, when sample code running, it always reports unsupported descriptor subtype: 13( eg. capture example)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions