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

Special unicode character causes timeout #77

Closed
1 task
tennox opened this issue May 20, 2023 · 3 comments
Closed
1 task

Special unicode character causes timeout #77

tennox opened this issue May 20, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@tennox
Copy link

tennox commented May 20, 2023

Type of bug

Timeout

Version

0.0.12

Did you test against master?

  • Certainly

Error message (if not timeout)

cat test.conf | dconf2nix --verbose
dconf: "[org/gnome/Characters]\nrecent-characters=['\10149']\n"
dconf2nix: 💥 The process timed out.

DConf input

[org/gnome/Characters]
recent-characters=['']

Additional context

I developed this method to identify the problematic part of the dconf output - maybe this can be helpful for troubleshooting

1. Split dconf in parts on each newline - http://stackoverflow.com/questions/33294986/ddg#33297878

dconf dump / | awk -v RS= '{print > ("dconf-" NR ".conf")}'

2. Try dconf2nix on all parts to identify & print the problematic part

for f in dconf-*.conf; do
    echo -n $f
    if dconf2nix -e < $f > /dev/null 2>&1; then
        echo " -> SUCCESS"
    else
        echo " -> ERROR:"
        cat $f
        echo #newline
    fi
done
@tennox tennox added the bug Something isn't working label May 20, 2023
@tennox
Copy link
Author

tennox commented May 20, 2023

I see you fixed a similar issue in https://github.com/gvolpe/dconf2nix/pull/68/files - but I think adding all possible characters is not viable, is there a better way? Maybe a exclude pattern instead of include?

@bashfulrobot
Copy link

@tennox, your process helped me solve a major freeze on my system that would drive dconf2nix to consume my entire 64 GB of ram only to die. I found my problem process almost immediately. 🥳

@jtojnar
Copy link
Contributor

jtojnar commented Apr 14, 2024

The timeouts were fixed by #80.

@jtojnar jtojnar closed this as completed Apr 15, 2024
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
None yet
Development

No branches or pull requests

3 participants