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

Bug: nlohmann::json_abi_v3_11_2::detail::type_error on Manjaro Linux #313

Closed
EgidioCaprino opened this issue Dec 4, 2023 · 4 comments · Fixed by #318
Closed

Bug: nlohmann::json_abi_v3_11_2::detail::type_error on Manjaro Linux #313

EgidioCaprino opened this issue Dec 4, 2023 · 4 comments · Fixed by #318
Labels
bug Something isn't working

Comments

@EgidioCaprino
Copy link

Is this urgent?

Yes

What parts are affected

Frontend

What is the server version

v91

What is the client version

v0.4.19

What platform are you using

Linux

What's the problem 🤔

Getting this error when clicking Switch Server in the login page:

$ kitchenowl

(kitchenowl:10285): Gdk-CRITICAL **: 21:55:09.000: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
flutter: dynamic_color: Accent color detected.
terminate called after throwing an instance of 'nlohmann::json_abi_v3_11_2::detail::type_error'
  what():  [json.exception.type_error.307] cannot use erase() with null
zsh: IOT instruction (core dumped)  kitchenowl

Share your logs

No response

Share your configuration

No response

@EgidioCaprino EgidioCaprino added the bug Something isn't working label Dec 4, 2023
@TomBursch TomBursch moved this to Next Up in KitchenOwl Project Dec 6, 2023
@TomBursch TomBursch moved this from Next Up to In Progress in KitchenOwl Project Dec 6, 2023
@TomBursch
Copy link
Owner

What distro are you on? Did you run the executable directly or install the deb or rpm file? Can you try installing libsecret-1-0 and libjsoncpp1 (or the equivalent of your distro) and see if that helps?

@EgidioCaprino
Copy link
Author

Hi @TomBursch, thank you for your reply 🙏

I'm on Manjaro Gnome 23.1.0. These are the two packages installed on my system:

local/libsecret 0.21.1-1
    Library for storing and retrieving passwords and other secrets

local/jsoncpp 1.9.5-2
    C++ library for interacting with JSON

I'm extracting the tar.gz archive:

Screencast.from.2023-12-07.10-07-19.webm

I'm the maintainer of the kitchenowl package on AUR and it used to work with previous versions

@github-project-automation github-project-automation bot moved this from In Progress to Ready for Testing in KitchenOwl Project Dec 7, 2023
@TomBursch
Copy link
Owner

Apparently, an exception was thrown if the app's secret was empty when trying to delete something inside it. I've added a check to only delete keys if they exist, which should solve this.

Additionally, from what I've found, libjsoncpp1 is not needed anymore.

Thanks for maintaining the AUR package!

@EgidioCaprino
Copy link
Author

Awesome, thank you 😃 I'll test it again with the next release then

@TomBursch TomBursch moved this from Ready for Testing to Testing in KitchenOwl Project Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Testing
Development

Successfully merging a pull request may close this issue.

2 participants