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

crashes due to many uncaught exceptions in hyprland module #3388

Closed
maaarghk opened this issue Jun 28, 2024 · 1 comment · Fixed by #3389
Closed

crashes due to many uncaught exceptions in hyprland module #3388

maaarghk opened this issue Jun 28, 2024 · 1 comment · Fixed by #3389
Labels
bug Something isn't working clock custom hyprland

Comments

@maaarghk
Copy link

[2024-06-28 13:25:12.496] [error] Hyprland IPC: Couldn't write (4)
terminate called after throwing an instance of 'std::runtime_error'
  what():  Error parsing JSON: * Line 1, Column 1
  Syntax error: value, object or array expected.

[1]    2547530 IOT instruction (core dumped)  waybar

Seems an empty string is returned to caller here but the caller expects a valid JSON string:

which then fails to parse as JSON.

the vast majority of calls to getSocket1Reply or getSocket1JsonReply ought to be wrapped in try/catch, i don't think this is really a fatal class of error, I get crashes constantly when load is high. maybe an option to increase the socket timeout would alleviate the issue?

@khaneliman
Copy link
Contributor

Could you try #3389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clock custom hyprland
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants