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

Set JSON_DIAGNOSTICS=ON breaks graphscope #358

Closed
sighingnow opened this issue Jul 2, 2021 · 3 comments
Closed

Set JSON_DIAGNOSTICS=ON breaks graphscope #358

sighingnow opened this issue Jul 2, 2021 · 3 comments
Assignees
Labels
bug Something isn't working priority:high upstream

Comments

@sighingnow
Copy link
Member

Describe your problem

We have noticed failure on GraphScope with vineyard v0.2.5:

WARNING: Logging before InitGoogleLogging() is written to STDERR
I0701 21:14:29.332938 734798 htap_ds_impl.cc:31] enter get_graph_handle
I0701 21:14:29.333325 734798 htap_ds_impl.cc:34] Initialize vineyard client
I0701 21:14:29.500212 734798 htap_ds_impl.cc:38] Get vineyard object ok: 0x7fd8e8003d20
I0701 21:14:29.500243 734798 htap_ds_impl.cc:42] FragGroup: total frag num = 2, vertex label num = 4, edge label num = 4
I0701 21:14:29.500257 734798 htap_ds_impl.cc:81] fid = 0, instance_id = 0, location = 0
I0701 21:14:29.557229 734798 htap_ds_impl.cc:88] begin construct fragment: 37884725264101546, vineyard::ArrowFragment<long,unsigned long>
I0701 21:14:29.609493 734798 htap_ds_impl.cc:96] begin get vertex map: 37884719647632416
I0701 21:14:29.613639 734798 htap_ds_impl.cc:101] begin construct vertex map: 37884719647632416
I0701 21:14:29.615562 734798 htap_ds_impl.cc:106] finish construct vertex map: 37884725264101546
executor: /usr/local/include/nlohmann/json.hpp:1253: void nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType>::assert_invariant(bool) const [with ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer; BinaryType = std::vector<unsigned char>]: Assertion `!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j) { return j.m_parent == this; })' failed.

The difference should be we enabled JSON_DIAGNOSTICS for nlohmann::json.

Additional context

Add any other context about the problem here.

@sighingnow sighingnow added bug Something isn't working component:client Issues about vineyard's IPC or RPC client. component:graph priority:high labels Jul 2, 2021
@sighingnow sighingnow self-assigned this Jul 2, 2021
@sighingnow
Copy link
Member Author

The issue should come from upstream: nlohmann/json#2838

@sighingnow sighingnow added upstream and removed component:client Issues about vineyard's IPC or RPC client. component:graph labels Jul 2, 2021
@sighingnow
Copy link
Member Author

Will be fixed by upgrading the nlohmann/json submodule after it get fixed in upstream.

@sighingnow
Copy link
Member Author

Closed as fixed by upstream.

sighingnow added a commit that referenced this issue Jul 21, 2021
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high upstream
Projects
None yet
Development

No branches or pull requests

1 participant