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

get_tree()->nodes causes this Json::LogicError #38

Open
airfield20 opened this issue Oct 23, 2022 · 3 comments
Open

get_tree()->nodes causes this Json::LogicError #38

airfield20 opened this issue Oct 23, 2022 · 3 comments

Comments

@airfield20
Copy link

terminate called after throwing an instance of 'Json::LogicError'
  what():  LargestUInt out of Int range
@airfield20
Copy link
Author

to reproduce:

#include "i3ipc++/ipc.hpp"

int main(){
  i3ipc::connection  conn;
  auto tree = conn.get_tree()->nodes;
}

@airfield20
Copy link
Author

GDB reports it occuring in this function:

inline rect_t  parse_rect_from_json(const Json::Value&  value) {
	return {
		.x = value["x"].asInt(),
		.y = value["y"].asInt(), //this line specifically
		.width = value["width"].asUInt(),
		.height = value["height"].asUInt(),
	};
}

My system is ubuntu 20 running i3-gaps

@drmgc
Copy link
Owner

drmgc commented Nov 20, 2023

It sounds like a really edgy case. Provide result of i3-msg -t get_tree, if this can still be reproduced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants